Sindbad~EG File Manager

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

<?php
/*
 * Security 	: blocking direct access
 * Source		: http://codex.wordpress.org/Theme_Development#Template_Files
*/
defined('ABSPATH') or die("Access Restricted");

function mwp_disable_yoast_schema_data($data){
	$data = array();
	return $data;
}
add_filter('wpseo_json_ld_output', 'mwp_disable_yoast_schema_data', 10, 1);

require_once( get_template_directory() . '/functions/seo/helper.php' );
function mwp_seo_meta_jsonld() {
	if (mwp_option('rich-snippet-amp') == 0) {
		$article 				= mwp_option('rich-snippet-article');
		$news_article 			= mwp_option('rich-snippet-newsarticle');
		$blog_posting 			= mwp_option('rich-snippet-blogposting');
		
		if (is_singular()) {
			require_once( get_template_directory() . '/functions/seo/single-jsonld.php' );
			return mwp_seo_single_jsonld();
		}
	}
}
add_action('wp_head', 'mwp_seo_meta_jsonld', 1);
/*	
 * Function Description	: Auto SEO
 * Author Name			: Mouad Achemli
 * Function Source		: http://www.mwordpress.net
 * Note					: this function is important do not remove from here
 *
*/
function mwp_seo_meta() {
	if ( mwp_option('seo-enable') == 1) {
		$videos_ids = mwp_option('category-videos');
		switch (true) {
			case (is_home()) :
				require_once( get_template_directory() . '/functions/seo/meta-home.php' );
				return mwp_seo_home();
				break;
			case (is_singular() || is_attachment()) :
				if (is_singular('page')) {
					require_once( get_template_directory() . '/functions/seo/meta-page.php' );
					return mwp_seo_page();
				} else {
					if (!empty($videos_ids) && in_category($videos_ids)) {
						require_once( get_template_directory() . '/functions/seo/meta-single-video.php' );
						return mwp_seo_single_video();
					} else {
						require_once( get_template_directory() . '/functions/seo/meta-single.php' );
						return mwp_seo_single();
					}
				}
				break;
			case (is_author()) :
				require_once( get_template_directory() . '/functions/seo/meta-author.php' );
				return mwp_seo_author();
				break;
			case (is_category()) :
				require_once( get_template_directory() . '/functions/seo/meta-category.php' );
				return mwp_seo_category();
				break;
			case (is_tag()) :
				require_once( get_template_directory() . '/functions/seo/meta-tag.php' );
				return mwp_seo_tag();
				break;
			case (is_archive()) :
				require_once( get_template_directory() . '/functions/seo/meta-archive.php' );
				return mwp_seo_archive();
				break;
			case (is_search()) :
				require_once( get_template_directory() . '/functions/seo/meta-search.php' );
				return mwp_seo_search();
				break;
		}
	}
}
add_action('wp_head', 'mwp_seo_meta', 0);

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