Beispiel #1
0
if ($meta_description) {
    set_head_tag("meta", array("name" => "description", "content" => get_translation(get_meta_desc($meta_description))), "name", 1);
}
if (!isset($canonical_url) || !strlen($canonical_url)) {
    $canonical_url = "";
}
set_link_tag(htmlspecialchars($canonical_url), "canonical", "");
if ($google_analytics && $google_tracking_code) {
    $t->parse_to("head_tag", "head_tags");
}
//Customization by Vital - Open Graph tags
if (!isset($meta_OG_image) || !strlen($meta_OG_image)) {
    $meta_OG_image = "http://www.cuttingedgestencils.com/images/small/Casablanca-stencil-design.jpg";
}
$meta_OG_image = strpos($meta_OG_image, "cuttingedgestencils.com") ? $meta_OG_image : "http://www.cuttingedgestencils.com/" . $meta_OG_image;
set_head_tag("meta", array("property" => "og:type", "content" => "website"), "property", 1);
set_head_tag("meta", array("property" => "og:image", "content" => $meta_OG_image), "property", 1);
set_head_tag("meta", array("property" => "og:title", "content" => $meta_title), "property", 1);
set_head_tag("meta", array("property" => "og:url", "content" => "http://www.cuttingedgestencils.com/" . $canonical_url), "property", 1);
//END customization
//---------HOME STYLES
$t->set_var("contentStyle", "contentStyle");
$t->set_var("leftStyle", "leftStyle");
$t->set_var("centerStyle", "centerStyle");
if ($current_page == "index.php") {
    $t->set_var("contentStyle", "contentStyleHome");
    $t->set_var("leftStyle", "leftStyleHome");
    $t->set_var("centerStyle", "centerStyle");
}
// parse page content
$t->pparse("main");
Beispiel #2
0
function set_script_tag($src, $language = "JavaScript", $type = "text/javascript")
{
    set_head_tag("script", array("src" => $src, "language" => $language, "type" => $type), "src", 2);
}