Created
October 28, 2015 08:56
-
-
Save theory-of-soul/f927edeb5dae35053e3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
В файл настройки плагина, дополнительные настройки для главной страницы: | |
if ((is_front_page()==true)) { | |
$meta_string = sprintf("<meta name=\"description\" content=\"%s\"/>", 'Компания АО «БиГ» занимается производством и реализацией металлоконструкций, железобетонных конструкций и опор ЛЭП. Более 10-ти лет наша Компания на рынке электроэнергетики России и стран СНГ.'); | |
$meta_string .= "\n"; | |
$meta_string .= sprintf("<meta name=\"keywords\" content=\"%s\"/>\n", 'Производство металлоконструкций, Производство железобетонных конструкций, Производство опор ЛЭП, Плазменная резка, Обработка металла'); | |
} | |
else{ | |
if (isset ($description) && !empty($description)) { | |
$meta_string = sprintf("<meta name=\"description\" content=\"%s\"/>", $description); | |
} | |
if (isset ($meta_string) && !empty($meta_string)) { | |
$meta_string .= "\n"; | |
} | |
if (isset ($keywords) && !empty($keywords)) { | |
$meta_string .= sprintf("<meta name=\"keywords\" content=\"%s\"/>\n", $keywords); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment