if (isset($auto_meta_title) && strlen($auto_meta_title)) { $meta_title = $auto_meta_title; } else { $meta_title = get_setting_value($settings, "site_name"); } } if (!strlen($meta_description) && isset($auto_meta_description)) { $meta_description = $auto_meta_description; } // set some meta data $t->set_var("meta_title", get_translation($meta_title)); if ($meta_keywords) { set_head_tag("meta", array("name" => "keywords", "content" => get_translation($meta_keywords)), "name", 1); } 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);
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content="<?php if (isset($meta_desc)) { echo $meta_desc; } else { get_meta_desc(); } ?> "> <meta name="keyword" content="<?php if (isset($meta_key)) { echo $meta_key; } else { get_meta_keyword(); } ?> "> <meta name="author" content=""> <link rel="icon" href="../../favicon.ico"> <title> <?php