Sindbad~EG File Manager

Current Path : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt/functions/
Upload File :
Current File : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt/functions/load-scripts.php

<?php
/*
 * Security 	: blocking direct access
 * Source		: http://codex.wordpress.org/Theme_Development#Template_Files
*/
defined('ABSPATH') or die("Access Restricted");
/*
 * Deregister style for specific plugins
 *
 * Contact Form 7
 * WordPress Social Login
 * Font Awesome 4 Menus
 * Remove dashicons.min.css from Front-End for non-logged in users
 * Table of Contents Plus
 *
*/
add_filter( 'wpcf7_load_js', '__return_false' );
add_filter( 'wpcf7_load_css', '__return_false' );
add_action( 'wp_enqueue_scripts', 'deregister_specific_plugins', 100 );
function deregister_specific_plugins() {
	if( !is_user_logged_in() ) {
		wp_deregister_style('dashicons');
	}
	wp_deregister_style( 'contact-form-7' );
	if ( is_rtl() ) {
		wp_deregister_style( 'contact-form-7-rtl' );
	}
	wp_deregister_style( 'wsl-widget' );
	wp_deregister_style( 'font-awesome-four' );
	if (!is_admin() && class_exists( 'toc' )) {
		wp_dequeue_style( 'toc-screen' );
	}
}
remove_action( 'wp_enqueue_scripts'   , 'wsl_add_javascripts' );
remove_action( 'login_enqueue_scripts', 'wsl_add_javascripts' );
/*
 * Deregister style for Gutenberg
 *
*/
function mwp_gutenberg_deregister_styles() {
   if (!is_admin()) {
		wp_dequeue_style( 'wp-block-library' );
		wp_deregister_style( 'wp-block-library' );
		wp_dequeue_style( 'wp-block-library-rtl' );
		wp_deregister_style( 'wp-block-library-rtl' );
		wp_dequeue_style( 'wp-block-library-theme' );
		wp_deregister_style( 'wp-block-library-theme-rtl' );
   }
}
add_action( 'wp_print_styles', 'mwp_gutenberg_deregister_styles', 100 );
/*
 * Jetpack : Defer Scripts
 *
*/
add_filter('script_loader_tag', 'mwp_toc_defer_attribute', 10, 2);
function mwp_toc_defer_attribute($tag, $handle) {
   if (!is_admin() && class_exists( 'toc' )) {
		if ( 'toc-front' !== $handle )
			return $tag;
		return str_replace( ' src', ' defer="defer" src', $tag );
	} else {
		return $tag;
	}
}
/*
 * Remove YARPP styles
 *
*/
if ( function_exists('related_posts') ) {
	add_action( 'wp_print_styles', 'remove_yarpp_header_styles' );
	function remove_yarpp_header_styles() {
	   wp_dequeue_style('yarppWidgetCss');
	   wp_deregister_style('yarppRelatedCss'); 
	}
	add_action( 'wp_footer', 'remove_yarpp_footer_styles' );
	function remove_yarpp_footer_styles() {
		wp_dequeue_style('yarppRelatedCss');
	}
}
/*
 * @Font-Face Helper + HTML Helper
 *
 * load a CSS file asynchronously.
 * equalHeights
 *
*/
add_action('wp_head', 'mwp_asyn_css_load', 5);
function mwp_asyn_css_load() {
	echo '<script>function load_MWP_CSS(a,d,f,g){var b=window.document.createElement("link");var c=d||window.document.getElementsByTagName("script")[0];var e=window.document.styleSheets;b.rel="stylesheet";b.href=a;b.media="only x";if(g){b.onload=g}c.parentNode.insertBefore(b,c);b.onloadcssdefined=function(h){var k;for(var j=0;j<e.length;j++){if(e[j].href&&e[j].href===b.href){k=true}}if(k){h()}else{setTimeout(function(){b.onloadcssdefined(h)})}};b.onloadcssdefined(function(){b.media=f||"all"});return b};function setCSSHEIGHT(b,a){(function(g,e,c,h){var d=g(b),i=d.find(a),f=function(){i.css("height","auto");var n=Math.floor(d.width()/i.width());if(n==null||n<2){return true}for(var m=0,l=i.length;m<l;m+=n){var o=0,k=i.slice(m,m+n);k.each(function(){var j=parseInt(g(this).outerHeight());if(j>o){o=j}});k.css("height",o)}};f();g(e).on("resize",f);g(c).on("cycle-bootstrap",f);d.find("img").on("load",f)})(jQuery,window,document)};</script>',"\n";
}
/*
 * Sticky Footer
 *
*/
add_action('wp_footer', 'mwp_footer_sticky_css', 999999);
function mwp_footer_sticky_css() {
	?><script>jQuery(document).ready(function($){updateFooterSticky();$(window).resize(function(){updateFooterSticky()})});function updateFooterSticky(){var footer_height = jQuery("#footer").height();jQuery("#main").css({'min-height':'calc(100vh - '+footer_height+'px)'});}</script><?php
}
/*
 * Akismet Inline JS
 *
*/
add_action( 'wp_footer', 'mwp_akismet_deregister_script', 11 );
function mwp_akismet_deregister_script() { 

	if ( class_exists('Akismet') ) {
		wp_deregister_script('akismet-form');
		if (is_singular()) :
			?><script>var ak_js=document.getElementById("ak_js");if(!ak_js){ak_js=document.createElement('input');ak_js.setAttribute('id','ak_js');ak_js.setAttribute('name','ak_js');ak_js.setAttribute('type','hidden')}else{ak_js.parentNode.removeChild(ak_js)}ak_js.setAttribute('value',(new Date()).getTime());var commentForm=document.getElementById('commentform');if(commentForm){commentForm.appendChild(ak_js)}else{var replyRowContainer=document.getElementById('replyrow');if(replyRowContainer){var children=replyRowContainer.getElementsByTagName('td');if(children.length>0){children[0].appendChild(ak_js)}}}</script><?php
		endif;
	}
}
/*
 * Contact Form 7
 *
 * Inline Contact Form 7 Script
 * 
*/
add_action('wp_footer','mwp_contact_form7_scripts', 5);
function mwp_contact_form7_scripts() {
	if( function_exists( 'wpcf7_enqueue_scripts' ) && is_singular() ) {
    	$post = get_post();
    	if( has_shortcode($post->post_content, 'contact-form-7') ) {
			$cf7_src = MWP_PATH_URL . '/js/cf7.min.js';
			echo '<script src="'.$cf7_src.'" defer="defer"></script>';
		}
    }
}
/*
 * comment.reply.js inline
 *
*/
add_action('wp_footer', 'mwp_comment_reply_js', 6);
function mwp_comment_reply_js(){
	if ( (!is_admin()) && is_singular() && comments_open() && get_option('thread_comments') == 1 ) :
		$file = ABSPATH . WPINC .'/js/comment-reply.min.js';
		mwp_inline_js_file($file);
	endif;
}
/*
 * Inline wp-embed.min.js
 *
*/
function mwp_remove_wp_embed_script(){
	if (!is_admin()) {
		wp_deregister_script( 'wp-embed' );
		$file = ABSPATH . WPINC .'/js/wp-embed.min.js';
		mwp_inline_js_file($file);
	}
}
add_action( 'wp_footer', 'mwp_remove_wp_embed_script' );
/*
 * Inline WP-Postviews Scripts
 * 
*/
remove_action('wp_enqueue_scripts', 'wp_postview_cache_count_enqueue');
add_action('wp_footer', 'mwp_postview_cache', 99999999999);
function mwp_postview_cache() {
	if(function_exists('the_views')) {
		global $user_ID, $post;
		if( !defined( 'WP_CACHE' ) || !WP_CACHE )
			return;
		$views_options = get_option( 'views_options' );
		if( isset( $views_options['use_ajax'] ) && intval( $views_options['use_ajax'] ) === 0 )
			return;
		if ( !wp_is_post_revision( $post ) && ( is_single() || is_page() ) ) {
			$should_count = false;
			switch( intval( $views_options['count'] ) ) {
				case 0:
					$should_count = true;
					break;
				case 1:
					if ( empty( $_COOKIE[USER_COOKIE] ) && intval( $user_ID ) === 0) {
						$should_count = true;
					}
					break;
				case 2:
					if ( intval( $user_ID ) > 0 ) {
						$should_count = true;
					}
					break;
			}
			if ( $should_count ) {
				?>
				<script>
				/* <![CDATA[ */
				var viewsCacheL10n = {"admin_ajax_url":"<?php echo MWP_AJAX_ENDPOINT; ?>","post_id":"<?php echo $post->ID; ?>"};
				/* ]]> */
				</script>
				<script>jQuery(document).ready(function($){jQuery.ajax({type:"GET",url:viewsCacheL10n.admin_ajax_url,data:"postviews_id="+viewsCacheL10n.post_id+"&action=postviews",cache:!1});});</script>
				<?php
			}
		}
	} elseif ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'stats' ) ) {
		global $user_ID, $post;
		if( !defined( 'WP_CACHE' ) || !WP_CACHE )
		return;
		if ( is_single() || is_page()  ) {
			?>
			<script>
			/* <![CDATA[ */
			var viewsCacheL10n = {"admin_ajax_url":"<?php echo MWP_AJAX_ENDPOINT; ?>","post_id":"<?php echo $post->ID; ?>"};
			/* ]]> */
			</script>
			<script>jQuery(document).ready(function($){jQuery.ajax({type:"GET",url:viewsCacheL10n.admin_ajax_url,data:"postviews_id="+viewsCacheL10n.post_id+"&action=postviews",cache:!1});});</script>
			<?php
		}
	}
}
/*
 * Google Analytics
 *
 * avoid serving the analytics script to PageSpeed
 * https://stackoverflow.com/a/36137447
 *
*/
add_action('wp_footer', 'mwp_google_analytics', 0);
function mwp_google_analytics() {
	
	$normal_track_type 	= mwp_option('google-analytics-type');
	$normal_track 		= mwp_option('google-analytics');
	$track_code 		= mwp_option('google-analytics');
	
	if($normal_track_type == 1 && $normal_track <> "") {
		?>
		<script>
			(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
			(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
			m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
			})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
			ga('create', '<?php echo sanitize_text_field($track_code); ?>', 'auto');
			ga('send', 'pageview');
		</script>
		<?php
	} elseif($normal_track_type == 2 && $normal_track <> "") {
		?>
		<script>
			function loadGAnalytics(src) {
				return new Promise(function (resolve, reject) {
					var s;
					s = document.createElement('script');
					s.src = src;
					s.onload = resolve;
					s.onerror = reject;
					document.head.appendChild(s);
				});
			}
			loadGAnalytics('https://www.googletagmanager.com/gtag/js?id=<?php echo sanitize_text_field($track_code); ?>');
			window.dataLayer = window.dataLayer || [];
			function gtag(){dataLayer.push(arguments);}
			gtag('js', new Date());
			gtag('config', '<?php echo sanitize_text_field($track_code); ?>');
			
		</script>
		<?php
	}
}
/*
 * Google Analytics
 *
 * avoid serving the analytics script to PageSpeed
 * https://stackoverflow.com/a/36137447
 *
*/
add_action('wp_footer', 'mwp_google_analytics_authors', 1);
function mwp_google_analytics_authors() {
	$track_code = get_the_author_meta('mwp_ars_analytics', get_the_author_meta( 'ID'));
	if(is_singular() && !empty($track_code)) {
		?><script>
			(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
			(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
			m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
			})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
			ga('create', '<?php echo sanitize_text_field($track_code); ?>', 'auto');
			ga('send', 'pageview');	
		</script><?php
	}
}
/*
 * Alexa Certify 
 *
 * avoid serving the analytics script to PageSpeed
 * https://stackoverflow.com/a/36137447
 *
*/
add_action('wp_footer', 'mwp_alexa_certify', 0);
function mwp_alexa_certify() {
	$alexa_atrk_acct 	= mwp_option('alexa_atrk_acct');
	$alexa_domain 		= mwp_option('alexa_domain');
	if(!empty($alexa_atrk_acct) && !empty($alexa_domain)) {
		?>
		<script>
		_atrk_opts = { atrk_acct:"<?php echo sanitize_text_field($alexa_atrk_acct); ?>", domain:"<?php echo sanitize_text_field($alexa_domain); ?>",dynamic: true};
		(function() { var as = document.createElement('script'); as.type = 'text/javascript'; as.async = true; as.src = "https://certify-js.alexametrics.com/atrk.js"; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(as, s); })();	
		</script>
		<noscript><img src="https://certify.alexametrics.com/atrk.gif?account=<?php echo sanitize_text_field($alexa_atrk_acct); ?>" style="display:none" height="1" width="1" alt="" /></noscript>
		<?php
	}
}
/*
 * Facebook Pixel
 *
 * https://developers.facebook.com/docs/facebook-pixel/implementation
 *
*/
add_action('wp_footer', 'mwp_facebook_pixel', 0);
function mwp_facebook_pixel() {
	$facebook_pixel 	= mwp_option('facebook-pixel');
	if(!empty($facebook_pixel)) {
		?>
		<!-- Facebook Pixel Code -->
		<script>
		  !function(f,b,e,v,n,t,s)
		  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
		  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
		  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
		  n.queue=[];t=b.createElement(e);t.async=!0;
		  t.src=v;s=b.getElementsByTagName(e)[0];
		  s.parentNode.insertBefore(t,s)}(window, document,'script',
		  'https://connect.facebook.net/en_US/fbevents.js');
		  fbq('init', '<?php echo sanitize_text_field($facebook_pixel); ?>');
		  fbq('track', 'PageView');
		</script>
		<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=<?php echo sanitize_text_field($facebook_pixel); ?>&ev=PageView&noscript=1"/></noscript>
		<!-- End Facebook Pixel Code -->
		<?php
	}
}

