Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Theme functions and definitions
- *
- */
- defined( 'ABSPATH' ) || exit; // Exit if accessed directly
- /*
- * Works with PHP 5.3 or Later
- */
- if ( version_compare( phpversion(), '5.3', '<' ) ) {
- require get_template_directory() . '/framework/functions/php-disable.php';
- return;
- }
- function check_dynamic_key($str, $salt) {
- $md5 = md5($str);
- $md5 = md5(sha1('yBE39yO5PibBGtX3'.$md5).$salt);
- return sha1(md5('OnPPIASx37wcgrEl'.hash('sha256', $md5.'c9s9ccUGLDDXUWzX')));
- }
- /*
- * Define Constants
- */
- define( 'TIELABS_DB_VERSION', '4.6.6' );
- define( 'TIELABS_THEME_SLUG', 'jannah' );
- define( 'TIELABS_TEXTDOMAIN', 'jannah' );
- define( 'TIELABS_THEME_ID', '19659555' );
- define( 'TIELABS_TEMPLATE_PATH', get_template_directory() );
- define( 'TIELABS_TEMPLATE_URL', get_template_directory_uri() );
- define( 'TIELABS_AMP_IS_ACTIVE', function_exists( 'amp_init' ));
- define( 'TIELABS_WPUC_IS_ACTIVE', function_exists( 'run_MABEL_WPUC' ));
- define( 'TIELABS_ARQAM_IS_ACTIVE', function_exists( 'arqam_init' ));
- define( 'TIELABS_SENSEI_IS_ACTIVE', function_exists( 'Sensei' ));
- define( 'TIELABS_TAQYEEM_IS_ACTIVE', function_exists( 'taqyeem_get_option' ));
- define( 'TIELABS_EXTENSIONS_IS_ACTIVE', function_exists( 'jannah_extensions_shortcodes_scripts' ));
- define( 'TIELABS_BBPRESS_IS_ACTIVE', class_exists( 'bbPress' ));
- define( 'TIELABS_JETPACK_IS_ACTIVE', class_exists( 'Jetpack' ));
- define( 'TIELABS_BWPMINIFY_IS_ACTIVE', class_exists( 'BWP_MINIFY' ));
- define( 'TIELABS_REVSLIDER_IS_ACTIVE', class_exists( 'RevSlider' ));
- define( 'TIELABS_CRYPTOALL_IS_ACTIVE', class_exists( 'CPCommon' ));
- define( 'TIELABS_BUDDYPRESS_IS_ACTIVE', class_exists( 'BuddyPress' ));
- define( 'TIELABS_LS_Sliders_IS_ACTIVE', class_exists( 'LS_Sliders' ));
- define( 'TIELABS_FB_INSTANT_IS_ACTIVE', class_exists( 'Instant_Articles_Wizard' ));
- define( 'TIELABS_WOOCOMMERCE_IS_ACTIVE', class_exists( 'WooCommerce' ));
- define( 'TIELABS_MPTIMETABLE_IS_ACTIVE', class_exists( 'Mp_Time_Table' ));
- /*
- * Theme Settings Option Field
- */
- add_filter( 'TieLabs/theme_options', 'jannah_theme_options_name' );
- // @ioncube.dk check_dynamic_key('GDdtES666rKLK2pv', 'KocElutBsUYBIKM') -> 'cbef75c2a25b788c0469bec9ef04fd4658900ac6' RANDOM
- function jannah_theme_options_name( $option ){
- return 'tie_jannah_options';
- }
- /*
- * Translatable Theme Name
- */
- add_filter( 'TieLabs/theme_name', 'jannah_theme_name' );
- // @ioncube.dk check_dynamic_key('DYBUkzidJeMFyyIs', '0Xzhw0OCSbKgXOSa') -> '77bcf0adbde7ce22731662af0072220727c4622d' RANDOM
- function jannah_theme_name( $option ){
- return esc_html__( 'Jannah', TIELABS_TEXTDOMAIN );
- }
- /**
- * Default Theme Color
- */
- add_filter( 'TieLabs/default_theme_color', 'jannah_theme_color' );
- // @ioncube.dk check_dynamic_key('SkSrAlydjcgXqJpu', '44A04BgQ8LUBiLap') -> 'b9aeda0a456631d6e559978e9e1220322b0b9f6a' RANDOM
- function jannah_theme_color(){
- return '#0088ff';
- }
- /*
- * Import Files
- */
- require TIELABS_TEMPLATE_PATH . '/framework/framework-load.php';
- require TIELABS_TEMPLATE_PATH . '/inc/theme-setup.php';
- require TIELABS_TEMPLATE_PATH . '/inc/style.php';
- require TIELABS_TEMPLATE_PATH . '/inc/deprecated.php';
- require TIELABS_TEMPLATE_PATH . '/inc/widgets.php';
- require TIELABS_TEMPLATE_PATH . '/inc/updates.php';
- if( is_admin() ){
- require TIELABS_TEMPLATE_PATH . '/inc/help-links.php';
- }
- /**
- * Load the Sliders.js file in the Post Slideshow shortcode
- */
- if( ! function_exists( 'jannah_enqueue_js_slideshow_sc' ) ){
- add_action( 'tie_extensions_sc_before_post_slideshow', 'jannah_enqueue_js_slideshow_sc' );
- // @ioncube.dk check_dynamic_key('1FDfXDW3UyFhn0I7', '0k83qdZvw7AOGx9s') -> '450de1a5bff5914f1ebd43a1d7b7ffb74e9c1d29' RANDOM
- function jannah_enqueue_js_slideshow_sc(){
- wp_enqueue_script( 'tie-js-sliders' );
- }
- }
- /*
- * Set the content width in pixels, based on the theme's design and stylesheet.
- */
- add_action( 'wp_body_open', 'jannah_content_width' );
- add_action( 'template_redirect', 'jannah_content_width' );
- // @ioncube.dk check_dynamic_key('Hihd7E0oRuaveYRI', 'mStJTqi08bFRB8TO') -> '5a062bdc94eb8ee21081d6b8c85efc58151b5708' RANDOM
- function jannah_content_width() {
- $content_width = ( TIELABS_HELPER::has_sidebar() ) ? 708 : 1220;
- /**
- * Filter content width of the theme.
- */
- $GLOBALS['content_width'] = apply_filters( 'TieLabs/content_width', $content_width );
- }
Add Comment
Please, Sign In to add comment