Sindbad~EG File Manager
<?php
/*
* Security : blocking direct access
* Source : http://codex.wordpress.org/Theme_Development#Template_Files
*/
defined('ABSPATH') or die("Access Restricted");
function mwp_seo_search() {
/*!
* Get SEO info
*/
$viewport = 'width=device-width, initial-scale=1';
$referrer = 'unsafe-url'; // https://moz.com/blog/meta-referrer-tag
$profile = 'http://gmpg.org/xfn/11';
$robots = 'NOODP'; // https://moz.com/blog/why-wont-google-use-my-meta-description
$http_equiv = 'text/html; charset=utf-8';
$http_equiv_compatible = 'IE=edge,chrome=1';
$apple_capable = 'yes';
$search = get_search_query();
$seo_url = get_search_link();
$seo_title = __('Search results for : ', MWP_TEXT_DOMAIN) . $search;
$standar_data = array (
'title' => $seo_title,
'X-UA-Compatible' => $http_equiv_compatible,
'Content-Type' => $http_equiv,
'viewport' => $viewport,
'robots' => $robots,
'referrer' => $referrer,
'apple-mobile-web-app-capable' => $apple_capable,
'profile' => $profile,
);
// Removing empty array slots
$standar = array_filter( $standar_data );
echo '<!-- Standard Meta -->',"\n";
foreach ($standar as $key => $value) {
switch ($key) {
case 'title':
$standar_output = "<title>".$value."</title>\n";
break;
case 'X-UA-Compatible':
case 'Content-Type':
case 'viewport':
case 'robots':
case 'referrer':
case 'apple-mobile-web-app-capable':
$standar_output = "<meta name='".$key."' content='".$value."'/>\n";
break;
case 'profile':
$standar_output = "<link rel='".$key."' href='".$value."'/>\n";
break;
}
echo $standar_output;
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists