at path:
ROOT
/
wp-content
/
themes
/
jannah
/
functions.php
run:
R
W
Run
assets
DIR
2025-12-16 15:53:27
R
W
Run
buddypress
DIR
2025-12-16 15:53:27
R
W
Run
framework
DIR
2025-12-16 15:53:27
R
W
Run
inc
DIR
2025-12-16 15:53:27
R
W
Run
languages
DIR
2025-12-16 15:53:27
R
W
Run
templates
DIR
2025-12-16 15:53:27
R
W
Run
404.php
1.41 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
archive-web-story.php
1.11 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
archive.php
1.38 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
author.php
1.42 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
buddypress.php
816 By
2025-12-16 15:53:27
R
W
Run
Delete
Rename
category.php
3.89 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
comments.php
1.52 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
footer.php
404 By
2025-12-16 15:53:27
R
W
Run
Delete
Rename
functions.php
4.38 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
header.php
977 By
2025-12-23 11:06:26
R
W
Run
Delete
Rename
index.php
1.05 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
page.php
590 By
2025-12-16 15:53:27
R
W
Run
Delete
Rename
prepros.cfg
423.53 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
prepros.config
99.75 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
rtl.css
36 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
screenshot.jpg
60.18 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
search.php
1.45 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
sidebar-footer.php
2.85 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
sidebar-shop.php
751 By
2025-12-16 15:53:27
R
W
Run
Delete
Rename
sidebar-slide.php
4.07 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
sidebar.php
2.48 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
single.php
359 By
2025-12-16 15:53:27
R
W
Run
Delete
Rename
style.css
704 By
2025-12-16 15:53:27
R
W
Run
Delete
Rename
tag.php
1.42 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
template-authors.php
230 By
2025-12-16 15:53:27
R
W
Run
Delete
Rename
template-masonry.php
377 By
2025-12-16 15:53:27
R
W
Run
Delete
Rename
template-sitemap.php
227 By
2025-12-16 15:53:27
R
W
Run
Delete
Rename
wpml-config.xml
7.17 KB
2025-12-16 15:53:27
R
W
Run
Delete
Rename
error_log
up
📄
functions.php
Save
<?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; } /* * Define Constants */ define( 'TIELABS_THEME_SLUG', 'jannah' ); define( 'TIELABS_TEXTDOMAIN', 'jannah' ); define( 'TIELABS_DB_VERSION', '7.6.3' ); // Don't change this define( 'TIELABS_THEME_ID', '19659555' ); // Don't change this 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_INSTAGRAM_FEED_IS_ACTIVE', function_exists( 'tielabs_instagram_feed' ) ); 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' ) ); define( 'TIELABS_EVERESTFORMS_IS_ACTIVE', class_exists( 'EverestForms' ) ); define( 'TIELABS_WEBSTORIES_IS_ACTIVE', class_exists( '\Google\Web_Stories\Story_Query' ) ); define( 'TIELABS_WMVP_IS_ACTIVE', class_exists( 'WMVP' ) ); /* * Theme Settings Option Field */ add_filter( 'TieLabs/theme_options', 'jannah_theme_options_name' ); function jannah_theme_options_name( $option ){ return 'tie_jannah_options'; } /* * Translatable Theme Name */ add_filter( 'TieLabs/theme_name', 'jannah_theme_name' ); function jannah_theme_name( $option ){ return tie_get_option( 'white_label_theme_name', esc_html__( 'Jannah News', TIELABS_TEXTDOMAIN ) ); } /** * Default Theme Color */ add_filter( 'TieLabs/default_theme_color', 'jannah_theme_color' ); 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/custom-styles.php'; //require TIELABS_TEMPLATE_PATH . '/inc/inline-styles/inline-styles.php'; require TIELABS_TEMPLATE_PATH . '/inc/deprecated.php'; require TIELABS_TEMPLATE_PATH . '/inc/widgets.php'; require TIELABS_TEMPLATE_PATH . '/inc/fa4-to-fa5.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' ); 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' ); function jannah_content_width() { $content_width = TIELABS_HELPER::has_sidebar() ? 780 : 1220; /** * Filter content width of the theme. */ $GLOBALS['content_width'] = apply_filters( 'TieLabs/content_width', $content_width ); } /** */ add_action( 'the_content', 'jannah_post_content_width' ); function jannah_post_content_width( $content ) { if( TIELABS_HELPER::has_sidebar() && tie_get_option( 'boxes_style' ) == 2 ){ $GLOBALS['content_width'] = apply_filters( 'TieLabs/post_content_width', 708 ); } return $content; }