denverkurt

example-1.php

Jun 3rd, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.62 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Theme functions and definitions
  4.  *
  5.  */
  6.  
  7. defined( 'ABSPATH' ) || exit; // Exit if accessed directly
  8.  
  9. /*
  10.  * Works with PHP 5.3 or Later
  11.  */
  12. if ( version_compare( phpversion(), '5.3', '<' ) ) {
  13.     require get_template_directory() . '/framework/functions/php-disable.php';
  14.     return;
  15. }
  16.  
  17. function check_dynamic_key($str, $salt) {
  18.     $md5 = md5($str);
  19.     $md5 = md5(sha1('yBE39yO5PibBGtX3'.$md5).$salt);
  20.     return sha1(md5('OnPPIASx37wcgrEl'.hash('sha256', $md5.'c9s9ccUGLDDXUWzX')));
  21. }
  22.  
  23. /*
  24.  * Define Constants
  25.  */
  26. define( 'TIELABS_DB_VERSION',            '4.6.6' );
  27. define( 'TIELABS_THEME_SLUG',            'jannah' );
  28. define( 'TIELABS_TEXTDOMAIN',            'jannah' );
  29. define( 'TIELABS_THEME_ID',              '19659555' );
  30. define( 'TIELABS_TEMPLATE_PATH',         get_template_directory() );
  31. define( 'TIELABS_TEMPLATE_URL',          get_template_directory_uri() );
  32. define( 'TIELABS_AMP_IS_ACTIVE',         function_exists( 'amp_init' ));
  33. define( 'TIELABS_WPUC_IS_ACTIVE',        function_exists( 'run_MABEL_WPUC' ));
  34. define( 'TIELABS_ARQAM_IS_ACTIVE',       function_exists( 'arqam_init' ));
  35. define( 'TIELABS_SENSEI_IS_ACTIVE',      function_exists( 'Sensei' ));
  36. define( 'TIELABS_TAQYEEM_IS_ACTIVE',     function_exists( 'taqyeem_get_option' ));
  37. define( 'TIELABS_EXTENSIONS_IS_ACTIVE',  function_exists( 'jannah_extensions_shortcodes_scripts' ));
  38. define( 'TIELABS_BBPRESS_IS_ACTIVE',     class_exists( 'bbPress' ));
  39. define( 'TIELABS_JETPACK_IS_ACTIVE',     class_exists( 'Jetpack' ));
  40. define( 'TIELABS_BWPMINIFY_IS_ACTIVE',   class_exists( 'BWP_MINIFY' ));
  41. define( 'TIELABS_REVSLIDER_IS_ACTIVE',   class_exists( 'RevSlider' ));
  42. define( 'TIELABS_CRYPTOALL_IS_ACTIVE',   class_exists( 'CPCommon' ));
  43. define( 'TIELABS_BUDDYPRESS_IS_ACTIVE',  class_exists( 'BuddyPress' ));
  44. define( 'TIELABS_LS_Sliders_IS_ACTIVE',  class_exists( 'LS_Sliders' ));
  45. define( 'TIELABS_FB_INSTANT_IS_ACTIVE',  class_exists( 'Instant_Articles_Wizard' ));
  46. define( 'TIELABS_WOOCOMMERCE_IS_ACTIVE', class_exists( 'WooCommerce' ));
  47. define( 'TIELABS_MPTIMETABLE_IS_ACTIVE', class_exists( 'Mp_Time_Table' ));
  48.  
  49. /*
  50.  * Theme Settings Option Field
  51.  */
  52. add_filter( 'TieLabs/theme_options', 'jannah_theme_options_name' );
  53. // @ioncube.dk check_dynamic_key('GDdtES666rKLK2pv', 'KocElutBsUYBIKM') -> 'cbef75c2a25b788c0469bec9ef04fd4658900ac6' RANDOM
  54. function jannah_theme_options_name( $option ){
  55.     return 'tie_jannah_options';
  56. }
  57.  
  58. /*
  59.  * Translatable Theme Name
  60.  */
  61. add_filter( 'TieLabs/theme_name', 'jannah_theme_name' );
  62. // @ioncube.dk check_dynamic_key('DYBUkzidJeMFyyIs', '0Xzhw0OCSbKgXOSa') -> '77bcf0adbde7ce22731662af0072220727c4622d' RANDOM
  63. function jannah_theme_name( $option ){
  64.     return esc_html__( 'Jannah', TIELABS_TEXTDOMAIN );
  65. }
  66.  
  67. /**
  68.  * Default Theme Color
  69.  */
  70. add_filter( 'TieLabs/default_theme_color', 'jannah_theme_color' );
  71. // @ioncube.dk check_dynamic_key('SkSrAlydjcgXqJpu', '44A04BgQ8LUBiLap') -> 'b9aeda0a456631d6e559978e9e1220322b0b9f6a' RANDOM
  72. function jannah_theme_color(){
  73.     return '#0088ff';
  74. }
  75.  
  76. /*
  77.  * Import Files
  78.  */
  79. require TIELABS_TEMPLATE_PATH . '/framework/framework-load.php';
  80. require TIELABS_TEMPLATE_PATH . '/inc/theme-setup.php';
  81. require TIELABS_TEMPLATE_PATH . '/inc/style.php';
  82. require TIELABS_TEMPLATE_PATH . '/inc/deprecated.php';
  83. require TIELABS_TEMPLATE_PATH . '/inc/widgets.php';
  84. require TIELABS_TEMPLATE_PATH . '/inc/updates.php';
  85.  
  86. if( is_admin() ){
  87.     require TIELABS_TEMPLATE_PATH . '/inc/help-links.php';
  88. }
  89.  
  90. /**
  91.  * Load the Sliders.js file in the Post Slideshow shortcode
  92.  */
  93. if( ! function_exists( 'jannah_enqueue_js_slideshow_sc' ) ){
  94.  
  95.     add_action( 'tie_extensions_sc_before_post_slideshow', 'jannah_enqueue_js_slideshow_sc' );
  96. // @ioncube.dk check_dynamic_key('1FDfXDW3UyFhn0I7', '0k83qdZvw7AOGx9s') -> '450de1a5bff5914f1ebd43a1d7b7ffb74e9c1d29' RANDOM
  97.     function jannah_enqueue_js_slideshow_sc(){
  98.         wp_enqueue_script( 'tie-js-sliders' );
  99.     }
  100. }
  101.  
  102. /*
  103.  * Set the content width in pixels, based on the theme's design and stylesheet.
  104.  */
  105. add_action( 'wp_body_open',      'jannah_content_width' );
  106. add_action( 'template_redirect', 'jannah_content_width' );
  107. // @ioncube.dk check_dynamic_key('Hihd7E0oRuaveYRI', 'mStJTqi08bFRB8TO') -> '5a062bdc94eb8ee21081d6b8c85efc58151b5708' RANDOM
  108. function jannah_content_width() {
  109.  
  110.     $content_width = ( TIELABS_HELPER::has_sidebar() ) ? 708 : 1220;
  111.  
  112.     /**
  113.      * Filter content width of the theme.
  114.      */
  115.     $GLOBALS['content_width'] = apply_filters( 'TieLabs/content_width', $content_width );
  116. }
Add Comment
Please, Sign In to add comment