diff --git a/view/include/head.php b/view/include/head.php index 95013cc35..0e1830e64 100644 --- a/view/include/head.php +++ b/view/include/head.php @@ -1,190 +1,193 @@ getId()); } $custom = array(); $customizePluginDescription = ''; if (file_exists($extraPluginFile) && AVideoPlugin::isEnabledByName("Customize")) { require_once $extraPluginFile; $ec = new ExtraConfig(); $customizePluginDescription = $ec->getDescription(); $custom[] = $customizePluginDescription; } if (!empty($poster)) { $subTitle = str_replace(array('"', "\n", "\r"), array("", "", ""), strip_tags($video['description'])); $custom = array(); $custom[] = $subTitle; if (!empty($video["category"])) { $custom[] = $video["category"]; } } if (!empty($_GET['catName'])) { $category = Category::getCategoryByName($_GET['catName']); $description = str_replace(array('"', "\n", "\r"), array("", "", ""), strip_tags($category['description'])); $custom = array(); $custom[] = $description; $custom[] = $category['name']; } foreach ($custom as $key => $value) { if (empty($value)) { unset($custom[$key]); } } if (!empty($metaDescription)) { $metaDescription = implode(" - ", $custom) . " - {$metaDescription}"; } else { $metaDescription = implode(" - ", $custom); } // for SEO to not rise an error of duplicated title or description of same pages with and without last slash $metaDescription .= getSEOComplement(array("addAutoPrefix" => false)); $theme = getCurrentTheme(); if (empty($config)) { $config = new Configuration(); } ?> keywords)); ?>"> showCustomCSS) && file_exists($filename)) { echo ''; } else { if ($theme !== "default") { echo ""; } if (empty($customizePlugin->showCustomCSS)) { echo ""; } if (!file_exists($filename)) { echo ""; } echo ''; } $cssFiles = array(); $cssFiles[] = "view/css/main.css"; $cssFiles = array_merge($cssFiles, AVideoPlugin::getCSSFiles()); $cssURL = combineFiles($cssFiles, "css"); ?> + + getDisable_analytics()) { ?> getHead(); echo $head; if (!empty($video)) { if (!empty($video['users_id'])) { $userAnalytics = new User($video['users_id']); echo $userAnalytics->getAnalytics(); unset($userAnalytics); } } ogSite(); ?> \ No newline at end of file