| Server IP : 104.26.4.103 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/rimskannur/public_html/wp-content/themes/skole/vamtam/admin/classes/ |
Upload File : |
<?php
/**
* Framework admin enhancements
*
* @author Nikolay Yordanov <me@nyordanov.com>
* @package vamtam/skole
*/
/**
* class VamtamAdmin
*/
class VamtamAdmin {
/**
* Initialize the theme admin
*/
public static function actions() {
if ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) {
add_action( 'admin_init', array( 'VamtamUpdateNotice', 'check' ) );
}
add_action( 'admin_footer', array( __CLASS__, 'icons_selector' ) );
add_filter( 'admin_notices', array( __CLASS__, 'update_warning' ) );
add_action( 'admin_init', array( __CLASS__, 'setup_settings' ) );
self::load_functions();
new VamtamPurchaseHelper;
new VamtamHelpPage;
require_once VAMTAM_ADMIN_HELPERS . 'updates/version-checker.php';
if ( ! get_option( VAMTAM_THEME_SLUG . '_vamtam_theme_activated', false ) ) {
update_option( VAMTAM_THEME_SLUG . '_vamtam_theme_activated', true );
delete_option( 'default_comment_status' );
}
}
public static function setup_settings() {}
public static function update_warning() {
if ( did_action( 'load-update-core.php' ) ) {
echo '<div class="updated notice fade is-dismissible"><p><strong>';
;
esc_html_e( 'Hey, just a polite reminder that if you update WordPress you will also need to update your theme and plugins.', 'skole' );
echo '</strong>';
echo '</p></div>';
}
if ( did_action( 'load-update-core.php' ) || did_action( 'load-themes.php' ) ) {
echo '<div class="notice notice-success is-dismissible"><p><strong>';
;
esc_html_e( 'VamTam theme resources: ', 'skole' );
echo '</strong>';
echo '<a href="https://vamtam.com/child-themes" target="_blank">';
esc_html_e( 'Sample child themes', 'skole' );
echo '</a>; ';
echo '<a href="https://vamtam.com/changelog" target="_blank">';
esc_html_e( 'Changelog', 'skole' );
echo '</a>';
echo '</p></div>';
}
}
public static function icons_selector() {
?>
<div class="vamtam-config-icons-selector hidden">
<input type="search" placeholder="<?php esc_attr_e( 'Filter icons', 'skole' ) ?>" class="icons-filter"/>
<div class="icons-wrapper spinner">
<input type="radio" value="" checked="checked"/>
</div>
</div>
<?php
}
/**
* Admin helper functions
*/
private static function load_functions() {
require_once VAMTAM_ADMIN_HELPERS . 'base.php';
}
}