| Server IP : 89.248.107.232 / Your IP : 216.73.217.70 Web Server : Apache System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64 User : seg ( 10005) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/seg-sa.es/peyco.es/wp-content/themes/StoreFront/gavern/ |
Upload File : |
<?php
// disable direct access to the file
defined('GAVERN_WP') or die('Access denied');
/**
*
* Function used to load updates page view
*
* @return null
*
**/
function gavern_updates_options() {
// check permissions
if (!current_user_can('manage_options')) {
wp_die(__('You don\'t have sufficient permissions to access this page!', GKTPLNAME));
}
include_once(gavern_file('gavern/layouts/updates.php'));
}
/**
*
* Function used to load updates page JS code
*
* @return null
*
**/
function gavern_updates_options_js() {
// variable used for the page detection
global $pagenow;
// check the page
if($pagenow == 'admin.php' && isset($_GET['page']) && ($_GET['page'] == 'updates_options' || $_GET['page'] == 'updates_options')) {
wp_register_script('gk-updates-js', gavern_file_uri('js/back-end/updates.options.js'), array('jquery'));
wp_enqueue_script('gk-updates-js');
}
}
/**
*
* Function used to load updates page CSS code
*
* @return null
*
**/
function gavern_updates_options_css() {
// variable used for the page detection
global $pagenow;
// check the page
if($pagenow == 'admin.php' && isset($_GET['page']) && ($_GET['page'] == 'updates_options' || $_GET['page'] == 'updates_options')) {
wp_register_style('gk-updates-css', gavern_file_uri('css/back-end/updates.css'));
wp_enqueue_style('gk-updates-css');
}
}
// EOF