Esempio n. 1
0
}
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);
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");
Esempio n. 2
0
<?php

include_once "./includes/record.php";
include_once "./includes/parameters.php";
include_once "./includes/profile_functions.php";
$html_template = get_setting_value($block, "html_template", "block_user_profile.html");
$t->set_file("block_body", $html_template);
set_link_tag("styles/editor.css", "stylesheet", "text/css");
set_script_tag("js/profile.js");
set_script_tag("js/editor.js");
$site_url = get_setting_value($settings, "site_url", "");
$secure_url = get_setting_value($settings, "secure_url", "");
$secure_redirect = get_setting_value($settings, "secure_redirect", 0);
$secure_user_profile = get_setting_value($settings, "secure_user_profile", 0);
if ($secure_user_profile) {
    $user_profile_url = $secure_url . get_custom_friendly_url("user_profile.php");
} else {
    $user_profile_url = $site_url . get_custom_friendly_url("user_profile.php");
}
$type = get_param("type");
if (!$is_ssl && $secure_user_profile && $secure_redirect && preg_match("/^https/i", $secure_url)) {
    if ($type) {
        $user_profile_url .= "?type=" . urlencode($type);
    }
    header("Location: " . $user_profile_url);
    exit;
}
// get user type settings
$type_id = "";
$group_sms_allowed = 0;
$user_email = "";