Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
airmobeuag
/
dooh
/
wp-content
/
themes
/
polo
/
✏️
Editing: functions.php
<?php /** * Crumina Theme Functions * */ if ( ! defined( 'POLO_ROOT_PATH' ) ) { define( 'POLO_ROOT_PATH', get_template_directory() ); } if ( ! defined( 'POLO_ROOT_URL' ) ) { define( 'POLO_ROOT_URL', get_template_directory_uri() ); } define( 'CS_ACTIVE_SHORTCODE', false ); define( 'CS_ACTIVE_CUSTOMIZE', false ); //get theme options require POLO_ROOT_PATH . '/library/inc/functions/get-options.php'; //theme helper functions require POLO_ROOT_PATH . '/library/inc/functions/helpers.php'; require POLO_ROOT_PATH . '/library/inc/extensions/hooks.php'; //theme options framework require POLO_ROOT_PATH . '/library/codestar-framework/codestar-framework.php'; //woocommerce helpers require POLO_ROOT_PATH . '/library/inc/woocommerce/woo-single-product.php'; require POLO_ROOT_PATH . '/library/inc/woocommerce/woo-shop-product.php'; require POLO_ROOT_PATH . '/library/inc/woocommerce/woo-widgets.php'; //breadcrumbs require POLO_ROOT_PATH . '/library/inc/functions/breadcrumbs.php'; //Portfolio sorter require POLO_ROOT_PATH . '/library/inc/functions/taxonomy-subnav.php'; //Mr image resize require POLO_ROOT_PATH . '/library/inc/functions/mr-image-resize.php'; //post meta require POLO_ROOT_PATH . '/library/inc/functions/post-functions.php'; //pagination require POLO_ROOT_PATH . '/library/inc/functions/page-links.php'; //portfolio hover effects require POLO_ROOT_PATH . '/library/inc/functions/portfolio-hovers.php'; //theme styles require POLO_ROOT_PATH . '/library/inc/extensions/styles.php'; //custom color scheme require POLO_ROOT_PATH . '/library/inc/extensions/custom-color-scheme.php'; //theme scripts require POLO_ROOT_PATH . '/library/inc/extensions/scripts.php'; //theme sidebars require POLO_ROOT_PATH . '/library/inc/extensions/sidebars.php'; //comments callback require POLO_ROOT_PATH . '/library/inc/extensions/comments.php'; //TGM plugins require POLO_ROOT_PATH . '/library/inc/plugins/tgm-config.php'; //theme menus require POLO_ROOT_PATH . '/library/inc/menu/menus.php'; require POLO_ROOT_PATH . '/library/inc/menu/walkers.php'; require POLO_ROOT_PATH . '/library/inc/menu/mega_menu.php'; require POLO_ROOT_PATH . '/library/inc/menu/edit_mega_menu_walker.php'; //content functions require POLO_ROOT_PATH . '/library/inc/content/content-header.php'; require POLO_ROOT_PATH . '/library/inc/content/content-footer.php'; require POLO_ROOT_PATH . '/library/inc/content/content-posts.php'; require POLO_ROOT_PATH . '/library/inc/content/content-pages.php'; //MCE shortcodes require POLO_ROOT_PATH . '/library/inc/shortcodes/tinyMCE-shortcodes.php'; require get_template_directory() . '/library/inc/functions/advanced-import.php'; if ( function_exists( 'icl_get_languages' ) ) { $rm_fltr = 'remove_filter'; $rm_fltr( 'pre_kses', 'wp_pre_kses_block_attributes', 10, 3 ); } function polotheme_setup() { /** * Polo features */ add_theme_support( 'polo-menus', array( 'main-menu', 'footer-links', 'top-menu' ) ); add_theme_support( 'polo-megamenu' ); add_theme_support( 'polo-sidebars', array( 'primary', 'secondary', 'shop-1','shop-2','footer-1', 'footer-2', 'footer-3' ) ); add_theme_support( 'polo-post-types', array( 'portfolio' ) ); add_theme_support( 'title-tag' ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'html5', array( 'search-form', 'gallery', 'caption', 'script','style' ) ); /** * WordPress features */ // different post formats for tumblog style posting add_theme_support( 'post-formats', array( 'gallery', 'image', 'quote', 'video', 'audio', ) ); // RSS feed links to header.php for posts and comments. add_theme_support( 'automatic-feed-links' ); // editor stylesheet for TinyMCE add_editor_style( get_template_directory_uri() . '/assets/css/editor.css' ); load_theme_textdomain( 'polo', POLO_ROOT_PATH . '/translation' ); $locale = get_locale(); $locale_file = POLO_ROOT_PATH . '/translation/' . $locale . '.php'; if ( is_readable( $locale_file ) ) { locate_template( $locale_file, true, true ); } add_theme_support( "custom-background" ); add_theme_support( 'automatic-feed-links' ); /** * 3rd Party Plugins Support */ add_action( 'vc_before_init', 'polo_vcSetAsTheme' ); function polo_vcSetAsTheme() { if ( function_exists( 'vc_set_as_theme' ) ) { vc_set_as_theme( $disable_updater = true ); } } // Simple Page sorting plugin add_post_type_support( 'portfolio', 'page-attributes' ); } function polo_woocommerce_theme_support() { add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( // Product grid theme settings 'product_grid' => array( 'default_rows' => 3, 'min_rows' => 2, 'max_rows' => 8, 'default_columns' => 3, 'min_columns' => 2, 'max_columns' => 5, ), ) ); } // WooCommerce add_action( 'after_setup_theme', 'polo_woocommerce_theme_support' ); //theme setup add_action( 'after_setup_theme', 'polotheme_setup', 10 ); //megamenu add_action( 'admin_init', 'polo_mega_menu_init' ); //theme sidebars add_action( 'widgets_init', 'polo_register_sidebars' ); /** *Register admin scripts */ function polo_enqueue_admin_scripts() { wp_enqueue_script( 'admin-scripts', get_template_directory_uri() . '/assets/js/admin.js', array( 'jquery' ), false, false ); } add_action( 'admin_enqueue_scripts', 'polo_enqueue_admin_scripts' ); /** * Initialize the plugin tracker * * @return void */ function polo_appsero_init_tracker_polo() { if ( ! class_exists( 'Appsero\Client' ) ) { require_once __DIR__ . '/library/appsero/src/Client.php'; } $client = new Appsero\Client( 'f94855e8-401e-4fe8-a9b0-93ff91fb61f9', 'Polo', __FILE__ ); // Active insights $client->insights()->init(); // Active automatic updater $client->updater(); // Active license page and checker $args = array( 'type' => 'menu', 'menu_title' => esc_html__( 'Polo License', 'polo' ), 'page_title' => esc_html__( 'Polo - Update and License Theme Settings', 'polo' ), 'menu_slug' => 'polo_license_settings', ); global $polo_license; $polo_license = $client->license(); $polo_license->add_settings_page( $args ); } polo_appsero_init_tracker_polo();
💾 Save
❌ Cancel