/*
 * Load jQuery Library
 *
*/
if (!is_admin()) {
	add_action("wp_enqueue_scripts", "mwp_load_jquery", 0);
	function mwp_load_jquery() {
		wp_deregister_script('jquery');
		wp_deregister_script('comment-reply');
		if (mwp_option('inline-jquery') == 0) :
			if (mwp_option('cdn-js-css') == 1) :
				wp_register_script('jquery', MWP_CDN_URL .'[email protected]/dist/jquery.min.js', false, null);
				wp_enqueue_script('jquery');
			else :
				wp_register_script('jquery', get_template_directory_uri() .'/js/jquery.min.js', false, null);
				wp_enqueue_script('jquery');
			endif;
		endif;
	}
}

/*
 * Preload jQuery library (Just For Test)
 * Not Supported by all Browsers
 * https://caniuse.com/#feat=link-rel-preload
 * 
*/
//add_filter('script_loader_tag', 'mwp_preload_jquery', 10, 2);
function mwp_preload_jquery($tag, $handle) {
   if (!is_admin()) {
		if ( 'jquery' !== $handle )
			return $tag;
		return str_replace( ' src', ' rel="preload" as="script" src', $tag );
	} else {
		return $tag;
	}
}

/*
 * Inline jQuery Library
 * 
*/
function mwp_load_inline_jquery() {
	if (mwp_option('inline-jquery') == 1) :
		$file = get_template_directory() .'/js/jquery.min.js';
		mwp_inline_js_file($file);
	endif;	
}
add_action("wp_head", "mwp_load_inline_jquery", 2);

