Exemple #1
0
if ($page > 1) {
    $page_title .= ' ' . NV_TITLEBAR_DEFIS . ' ' . $BL->glang('page') . ' ' . $page;
    $key_words .= ', ' . $BL->glang('page') . ' ' . $page;
    $description .= ' ' . NV_TITLEBAR_DEFIS . ' ' . $BL->glang('page') . ' ' . $page;
}
// Open Graph
if ($global_config['site_home_module'] == $module_name and !empty($home)) {
    $my_head .= "<meta property=\"og:title\" content=\"" . $global_config['site_name'] . "\" />\n";
    $my_head .= "<meta property=\"og:type\" content=\"website\" />\n";
    $my_head .= "<meta property=\"og:url\" content=\"" . NV_MY_DOMAIN . nv_url_rewrite(NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA, true) . "\" />\n";
    $my_head .= "<meta property=\"og:description\" content=\"" . $global_config['site_description'] . "\" />\n";
} else {
    $my_head .= "<meta property=\"og:title\" content=\"" . $page_title . ' ' . NV_TITLEBAR_DEFIS . ' ' . $global_config['site_name'] . "\" />\n";
    $my_head .= "<meta property=\"og:type\" content=\"website\" />\n";
    $my_head .= "<meta property=\"og:url\" content=\"" . NV_MY_DOMAIN . nv_url_rewrite(NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name, true) . "\" />\n";
    $my_head .= "<meta property=\"og:description\" content=\"" . $module_info['description'] . "\" />\n";
}
if (!empty($BL->setting['sysDefaultImage'])) {
    if (preg_match("/^\\//", $BL->setting['sysDefaultImage'])) {
        $my_head .= "<meta property=\"og:image\" content=\"" . NV_MY_DOMAIN . $BL->setting['sysDefaultImage'] . "\" />\n";
    } else {
        $my_head .= "<meta property=\"og:image\" content=\"" . $BL->setting['sysDefaultImage'] . "\" />\n";
    }
} else {
    $my_head .= "<meta property=\"og:image\" content=\"" . NV_MY_DOMAIN . NV_BASE_SITEURL . $global_config['site_logo'] . "\" />\n";
}
$my_head .= "<meta property=\"og:locale\" content=\"" . $BL->setting['sysLocale'] . "\" />\n";
$contents = nv_main_theme($array, $generate_page, $BL->setting, $page, $total_pages, $BL);
include NV_ROOTDIR . '/includes/header.php';
echo nv_site_theme($contents);
include NV_ROOTDIR . '/includes/footer.php';
<?php

/**
 * @Project NUKEVIET 4.x
 * @Author VINADES.,JSC (contact@vinades.vn)
 * @Copyright (C) 2014 VINADES.,JSC. All rights reserved
 * @License GNU/GPL version 2 or any later version
 * @Createdate 12/31/2009 0:51
 */
if (!defined('NV_MOD_OAUTH2')) {
    die('Stop!!!');
}
$page_title = $module_info['custom_title'];
$key_words = $description = 'no';
$array = array();
$contents = nv_main_theme($array);
include NV_ROOTDIR . '/includes/header.php';
echo nv_site_theme($contents);
include NV_ROOTDIR . '/includes/footer.php';