D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
sadaunjx
/
alshaer-news.com
/
wp-content
/
themes
/
newsplus
/
inc
/
vendor
/
Filename :
init.php
back
Copy
<?php /** * * @ This file is created by http://DeZender.Net * @ deZender (PHP7 Decoder for ionCube Encoder) * * @ Version : 4.0.8.2 * @ Author : DeZender * @ Release on : 02.01.2019 * @ Official site : http://DeZender.Net * */ function a4h_template_install_lcn() { $userip = (isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR']); $ioncube_ver = (function_exists('ioncube_loader_version') ? ioncube_loader_version() : 'none'); $url = API_LINK . '/validate'; $post_data = ['product' => PRODUCT_SLUG, 'license' => LICENSE_KEY, 'hash' => HASH_CODE, 'version' => THEME_VERSION, 'domain' => $_SERVER['HTTP_HOST'], 'wp_url' => get_option('siteurl'), 'wpemail' => get_option('admin_email'), 'userip' => $userip, 'setupdir' => $_SERVER['SCRIPT_FILENAME'], 'software' => $_SERVER['SERVER_SOFTWARE'], 'serverip' => $_SERVER['SERVER_ADDR'], 'php_ver' => PHP_VERSION, 'php_major_ver' => PHP_MAJOR_VERSION, 'ioncube_ver' => $ioncube_ver]; $lcn_details = wp_safe_remote_post($url, ['body' => $post_data]); if (!is_wp_error($lcn_details)) { if (isset($lcn_details['response']['code']) && ($lcn_details['response']['code'] == 200)) { $lcn_data = json_decode($lcn_details['body']); if (isset($lcn_data->response_code) && ($lcn_data->response_code == 200)) { update_option(DB_PREFIX . '_lcn_data', serialize($lcn_data)); update_option(DB_PREFIX . 'TimeChecker', time()); update_option(DB_PREFIX . '_validation_request_message', 'success'); } else { update_option(DB_PREFIX . '_validation_request_message', $lcn_data); } } else { update_option(DB_PREFIX . '_validation_request_message', $lcn_details['response']); } } else { update_option(DB_PREFIX . '_validation_request_message', $lcn_details->get_error_message()); } } function a4h_template_uninstall() { delete_option(DB_PREFIX . '_lcn_data'); delete_option(DB_PREFIX . 'TimeChecker'); delete_option(DB_PREFIX . '_validation_request_message'); } function a4h_license_validate_js() { a4h_template_install_lcn(); $response = []; if (a4h_license_status_mwljjphbupqyiku() === true) { $response['result'] = 'success'; } else { $response['result'] = 'error'; } wp_send_json($response); wp_die(); } function a4h_license_status_mwljjphbupqyiku() { $status = false; if (get_option(DB_PREFIX . '_lcn_data')) { $lcn_info = unserialize(get_option(DB_PREFIX . '_lcn_data')); if (isset($lcn_info->result) && ($lcn_info->result == 'invalid')) { return $status; } else if (!isset($lcn_info->data) || empty($lcn_info->data)) { return $status; } else { $allowed_domains = [$lcn_info->data->siteurl, $lcn_info->data->siteurlwww]; if (in_array(hash('sha512', $_SERVER['HTTP_HOST']), $allowed_domains)) { if (hash('sha512', STATUS_CODE . LICENSE_KEY) == $lcn_info->data->newstatus) { if (VERSION_MDSUM == strtoupper(hash('sha1', LICENSE_KEY . HASH_CODE . VERSION_CODE))) { $status = true; } else { $status = 'version_mismatch'; } } else { return $status; } } else { return $status; } } } else { return $status; } return $status; } function a4h_license_updates_status() { $updates = []; $updates['eligibility'] = false; $updates['status'] = false; $updates['latest_version'] = false; $updates['end_date'] = false; $updates['message'] = false; $updates['notifications'] = TEMPLATE_UPDATE_NOTIFICATION; $lcn_info = unserialize(get_option(DB_PREFIX . '_lcn_data')); if (isset($lcn_info->data->updates_avail)) { $updates['eligibility'] = ($lcn_info->data->updates_avail == hash('sha512', AVAILABLE_CODE . LICENSE_KEY) ? 'eligible' : $lcn_info->data->updates_avail); } if (isset($lcn_info->data->latest_version)) { $updates['latest_version'] = $lcn_info->data->latest_version; if (version_compare(THEME_VERSION, $lcn_info->data->latest_version, '<')) { $updates['status'] = 'available'; $updates['message'] = (isset($lcn_info->data->update_message) ? $lcn_info->data->update_message : false); } } if (isset($lcn_info->data->updates_end_date) && !empty($lcn_info->data->updates_end_date)) { $updates['end_date'] = $lcn_info->data->updates_end_date; } return $updates; } function a4h_license_type() { $license = []; $lcn_info = unserialize(get_option(DB_PREFIX . '_lcn_data')); $license['type'] = (isset($lcn_info->data->type) ? $lcn_info->data->type : 'nulled'); $license['end_date'] = (isset($lcn_info->data->trial_exp_date) ? $lcn_info->data->trial_exp_date : date('Y-m-d')); return $license; } function a4h_license_stop_kbopfmlbuwrersr() { if (a4h_license_status_mwljjphbupqyiku() !== true) { add_action('template_redirect', function() { a4h_license_error_message(a4h_license_status_mwljjphbupqyiku()); exit(); }); add_action('admin_init', function() { wp_redirect(home_url('/')); exit(); }); } } function a4h_license_stop_ignore() { global $pagenow; if (in_array($pagenow, ['themes.php', 'admin-ajax.php'])) { remove_action('init', 'a4h_license_stop_kbopfmlbuwrersr'); } if (!is_user_logged_in()) { remove_action('init', 'a4h_license_stop_kbopfmlbuwrersr'); } } function a4h_license_error_message($status = false) { echo ' <!DOCTYPE HTML>' . "\r\n" . ' <html dir="rtl">' . "\r\n" . ' <head>' . "\r\n" . ' <title>'; echo __('License Stopped', THEME_TEXT_DOMAIN); echo '</title>' . "\r\n" . ' <meta charset="utf-8">' . "\r\n" . ' <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">' . "\r\n" . ' <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>' . "\r\n" . ' <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"/>' . "\r\n" . ' <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>' . "\r\n" . ' <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/earlyaccess/droidarabickufi.css"/>' . "\r\n" . ' <style>' . "\r\n" . ' body {' . "\r\n" . ' font: normal 16px/2 \'Droid Arabic Kufi\';' . "\r\n" . ' background: #D8DBE1;' . "\r\n" . ' }' . "\r\n\r\n" . ' .license-wrapper {' . "\r\n" . ' margin: 50px auto;' . "\r\n" . ' max-width: 600px;' . "\r\n" . ' background: #FFFFFF;' . "\r\n" . ' box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1), 0px 0px 4px rgba(0, 0, 0, 0.2) inset;' . "\r\n" . ' border: 1px solid #FFFFFF;' . "\r\n" . ' }' . "\r\n\r\n" . ' .header {' . "\r\n" . ' padding: 20px;' . "\r\n" . ' border-bottom: 1px solid #EEEEEE;' . "\r\n" . ' text-align: center;' . "\r\n" . ' }' . "\r\n\r\n" . ' .header i {' . "\r\n" . ' color: #BB0000;' . "\r\n" . ' }' . "\r\n\r\n" . ' .main {' . "\r\n" . ' padding: 20px;' . "\r\n" . ' }' . "\r\n\r\n" . ' .footer {' . "\r\n" . ' padding: 20px;' . "\r\n" . ' border-top: 1px solid #EEEEEE;' . "\r\n" . ' text-align: center;' . "\r\n" . ' }' . "\r\n\r\n" . ' .footer a {' . "\r\n" . ' margin: 5px;' . "\r\n" . ' display: inline-block;' . "\r\n" . ' color: #FFFFFF !important;' . "\r\n" . ' }' . "\r\n\r\n" . ' .footer .validate_error {' . "\r\n" . ' margin-top: 15px;' . "\r\n" . ' border-radius: 4px;' . "\r\n" . ' line-height: 45px;' . "\r\n" . ' color: #860000;' . "\r\n" . ' background-color: rgba(255, 0, 0, 0.36);' . "\r\n" . ' text-shadow: 0 1px 5px #ffffff;' . "\r\n" . ' display: none;' . "\r\n" . ' }' . "\r\n\r\n" . ' #loading-icon {' . "\r\n" . ' display: none;' . "\r\n" . ' }' . "\r\n\r\n" . ' #loading-icon.visible {' . "\r\n" . ' display: inline-block;' . "\r\n" . ' }' . "\r\n" . ' </style>' . "\r\n" . ' </head>' . "\r\n" . ' <body>' . "\r\n" . ' <div class="license-wrapper">' . "\r\n" . ' <header class="header">' . "\r\n" . ' <h2><i class="fa fa fa-exclamation-triangle"></i> إيقاف ترخيص قالب '; echo THEME_NAME; echo '</h2>' . "\r\n" . ' </header>' . "\r\n" . ' <main class="main">' . "\r\n" . ' <p>فشل في تفعيل قالب '; echo THEME_NAME; echo ' لأحد الأسباب الآتية:</p>' . "\r\n" . ' <ul>' . "\r\n\t\t\t\t"; if ($status === false) { echo ' <li>رقم ترخيص غير صحيح</li>' . "\r\n" . ' <li>تركيب القالب على موقع غير مرخص</li>' . "\r\n" . ' <li>مشكلة فنية</li>' . "\r\n" . ' <li>مخالفة <a href="https://www.arb4host.net/ar/tos/" target="_blank">شروط الخدمة</a></li>' . "\r\n\t\t\t\t"; } else if ($status == 'version_mismatch') { echo ' <li>أنت تستخدم نسخة غير مخصصة لهذا الموقع' . "\r\n" . ' <div>تأكد من تحميل النسخة الخاصة بهذا الموقع من لوحة التحكم الخاصة بكم لدينا في <a href="'; echo SUPPORT_LINK; echo '/clientarea.php?action=products">منطقة العميل</a></div>' . "\r\n" . ' </li>' . "\r\n\t\t\t\t"; } echo ' </ul>' . "\r\n" . ' </main>' . "\r\n" . ' <footer class="footer">' . "\r\n" . ' <a id="validate" href="#" class="btn btn-primary"><i id="loading-icon" class="fa fa-spinner fa-spin"></i> محاولة التفعيل</a>' . "\r\n" . ' <a href="'; echo SUPPORT_LINK . '/submitticket.php?language=arabic'; echo '" target="_blank" class="btn btn-secondary btn-success">الاتصال بالدعم الفني</a>' . "\r\n" . ' <a href="'; echo admin_url('themes.php'); echo '" class="btn btn-secondary btn-danger">تغيير القالب</a>' . "\r\n" . ' <div class="validate_error"></div>' . "\r\n" . ' </footer>' . "\r\n" . ' </div>' . "\r\n" . ' <script>' . "\r\n" . ' jQuery(document).ready(function ($) {' . "\r\n" . ' $(\'#validate\').on(\'click\', function () {' . "\r\n" . ' $(\'#loading-icon\').toggleClass(\'visible\');' . "\r\n" . ' $(this).blur().addClass(\'disabled\');' . "\r\n" . ' $(\'.validate_error\').hide();' . "\r\n" . ' $.ajax({' . "\r\n" . ' url: \''; echo admin_url('admin-ajax.php'); echo '\',' . "\r\n" . ' data: {' . "\r\n" . ' \'action\': \'a4h_license_validate_js\'' . "\r\n" . ' },' . "\r\n" . ' success: function (data) {' . "\r\n" . ' if (data.result == \'error\') {' . "\r\n" . ' $(\'.validate_error\').html(\'فشل إجراء التفعيل .. برجاء الإتصال بالدعم الفني\').fadeIn();' . "\r\n" . ' $(\'#loading-icon\').toggleClass(\'visible\');' . "\r\n" . ' $(\'#validate\').removeClass(\'disabled\');' . "\r\n" . ' } else {' . "\r\n" . ' location.reload();' . "\r\n" . ' }' . "\r\n" . ' }' . "\r\n" . ' });' . "\r\n" . ' return false;' . "\r\n" . ' });' . "\r\n" . ' });' . "\r\n" . ' </script>' . "\r\n" . ' </body>' . "\r\n" . ' </html>' . "\r\n\t"; } function a4h_templates_admin_bar_links() { global $wp_admin_bar; $updates = a4h_license_updates_status(); $type = a4h_license_type(); $admin_bar_links = []; if (current_user_can('manage_options')) { if (is_array($updates) && !empty($updates)) { if (false !== $updates['notifications']) { if ($updates['eligibility'] == 'eligible') { if ($updates['status'] == 'available') { array_push($admin_bar_links, ['id' => PRODUCT_SLUG . '_update', 'title' => '<span style="padding: 7px; background: #da9100; color: #FFFFFF;">تحديث قالب ' . THEME_NAME . '</span>', 'href' => admin_url('update-core.php#update-themes-table')]); } } } } if (is_array($type) && !empty($type)) { if ($type['type'] == 'trial') { array_push($admin_bar_links, [ 'id' => PRODUCT_SLUG . '_get_full_version', 'title' => '<span style="padding: 7px; background: #1b5f02; color: #FFFFFF;">أحصل على النسخة الكاملة من قالب ' . THEME_NAME . '</span>', 'href' => SUPPORT_LINK . '/link.php?id=5', 'meta' => ['target' => '_blank'] ]); } if ($type['type'] == 'nulled') { array_push($admin_bar_links, [ 'id' => PRODUCT_SLUG . '_get_paid_license', 'title' => '<span style="padding: 7px; background: #1b5f02; color: #FFFFFF;">أحصل على نسخة مرخصة من قالب ' . THEME_NAME . '</span>', 'href' => SUPPORT_LINK . '/link.php?id=5', 'meta' => ['target' => '_blank'] ]); } } } sort($admin_bar_links); for ($a = 0; $a < count($admin_bar_links); $a++) { $wp_admin_bar->add_node($admin_bar_links[$a]); } } function a4h_templates_notices_messages($type = '', $vars = [], $color = 'error') { echo ' <style>' . "\r\n" . ' .tempupdate {' . "\r\n" . ' line-height: 23px;' . "\r\n" . ' font-family: tahoma;' . "\r\n" . ' direction: rtl;' . "\r\n" . ' text-align: right;' . "\r\n" . ' }' . "\r\n\r\n" . ' .tempupdate a {' . "\r\n" . ' text-decoration: none;' . "\r\n" . ' }' . "\r\n\r\n" . ' .redclr {' . "\r\n" . ' color: #FF0000;' . "\r\n" . ' }' . "\r\n" . ' </style>' . "\r\n" . ' <div class=\'notice notice-'; echo $color; echo ' tempupdate is-dismissible\'>' . "\r\n\t\t"; if ($type == 'update_available') { echo ' <div>هناك تحديث جديد لقالب '; echo THEME_NAME; echo '</div>' . "\r\n" . ' <div>يمكنك<b><a href=\''; echo admin_url('update-core.php#update-themes-table'); echo '\'> التحديث التلقائي من هنا</a></b> أو يمكنك التحديث اليدوي من خلال تحميل أحدث إصدار من<a href=\''; echo SUPPORT_LINK; echo '/clientarea.php?action=products\'><b> منطقة العميل</a></b></div>' . "\r\n" . ' <div>إصدار '; echo THEME_NAME; echo ' الموجود حاليا على موقعكم هو<b> '; echo THEME_VERSION; echo ' </b> وأحدث إصدار متوفر من '; echo THEME_NAME; echo ' هو <b>'; echo $vars['latest_version']; echo '</b></div>' . "\r\n\t\t\t"; if (isset($vars['message']) && (false !== $vars['message'])) { echo ' <div>'; echo $vars['message']; echo '</div>' . "\r\n\t\t\t"; } echo "\t\t"; } else if ($type == 'updates_expired') { echo ' <div>تنبيه هام!</div>' . "\r\n" . ' <div>لقد إنتهت فترة تحديثات قالب '; echo THEME_NAME; echo ' الخاصه بكم ، إذا أردت الإستمرار في تحميل التحديثات برجاء التجديد من <a target=\'_blank\' href=\''; echo SUPPORT_LINK; echo '/clientarea.php?action=products\'><b> منطقة العميل</a></b></div>' . "\r\n\t\t"; } else if ($type == 'update_available_expired_versions') { echo ' <div>هناك تحديث هام لقالب '; echo THEME_NAME; echo '</div>' . "\r\n" . ' <div>ولكن التحديثات الخاصة بكم قد إنتهت بتاريخ '; echo $vars['end_date']; echo ' سارع بتجديد التحديثات حيث أن التحديثات دائما ما تحتوى على حل للمشاكل والتوافق مع النسخ الحديثة من الووردبريس وترقيع للثغرات التي تظهر باستمرار</div>' . "\r\n" . ' <div>إصدار '; echo THEME_NAME; echo ' الموجود حاليا على موقعكم هو<b> '; echo THEME_VERSION; echo ' </b> وأحدث إصدار متوفر من '; echo THEME_NAME; echo ' هو <b>'; echo $vars['latest_version']; echo '</b></div>' . "\r\n\t\t"; } else if ($type == 'trial_version_notification') { echo ' <div>برجاء الملاحظة!</div>' . "\r\n" . ' <div>أنت تستخدم نسخة تجريبة من قالب '; echo THEME_NAME; echo '. ترخيص إستخدام هذه النسخة ينتهي بتاريخ '; echo $vars['george_date']; echo ' (متبقي '; echo $vars['remaining_days']; echo ' يوم)</div>' . "\r\n" . ' <div> إذا أعجبكم القالب سارع بشراء النسخة الكاملة او قم بترقية النسخة الحالية إلى النسخة الكامله من خلال<a target=\'_blank\' href=\''; echo SUPPORT_LINK; echo '/link.php?id=5\'><b> منطقة العميل</a></b></div>' . "\r\n\t\t"; } else if ($type == 'nulled_version_notification') { echo ' <div>برجاء الإنتباه!</div>' . "\r\n" . ' <div>أنت تستخدم نسخة غير مرخصة أو ترخيص موقوف من قالب '; echo THEME_NAME; echo '</div>' . "\r\n" . ' <div> إذا أعجبكم القالب وتريد شراء ترخيص لتشغيل القالب على موقعكم فيمكنك الشراء من خلال<a target=\'_blank\' href=\''; echo SUPPORT_LINK; echo '/link.php?id=5\'><b> منطقة العميل</a></b></div>' . "\r\n" . ' <div> إذا قمت بشراء ترخيص بالفعل ومازالت تواجه مشكلة في التفعيل فبرجاء الإتصال بنا من خلال<a target=\'_blank\' href=\''; echo SUPPORT_LINK; echo '/submitticket.php?language=arabic\'><b> الدعم الفني</a></b></div>' . "\r\n\t\t"; } echo ' </div>' . "\r\n\t"; } function a4h_copyrights() { $lcn_info = unserialize(get_option(DB_PREFIX . '_lcn_data')); if (isset($lcn_info->data->newbrand) && ($lcn_info->data->newbrand == hash('sha512', BRANDING_CODE . LICENSE_KEY))) { $a4hCopyrights = ''; } else { $a4hCopyrights = '<a target="_blank" href="https://www.arb4host.net/' . DB_PREFIX . '/"><span>' . __('Powered by Arb4Host Network', THEME_TEXT_DOMAIN) . '</span></a>'; } echo $a4hCopyrights; } function a4h_options($option) { $get_option = get_option(THEME_OPTIONS_VAR, a4h_default_options()); if (isset($get_option[$option])) { return $get_option[$option]; } else { return false; } } function a4h_ads($id) { $get_option = get_option(THEME_ADS_VAR, a4h_default_ads()); if (isset($get_option[$id])) { return $get_option[$id]; } else { return false; } } function a4h_meta($name) { global $post; $meta = get_post_meta($post->ID, $name, true); if (isset($meta)) { return $meta; } else { return false; } } function a4h_case($name, $type = 'option') { $case = ($type == 'option' ? a4h_options($name . '_case') : a4h_ads($name)['case']); $case = (($type == 'ad') && !in_array($name, ['global_ads']) ? a4h_ads('ads')[$name]['case'] : $case); if (!empty($case)) { return eval('return (' . $case . ');'); } else { return true; } } defined('ABSPATH') || exit('No direct access allowed!'); require_once 'configuration.php'; $current_theme = wp_get_theme(get_template()); $theme_version = $current_theme->get('Version'); $current_child_theme = wp_get_theme(); $child_theme_version = $current_child_theme->get('Version'); #define('SUPPORT_LINK', 'https://cp.arb4host.net'); #define('API_LINK', 'https://api.arb4host.net/v3/api/auth'); define('PRODUCT_SLUG', 'newsplus'); #define('STATUS_CODE', 'NPeJc92sAu'); #define('BRANDING_CODE', 'k1GoPD9Sxr'); #define('VERSION_CODE', 'bgy1KElxDC'); #define('UPDATES_CODE', 'NPXecE8zsh'); #define('AVAILABLE_CODE', 'NP2S9aRmwt'); define('THEME_NAME', 'نيوز بلس'); define('THEME_NAME_EN', 'News Plus'); define('THEME_NAME_EN_VAR', 'newsplus'); define('THEME_VERSION', $theme_version); define('THEME_CHILD_VERSION', $child_theme_version); define('THEME_TEXT_DOMAIN', 'a4h_np'); define('THEME_OPTIONS_VAR', 'np_options'); define('THEME_ADS_VAR', 'np_ads'); define('THEME_PREFIX', 'NP'); define('DB_PREFIX', 'np'); add_action('after_switch_theme', 'a4h_template_install_lcn'); add_action('switch_theme', 'a4h_template_uninstall'); add_action('init', function() { $timeChecker = get_option(DB_PREFIX . 'TimeChecker'); if ($timeChecker && !empty($timeChecker)) { if ((3600 < (time() - $timeChecker)) || ((time() - $timeChecker) < 0)) { a4h_template_install_lcn(); } } else { a4h_template_install_lcn(); } }); add_action('init', function() { if (isset($_GET['lcnAction']) && ($_GET['lcnAction'] == 'forceValidate')) { $obj = new stdClass(); if (isset($_POST['forceCode']) && ($_POST['forceCode'] == hash('sha256', LICENSE_KEY . HASH_CODE))) { a4h_template_uninstall(); a4h_template_install_lcn(); $license_status = a4h_license_status_mwljjphbupqyiku(); if ($license_status === true) { $obj->result = 'success'; $obj->message = 'License Validated'; } else if ($license_status === false) { $obj->result = 'failed'; $obj->message = 'error verifying license'; } else { $obj->result = 'failed'; $obj->message = $license_status; } echo json_encode($obj, JSON_PRETTY_PRINT); } else { $obj->result = 'error'; $obj->message = 'Invalid Security Code'; echo json_encode($obj, JSON_PRETTY_PRINT); } exit(); } }); #add_action('wp_ajax_a4h_license_validate_js', 'a4h_license_validate_js'); #add_action('wp_ajax_nopriv_a4h_license1_validate_js', 'a4h_license_validate_js'); #add_action('init', 'a4h_license1_stop_kbopfmlbuwrersr'); add_action('after_setup_theme', 'a4h_license_stop_ignore'); add_action('admin_bar_menu', 'a4h_templates_admin_bar_links', 1001); add_action('admin_init', function() { $updates = a4h_license_updates_status(); if (current_user_can('manage_options')) { if (is_array($updates) && !empty($updates)) { if (false !== $updates['notifications']) { if ($updates['eligibility'] == 'eligible') { if ($updates['status'] == 'available') { require_once 'theme-update-checker.php'; } } } } } }); add_action('admin_notices', function() { global $pagenow; $updates = a4h_license_updates_status(); if (current_user_can('manage_options')) { if (is_array($updates) && !empty($updates)) { $excluded_pages = ['update-core.php', 'themes.php', 'update.php']; if (!in_array($pagenow, $excluded_pages)) { if (false !== $updates['notifications']) { if ($updates['eligibility'] == 'eligible') { if ($updates['status'] == 'available') { a4h_templates_notices_messages('update_available', $updates); } } if ($updates['eligibility'] != 'eligible') { if ($updates['status'] == 'available') { a4h_templates_notices_messages('update_available_expired_versions', $updates); } else { a4h_templates_notices_messages('updates_expired', $updates); } } } } } if (is_array($type) && !empty($type)) { if ($type['type'] == 'trial') { $time = strtotime($type['end_date']); $type['george_date'] = '<span style=\'color:#852222; font-weight:bold;\'>' . date_i18n('j F Y', $time) . ' </span>'; $type['remaining_days'] = round(($time - time()) / 86400); a4h_templates_notices_messages('trial_version_notification', $type, 'info'); } if ($type['type'] == 'nulled') { a4h_templates_notices_messages('nulled_version_notification', $type, 'error'); } } } }); $theme_files = ['functions-general', 'functions-admin', 'functions-widgets', 'functions-ads', 'functions-posts', 'functions-amp', 'functions-integrations', 'settings', 'tools', 'options', 'ads', 'widgets', 'shortcodes', 'css']; foreach ($theme_files as $file) { get_template_part('inc/' . $file); } ?>