Server IP : 172.67.214.6 / Your IP : 216.73.216.84 Web Server : LiteSpeed System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : redwjova ( 1790) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/redwjova/fyntric.com/wp-content/themes/smart-mag/ |
Upload File : |
<?php /** * SmartMag Theme! * * This is the typical theme initialization file. Sets up the Bunyad Framework * and the theme functionality. * * ---- * * Other Code Locations: * * / - WordPress default template files. * lib/ - Contains the core Bunyad framework files. * inc/ - Functions & Classes: Helpers, Hooks, Objects. * admin/ - Admin-only content. * blocks/ - Several loops and components used in the theme. * partials/ - Template parts (partials): Views & HTML. * page-templates/ - Custom page templates. * * NOTE: If you're looking to edit HTML, look for default WordPress templates in * top-level / and in partials/ folder. Use same location in a Child Theme. * */ define('BUNYAD_THEME_VERSION', '10.2.1'); update_option( 'smartmag_license', true ); // Already initialized - some buggy plugin call? if (class_exists('Bunyad_Core')) { return; } /** * Initialize Framework * * Include the Bunyad_Base and extend it using our theme-specific class. */ require_once get_theme_file_path('lib/bunyad.php'); require_once get_theme_file_path('inc/bunyad.php'); /** * Main Theme File: Contains most theme-related functionality * * See file: inc/theme.php */ require_once get_theme_file_path('inc/theme.php'); // Fire up the theme - make available in Bunyad::get('theme') Bunyad::register('theme', [ 'class' => 'Bunyad_Theme_SmartMag', 'init' => true ]); // Legacy compat: Alias Bunyad::register('smart_mag', ['object' => Bunyad::get('theme')]); /** * Main Framework Configuration */ $bunyad = Bunyad::core()->init(apply_filters('bunyad_init_config', [ // Due to legacy compatibility, it's named smartmag without dash. 'theme_name' => 'smartmag', // For retrieving meta values from core plugin. 'meta_prefix' => '_bunyad', // Legacy compat. 'theme_version' => BUNYAD_THEME_VERSION, // Widgets enabled. 'post_formats' => ['gallery', 'image', 'video', 'audio'], // Sphere Core plugin components 'sphere_components' => [ 'social-follow', 'breadcrumbs', 'auto-load-post', 'adblock-detect', 'elementor\layouts', 'elementor\dynamic-tags' ], 'customizer' => [ 'font_aliases' => true ], 'add_sidebar_class' => false, ]));