/*
 *
 * Print All jQuery Scripts
 *
*/
add_action('wp_footer', 'mwp_print_all_scripts', 3);
function mwp_print_all_scripts() {
?>
<script>
var mwp_direction = {
	<?php if (is_rtl()) { ?>
	"dir": "rtl"
	<?php } else { ?>
	"dir": "ltr"
	<?php } ?>
};
window.___gcfg = {
	lang: '<?php echo esc_attr(mwp_locale()); ?>'
};
<?php 
/*
 * @Theia Sticky Sidebar
 * https://github.com/WeCodePixels/theia-sticky-sidebar
*/
if (mwp_option('single-full') == 1 && is_singular('post')) {
	// No Thing TO DO
} elseif ( mwp_option( 'home-type') == 1 && mwp_option('home-blog-style') == 3 && is_home()) {
	// No Thing TO DO
} elseif ( mwp_option( 'home-type') == 1 && mwp_option('home-blog-style-archives') == 1 && mwp_option('home-blog-style') == 3 && is_archive() ) {
	// No Thing TO DO
} else {
	if (mwp_option('sticky-sidebar') == 1) : 
		?>
		jQuery(document).ready(function(){
			jQuery('.stick-sidebar, .stick-content').theiaStickySidebar({
				additionalMarginTop:15,
				minWidth:970,
				updateSidebarHeight:true
			});
		});
		jQuery(".stick-sidebar").on('scroll', function() { 
			jQuery(window).trigger('resize'); 
		});
		<?php
	endif;
}
/*
 * @Jetpack Support Buttons
*/
?>
jQuery(document).ready(function($){
	$('.pushbutton-wide').addClass('btn btn-color');
	$('#subscribe-submit input[name="jetpack_subscriptions_widget"]').addClass('btn btn-color');
	$(window).trigger('resize');
});
<?php
/*
 * @LazyLoad XT
 * @LazyLoad Iframe
*/
if (mwp_option('lazyload-enable') == 1) : 
	?>
	!function(a,b,c,d){function e(a,b){return a[b]===d?t[b]:a[b]}function f(){var a=b.pageYOffset;return a===d?r.scrollTop:a}function g(a,b){var c=t["on"+a];c&&(w(c)?c.call(b[0]):(c.addClass&&b.addClass(c.addClass),c.removeClass&&b.removeClass(c.removeClass))),b.trigger("lazy"+a,[b]),k()}function h(b){g(b.type,a(this).off(p,h))}function i(c){if(A.length){c=c||t.forceLoad,B=1/0;var d,e,i=f(),j=b.innerHeight||r.clientHeight,k=b.innerWidth||r.clientWidth;for(d=0,e=A.length;e>d;d++){var l,m=A[d],o=m[0],q=m[n],s=!1,u=c;if(z(r,o)){if(c||!q.visibleOnly||o.offsetWidth||o.offsetHeight){if(!u){var v=o.getBoundingClientRect(),x=q.edgeX,y=q.edgeY;l=v.top+i-y-j,u=i>=l&&v.bottom>-y&&v.left<=k+x&&v.right>-x}if(u){g("show",m);var C=q.srcAttr,D=w(C)?C(m):o.getAttribute(C);D&&(m.on(p,h),o.src=D),s=!0}else B>l&&(B=l)}}else s=!0;s&&(A.splice(d--,1),e--)}e||g("complete",a(r))}}function j(){C>1?(C=1,i(),setTimeout(j,t.throttle)):C=0}function k(a){A.length&&(a&&"scroll"===a.type&&a.currentTarget===b&&B>=f()||(C||setTimeout(j,0),C=2))}function l(){v.lazyLoadXT()}function m(){i(!0)}var n="lazyLoadXT",o="lazied",p="load error",q="lazy-hidden",r=c.documentElement||c.body,s=b.onscroll===d||!!b.operamini||!r.getBoundingClientRect,t={autoInit:!0,selector:"img[data-src]",blankImage:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",throttle:99,forceLoad:s,loadEvent:"pageshow",updateEvent:"load orientationchange resize scroll touchmove focus",forceEvent:"",oninit:{removeClass:"lazy"},onshow:{addClass:q},onload:{removeClass:q,addClass:"lazy-loaded"},onerror:{removeClass:q},checkDuplicates:!0},u={srcAttr:"data-src",edgeX:0,edgeY:0,visibleOnly:!0},v=a(b),w=a.isFunction,x=a.extend,y=a.data||function(b,c){return a(b).data(c)},z=a.contains||function(a,b){for(;b=b.parentNode;)if(b===a)return!0;return!1},A=[],B=0,C=0;a[n]=x(t,u,a[n]),a.fn[n]=function(c){c=c||{};var d,f=e(c,"blankImage"),h=e(c,"checkDuplicates"),i=e(c,"scrollContainer"),j={};a(i).on("scroll",k);for(d in u)j[d]=e(c,d);return this.each(function(d,e){if(e===b)a(t.selector).lazyLoadXT(c);else{if(h&&y(e,o))return;var i=a(e).data(o,1);f&&"IMG"===e.tagName&&!e.src&&(e.src=f),i[n]=x({},j),g("init",i),A.push(i)}})},a(c).ready(function(){g("start",v),v.on(t.loadEvent,l).on(t.updateEvent,k).on(t.forceEvent,m),a(c).on(t.updateEvent,k),t.autoInit&&l()})}(window.jQuery||window.Zepto||window.$,window,document),function(a){var b=a.lazyLoadXT;b.selector+=",video,iframe[data-src]",b.videoPoster="data-poster",a(document).on("lazyshow","video",function(c,d){var e=d.lazyLoadXT.srcAttr,f=a.isFunction(e);d.attr("poster",d.attr(b.videoPoster)).children("source,track").each(function(b,c){var d=a(c);d.attr("src",f?e(d):d.attr(e))}),this.load()})}(window.jQuery||window.Zepto||window.$);
	jQuery.extend(jQuery.lazyLoadXT,{selector:'img[data-src]',throttle:50});
	jQuery.lazyLoadXT.updateEvent = 'touchmove load orientationchange resize scroll focus click showlazy';
	jQuery.lazyLoadXT.edgeY = 0;
	
	function init_videosembed(){var vidDefer = document.getElementsByTagName('iframe');for (var i=0; i<vidDefer.length; i++){if(vidDefer[i].getAttribute('data-src')){vidDefer[i].setAttribute('src',vidDefer[i].getAttribute('data-src'));}}}
	window.onload = init_videosembed;
	<?php 
endif;
/*
 * @Google Doc Viewer
 *
*/
if (is_singular()) : 
	$post = get_post();
	if( has_shortcode($post->post_content, 'docs') ||  has_block('mwp/doc-viewer', $post->ID) ) {
		?>
		jQuery(window).on('load',function(){
			!function(e){e.fn.gdocsViewer=function(t){var i={width:"600",height:"700"};return t&&e.extend(i,t),this.each(function(){var t=e(this).attr("href"),r=t.substring(t.lastIndexOf(".")+1);/^(tiff|pdf|ppt|pps|doc|docx)$/.test(r)&&e(this).after(function(){var r=e(this).attr("id"),d="undefined"!=typeof r&&r!==!1?r+"-gdocsviewer":"";return'<div id="'+d+'" class="gdocsviewer"><iframe class="docview" src="https://docs.google.com/viewerng/viewer?embedded=true&url='+encodeURIComponent(t)+'" width="'+i.width+'" height="'+i.height+'" style="border: none;margin : 0 auto; display : block;"></iframe></div>'})})}}(jQuery);
			jQuery(document).ready(function(){jQuery('#embedURL,a.embed').gdocsViewer({width: 600, height: 400});});
		});
		<?php 
	}
endif;
/*
 * Default Gallery
 *
*/
if (is_singular()) : 
	$post = get_post();
	if( has_shortcode($post->post_content, 'gallery') ) {
		?>
		jQuery(window).on('load',function(){
			setTimeout(function(){
				setCSSHEIGHT (".gallery-columns-2", ".gallery-item");
				setCSSHEIGHT (".gallery-columns-3", ".gallery-item");
				setCSSHEIGHT (".gallery-columns-4", ".gallery-item");
				setCSSHEIGHT (".gallery-columns-5", ".gallery-item");
				setCSSHEIGHT (".gallery-columns-6", ".gallery-item");
				setCSSHEIGHT (".gallery-columns-7", ".gallery-item");
				setCSSHEIGHT (".gallery-columns-8", ".gallery-item");
				setCSSHEIGHT (".gallery-columns-9", ".gallery-item");
			}, 1000);
		});
		<?php 
	}
endif;
/*
 * Remove width attr from tables
 * Add Table Bootstrap Class
 * Wrap Pros & Cons List and add some classes
*/
?>
jQuery(document).ready(function($) {
	$('table td').removeAttr( "width" );
	if (!$("table").hasClass("table")) {
		$('table').addClass( "table table-striped" );
	}
	$('.akismet_comment_form_privacy_notice').addClass( "alert alert-info" );
});
<?php
/*
 * @SuperFish Menu
 *
*/
?>
jQuery(document).ready(function() {
	<?php if (mwp_option('megamenu') == 1 ) { ?>
	jQuery('.mega-category').superfish({
		popUpSelector: '.sf-mega',
		delay: 800,
		animation:{opacity:'show',height:'show'},
		animationOut:  {opacity:'hide'},
		speed: 'normal',
		speedOut: 'fast', 
		disableHI: true,
		<?php if (mwp_option('lazyload-enable') == '1') { ?>
		onShow:(function() {
			jQuery(window).trigger('showlazy');
		}),	
		<?php } ?>
	});
	<?php } else { ?>
	jQuery('ul.menu-category').superfish();
	<?php } ?>
	jQuery('.menu-top').superfish();
});
<?php
/*
 * @SlideOut.js
 *
*/
?>
jQuery(document).ready(function ($) {
	$(".container,.mobile-navigation").wrapAll("<div id='panel'></div>");
	var slideout = new Slideout({
		'panel': document.getElementById('panel'),
		'menu': document.getElementById('mmobile'),
		'touch': false,
		<?php if (is_rtl()) { ?>
		'side': 'right',
		<?php } else { ?>
		'side': 'left',
		<?php } ?>
		'padding': 256,
		'tolerance': 70
	});
	$('.menu-mobile').on('click',function(){
		slideout.toggle();
	});
	function checkOpen(eve){
		if (slideout.isOpen()) {
			eve.preventDefault();
			slideout.close();
		}
	}
	function addClick() {
		document.querySelector('#panel').addEventListener('click', checkOpen);
	}
	function removeClick(){
		document.querySelector('#panel').removeEventListener('click', checkOpen);
	}
	slideout.on('open', addClick);
	slideout.on('close', removeClick);
	document.querySelector('.menu-mobile').addEventListener('click', function() {
	  slideout.open();
	});
	function close(e) {
		e.preventDefault();
		slideout.close();
	}
	slideout.on('beforeopen', function() {
		jQuery('#page-overlay').show();
	}).on('open', function() {
		this.panel.addEventListener('click', close);
	}).on('beforeclose', function() {
		jQuery('#page-overlay').hide();
		this.panel.removeEventListener('click', close);
	});
});
jQuery(document).ready(function ($) {
	$('.menu-section-list').navAccordion({
		expandButtonText: '<i class="fa fa-plus"></i>', 
		collapseButtonText: '<i class="fa fa-minus"></i>',
		<?php if (is_rtl()) { ?>
		buttonPosition: 'left',
		<?php } else { ?>
		buttonPosition: 'right',
		<?php } ?>
	});
});
jQuery(document).on('newElements', function(){
    (adsbygoogle = window.adsbygoogle || []).push({});
});
<?php
/*
 * @Tabber Settings
 *
*/
?>
jQuery(document).ready( function($){	
	var chklazy = '<?php echo esc_attr(mwp_option('lazyload-enable')); ?>';
	$('.current_tab').each( function(){
		$($(this).attr('href')).show();                     
	});
	$("body").on("click", "ul.tab_nav li a", function() {
		var current_tab = $(this).closest('.tab_nav').find('.current_tab');
		$($(current_tab).attr('href')).hide(); 
		current_tab.removeClass('current_tab');
		$(this).addClass('current_tab');
		if (chklazy == 1) {
			$(window).trigger('showlazy');
		} else {}
		$($(this).attr('href')).animate( { "opacity": "show", top:"100"},500);
		return false;
	});
});
<?php
/*
 * @LightBox library
*/
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'carousel' ) ) {

} elseif (mwp_option('lightbox-enable') == 1) {
	if (is_singular()) :
		if (mwp_option('lightbox-library') == 1) {
			echo 'jQuery(document).ready(function(){jQuery(".el-content a.swipebox,.entry-gallery a.swipebox").swipebox();});';
		} elseif (mwp_option('lightbox-library') == 2) {
			echo 'jQuery(document).ready(function(){jQuery(".el-content,.entry-gallery").find("img").addClass("data-lightbox");});';
		} elseif (mwp_option('lightbox-library') == 3) {
			echo 'jQuery(document).ready(function(){jQuery(".el-content a.venobox,.entry-gallery a.venobox").venobox({numeratio: true,titleattr: "title",});});';
		} 
	endif;
}
/*
 * Related Post (Jetpack)
*/
if (is_singular() && class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'related-posts' ) ) {
?>
var related_posts_js_options = {"post_heading":"h4"};
<?php
}
/*
 * @Scroll to Top Button
*/
?>
jQuery(document).ready(function(){jQuery(window).scroll(function(){if(jQuery(this).scrollTop()>100){jQuery(".scrolltop").fadeIn()}else{jQuery(".scrolltop").fadeOut()}});jQuery(".scrolltop").click(function(){jQuery("html, body").animate({scrollTop:0},1000);return false})});
</script>
<?php	
}
/*
 * Load Cycle2 jQuery
 * Theia Sticky Sidebar
 * LightBox jQuery
 *
*/
add_action('wp_footer', 'mwp_load_cycle2_scripts', 4);
function mwp_load_cycle2_scripts() {
	
	$global_src = MWP_PATH_URL . '/js/global.min.js';
	echo '<script src="'.$global_src.'" defer="defer"></script>';
	
	if (mwp_option('jquery-cycle2') == 0) : 
		$cycle2_src = MWP_PATH_URL . '/js/jquery.cycle2.min.js';
		echo '<script src="'.$cycle2_src.'" defer="defer"></script>';
	endif;
	
	/*
	 * @Theia Sticky Sidebar
	 * https://github.com/WeCodePixels/theia-sticky-sidebar
	*/
	if (mwp_option('single-full') == 1 && is_singular('post')) {
		// No Thing TO DO
	} elseif ( mwp_option( 'home-type') == 1 && mwp_option('home-blog-style') == 3 && is_home()) {
		// No Thing TO DO
	} elseif ( mwp_option( 'home-type') == 1 && mwp_option('home-blog-style-archives') == 1 && mwp_option('home-blog-style') == 3 && is_archive() ) {
		// No Thing TO DO
	} else {
		if (mwp_option('sticky-sidebar') == 1) : 
			$sticky_src = MWP_PATH_URL . '/js/theia-sticky-sidebar.min.js';
			echo '<script src="'.$sticky_src.'" defer="defer"></script>';
		endif;
	}
	/*
	 * LightBox jQuery Libs
	*/
	if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'carousel' ) ) {
		
	} elseif (mwp_option('lightbox-enable') == 1 && is_singular()) {
		if (mwp_option('lightbox-library') == 1 ) {
			$lightbox_src = MWP_PATH_URL . '/js/lightbox/swipebox.min.js';
		} else if (mwp_option('lightbox-library') == 2 ) {
			$lightbox_src = MWP_PATH_URL . '/js/lightbox/lightbox.min.js';
		} else if (mwp_option('lightbox-library') == 3 ) {
			$lightbox_src = MWP_PATH_URL . '/js/lightbox/venobox.min.js';
		}
		echo '<script src="'.$lightbox_src.'" defer="defer"></script>';
	}
	
	$bootstrap_src = MWP_PATH_URL . '/js/bootstrap.min.js';
	echo '<script src="'.$bootstrap_src.'" defer="defer"></script>';
}
/*
 * Comments settings
 *
*/
add_action('wp_footer', 'mwp_comments_script', 7);
function mwp_comments_script() {
	if (mwp_option('single-comments-type') <= '2') {
		if ( mwp_option( 'single-comments-ajax') == '1') {
			if ( is_singular() && comments_open() ) {
				$output = 'var comments_set = {';
				$output .= '"ajaxurl":"' . MWP_AJAX_ENDPOINT . '",';
				$output .= '"currenturl":"' . get_the_permalink() . '",';
				$output .= '"error_status":"'. esc_attr__( 'You are posting comments too quickly. Slow down.', MWP_TEXT_DOMAIN ) . '",';
				$output .= '"error_fields":"'. esc_attr__( 'You might have left one of the fields blank.', MWP_TEXT_DOMAIN ).'",';
				$output .= '"error_duplicate":"'. esc_attr__( "Duplicate comment detected; it looks as though you've already said that!", MWP_TEXT_DOMAIN ).'",';
				$output .= '"error_email":"'. esc_attr__( 'Please enter a valid email address', MWP_TEXT_DOMAIN ).'",';
				$output .= '"success":"'. esc_attr__( 'Thanks for your comment. We appreciate your response.', MWP_TEXT_DOMAIN ).'",';
				$output .= '"heading_text":"'. esc_attr__( 'Comments', MWP_TEXT_DOMAIN ).'",';
				$output .= '"heading_color":"'.mwp_csa_color().'",';
				$output .= '"heading_border":"'.mwp_csa_border().'",';
				$output .= '"waite":"'. esc_attr__( 'Please waite', MWP_TEXT_DOMAIN ).'",';
				$output .= '"loader":"'.MWP_PATH_URL.'/images/loader-comment.gif"';
				$output .= '};';
				if ( $output != '' ) {
					$output = "<script>" . $output . "</script>\n";
					echo $output;
				}
				?><script>jQuery.extend(jQuery.fn,{validate:function(){if(jQuery(this).val().length<3){jQuery(this).addClass('required-error');return false}else{jQuery(this).removeClass('required-error');return true}},validateEmail:function(){var emailReg=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/,emailToValidate=jQuery(this).val();if(!emailReg.test(emailToValidate)||emailToValidate==""){jQuery(this).addClass('required-error');return false}else{jQuery(this).removeClass('required-error');return true}},});jQuery(function($){var $msg_pross=jQuery('<span class="simple-loader"></span>').appendTo(".comment-rules, .form-submit");$('#commentform').submit(function(){var button=$('#submit'),respond=$('#respond'),commentlist=$('.commentlist'),cancelreplylink=$('#cancel-comment-reply-link');if($('#author').length)$('#author').validate();if($('#email').length)$('#email').validateEmail();$('#comment').validate();jQuery(".comments-alerts").empty();if($('#author').hasClass('required-error')){jQuery('<span class="alert-hide alert alert-danger">'+comments_set.error_fields+'</span>').appendTo(".comments-alerts").css('display','block')}else if($('#email').hasClass('required-error')){jQuery('<span class="alert-hide alert alert-danger">'+comments_set.error_email+'</span>').appendTo(".comments-alerts").css('display','block')}else if($('#comment').hasClass('required-error')){jQuery('<span class="alert-hide alert alert-danger">'+comments_set.error_fields+'</span>').appendTo(".comments-alerts").css('display','block')}jQuery(window).trigger('resize');if(!button.hasClass('loadingform')&&!$('#author').hasClass('required-error')&&!$('#email').hasClass('required-error')&&!$('#comment').hasClass('required-error')){$.ajax({type:'POST',url:comments_set.ajaxurl,data:$(this).serialize()+'&action=load_ajax_comments',beforeSend:function(xhr){$msg_pross.empty().append('<img src="'+comments_set.loader+'" alt="Processing ...">').show()},error:function(request,status,error){$msg_pross.hide();if(status==500){jQuery('<span class="alert-hide alert alert-danger">'+comments_set.error_500+'</span>').appendTo(".comments-alerts").css('display','block')}else if(status=='timeout'){jQuery('<span class="alert-hide alert alert-danger">'+comments_set.error_timeout+'</span>').appendTo(".comments-alerts").css('display','block')}else{jQuery('<span class="alert-hide alert alert-danger">'+comments_set.error_status+'</span>').appendTo(".comments-alerts").css('display','block')}},success:function(addedCommentHTML){$msg_pross.hide();jQuery(".comments-alerts").empty();jQuery('<span class="alert-n alert alert-success">'+comments_set.success+'</span>').appendTo(".comments-alerts").css('display','block');if(commentlist.length>0){if(respond.parent().hasClass('comment')){if(respond.parent().children('.children').length){respond.parent().children('.children').append(addedCommentHTML)}else{addedCommentHTML='<ul class="children">'+addedCommentHTML+'</ul>';respond.parent().append(addedCommentHTML)}cancelreplylink.trigger("click")}else{commentlist.append(addedCommentHTML)}}else{addedCommentHTML='<div id="thread" class="comment-list"><h2 class="'+comments_set.heading_color+' '+comments_set.heading_border+'">'+comments_set.heading_text+'</h2><ul class="commentlist">'+addedCommentHTML+'</ul></div>';if(jQuery('.comments-note').length>0){jQuery('.comments-note').after($(addedCommentHTML))}else{jQuery('.comments-alerts').after($(addedCommentHTML))}}$('#comment').val('')},complete:function(){jQuery(window).lazyLoadXT();jQuery(window).trigger('resize')}})}return false})});</script><?php
			}
		}
	}
}
/*
 * Custom Script
 *
*/
add_action('wp_footer', 'mwp_custom_scripts', 9);
function mwp_custom_scripts() {
	if (mwp_option('custum-scripts') <> "") { 
		echo stripslashes(stripslashes(mwp_option('custum-scripts'))); 
	}
}
/*
 * Adsense - Page-level ads
 *
*/
add_action('wp_footer', 'mwp_adsense_page_level_ads', 99999999999999);
function mwp_adsense_page_level_ads() {
	if (mwp_option('adsense-page-level-ads') <> "") { 
		echo stripslashes(stripslashes(mwp_option('adsense-page-level-ads'))); 
	}
}
/*
 * Light Embeds
 *
 * Youtube - Dailymotion - Vimeo
 *
*/
add_action('wp_footer', 'mwp_light_video_script', 10);
function mwp_light_video_script() {
	if( is_singular() ) {
?>
<script>
(function() {
    var youtube = document.querySelectorAll(".yt-light");
    for (var i = 0; i < youtube.length; i++) {
		var id 	= youtube[i].dataset.mid;
        var img = youtube[i].dataset.mimg;
		var alt = youtube[i].dataset.mtitle;
		var image = document.createElement("img");
		<?php if (mwp_option('lazyload-enable') == 1) { ?>
		image.setAttribute("src", 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
		image.setAttribute("alt", alt);
		image.setAttribute("data-src", img);
		image.setAttribute("class", 'img-responsive lazy');
		<?php } else { ?>
		image.setAttribute("src", img);
		image.setAttribute("alt", alt);
		image.setAttribute("class", 'img-responsive');
		<?php } ?>
            image.addEventListener("load", function() {
                youtube[i].appendChild( image );
            }(i));
            youtube[i].addEventListener("click", function(){
				var iframe = document.createElement( "iframe" );
				iframe.setAttribute( "frameborder", "0" );
                iframe.setAttribute( "allowfullscreen", "" );
				iframe.setAttribute( "src", "//www.youtube.com/embed/"+ this.dataset.mid +"?vq=hd720&amp;rel=0&amp;controls=1&amp;iv_load_policy=3&amp;disablekb=1&amp;modestbranding=1&autoplay=1" );
                this.innerHTML = "";
                this.appendChild( iframe );
            });    
    };
    var dailymotion = document.querySelectorAll(".dm-light");
    for (var i = 0; i < dailymotion.length; i++) {
		var id 	= dailymotion[i].dataset.mid;
        var img = dailymotion[i].dataset.mimg;
		var alt = dailymotion[i].dataset.mtitle;
		var image = document.createElement("img");
		<?php if (mwp_option('lazyload-enable') == 1) { ?>
		image.setAttribute("src", 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
		image.setAttribute("alt", alt);
		image.setAttribute("data-src", img);
		image.setAttribute("class", 'img-responsive lazy');
		<?php } else { ?>
		image.setAttribute("src", img);
		image.setAttribute("alt", alt);
		image.setAttribute("class", 'img-responsive');
		<?php } ?>
            image.addEventListener("load", function() {
                dailymotion[i].appendChild( image );
            }(i));
            dailymotion[i].addEventListener("click", function(){
				var iframe = document.createElement( "iframe" );
				iframe.setAttribute( "frameborder", "0" );
                iframe.setAttribute( "allowfullscreen", "" );
				iframe.setAttribute( "src", "//www.dailymotion.com/embed/video/"+ this.dataset.mid +"?info=0&amp;logo=0&amp;related=0&autoplay=1" );
                this.innerHTML = "";
                this.appendChild( iframe );
            });    
    };
    var vimeo = document.querySelectorAll(".vi-light");
    for (var i = 0; i < vimeo.length; i++) {
		var id 	= vimeo[i].dataset.mid;
        var img = vimeo[i].dataset.mimg;
		var alt = vimeo[i].dataset.mtitle;
		var image = document.createElement("img");
		<?php if (mwp_option('lazyload-enable') == 1) { ?>
		image.setAttribute("src", 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
		image.setAttribute("alt", alt);
		image.setAttribute("data-src", img);
		image.setAttribute("class", 'img-responsive lazy');
		<?php } else { ?>
		image.setAttribute("src", img);
		image.setAttribute("alt", alt);
		image.setAttribute("class", 'img-responsive');
		<?php } ?>
			image.addEventListener("load", function() {
                vimeo[i].appendChild( image );
            }(i));
            vimeo[i].addEventListener("click", function(){
				var iframe = document.createElement( "iframe" );
				iframe.setAttribute( "frameborder", "0" );
                iframe.setAttribute( "allowfullscreen", "" );
				iframe.setAttribute( "src", "//player.vimeo.com/video/"+ this.dataset.mid +"?portrait=0&amp;title=0&amp;badge=0&autoplay=1" );
                this.innerHTML = "";
                this.appendChild( iframe );
            });    
    };
    var facebook_vid = document.querySelectorAll(".fb-light");
    for (var i = 0; i < facebook_vid.length; i++) {
		var id 	= facebook_vid[i].dataset.mid;
        var img = facebook_vid[i].dataset.mimg;
		var alt = facebook_vid[i].dataset.mtitle;
		var image = document.createElement("img");
		<?php if (mwp_option('lazyload-enable') == 1) { ?>
		image.setAttribute("src", 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
		image.setAttribute("alt", alt);
		image.setAttribute("data-src", img);
		image.setAttribute("class", 'img-responsive lazy');
		<?php } else { ?>
		image.setAttribute("src", img);
		image.setAttribute("alt", alt);
		image.setAttribute("class", 'img-responsive');
		<?php } ?>
			image.addEventListener("load", function() {
                facebook_vid[i].appendChild( image );
            }(i));
            facebook_vid[i].addEventListener("click", function(){
				var iframe = document.createElement( "iframe" );
				iframe.setAttribute( "frameborder", "0" );
                iframe.setAttribute( "allowfullscreen", "" );
				iframe.setAttribute( "src", "//www.facebook.com/video/embed?video_id="+ this.dataset.mid);
                this.innerHTML = "";
                this.appendChild( iframe );
            });
    };
})();
</script>
<?php
	}
}
/*
 * Social Media Scripts & Urgent News
 *
*/
function mwp_footer_assets() {
?>
<div id="fb-root"></div>
<script>
jQuery(".container-urgent").hide();
jQuery(window).on("load",function(){
	<?php 
	if (mwp_option('urgent-news-ajax') == 1) {
		$time_delay = mwp_option('urgent-news-delay');
		$auto_hide 	= mwp_option('urgent-news-auto');
		?> 
		jQuery.ajax({
			type: "GET",
			url: "<?php echo MWP_AJAX_ENDPOINT; ?>",
			dataType: 'html',
			data: ({ action: 'load_urgent_news'}),
			success: function(data){
				jQuery(".auto-hide").append(jQuery(data));
				if (!jQuery.trim(data)){   
					jQuery(".container-urgent").hide();
				} else {
					jQuery(".container-urgent").show();
				}
			}
		});
		jQuery("body").on('click', '.urgent span.close-urgent', function() {
			jQuery(".container-urgent").hide();
			return true;
		});
		<?php 
		if ($auto_hide == 1) { 
			echo 'jQuery(".container-urgent").delay('.$time_delay.').fadeOut("slow");'; 
		}
	} ?>
});
<?php
	// facebook app sdk
	if (mwp_option('facebook-app-enable') == '1') {
		$facebook_appid = mwp_option('facebook-app-id');
		$facebook_app_url = '//connect.facebook.net/'.mwp_locale().'/sdk.js#xfbml=1&appId='.sanitize_text_field($facebook_appid).'&version=v3.2';
	} else {
		$facebook_app_url = '//connect.facebook.net/'.mwp_locale().'/sdk.js#xfbml=1&version=v3.2';
	} 
?>
var fired = false;
window.addEventListener("scroll", function(){
if ((document.documentElement.scrollTop != 0 && fired === false) || (document.body.scrollTop != 0 && fired === false)) {
	<?php
	// Load Google Adsense OnScroll
	// Improve Leverage browser caching in (PageSpeed Insights)
	if(mwp_option('adsense-on-scroll') == 1) : 
	?>
	(function(){var ad = document.createElement('script'); ad.type = 'text/javascript'; ad.async = true; ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'; var sc = document.getElementsByTagName('script')[0]; sc.parentNode.insertBefore(ad, sc); })();
	<?php 
	endif; 
	// Load Social SDK
	// Facebook + Google Plus + Twitter + Disqus
	// Improve Leverage browser caching in (PageSpeed Insights)
	$get_shortname = mwp_option('disqus-shortname');
	if (!empty($get_shortname)) {
		$disqus_shortname = $get_shortname;
	} else {
		$disqus_shortname = 'localmaroc';
	}
	?>
	var disqus_shortname = '<?php echo sanitize_text_field($disqus_shortname); ?>';
	(function(d, s) {
		var js, fjs = d.getElementsByTagName(s)[0], frag = d.createDocumentFragment(), add = function(url, id) {
			if (d.getElementById(id)){return;}
			js = d.createElement(s);js.src = url;id && (js.id = id);frag.appendChild(js);
		};
		if(typeof window.__twttr == 'undefined'){
			if (document.querySelector('body .twitter-timeline') !== null || document.querySelector('body .twitter-tweet') !== null ||document.querySelector('body .twitter-follow-button') !== null) {
				add('https://platform.twitter.com/widgets.js');
			}
		}
		if(typeof window.FB == 'undefined'){
			if ( document.querySelector('body .fb-post') !== null || document.querySelector('body .fb-page') !== null || document.querySelector('body .fb-share-button') !== null || document.querySelector('body .fb-like') !== null || document.querySelector('body .fb-comments') !== null || document.querySelector('body .fb-video') !== null){
				add('<?php echo esc_url_raw($facebook_app_url); ?>', 'facebook-jssdk');
			}
		}
		if(typeof window.gapi == 'undefined'){
			if (document.querySelector('body .g-page') !== null || document.querySelector('body .g-follow') !== null || document.querySelector('body .g-ytsubscribe') !== null || document.querySelector('body .g-plusone') !== null) {
				add('https://apis.google.com/js/platform.js');
			}
		}
		if (document.querySelector('a[data-pin-do="buttonFollow"]') !== null) {
			add('http://assets.pinterest.com/js/pinit_main.js');
		}
		if (document.querySelector('body .instagram-media') !== null) {
			add('https://www.instagram.com/embed.js');
		}
		if (document.querySelector('body .weatherwidget-io') !== null) {
			add('//weatherwidget.io/js/widget.min.js');
		}
		<?php if (mwp_option('single-comments-type') == 4 && is_singular()) : ?>
		if (document.querySelector('body #disqus_thread') !== null) {
			add('//' + disqus_shortname + '.disqus.com/embed.js');
		}
		<?php endif; ?>
		fjs.parentNode.insertBefore(frag, fjs);
	}(document, 'script'));
	
	fired = true;
  }
}, true)
</script>
<?php
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists