Пример #1
0
<?php

echo Html::doctype('html5');
?>
<html lang="ja">
<head<?php 
if (is_enabled_share('facebook', 'share')) {
    ?>
 prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#"<?php 
}
?>
>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width<?php 
if (IS_SP) {
    ?>
, initial-scale=1.0, maximum-scale=1.0, user-scalable=no<?php 
}
?>
">
<meta name="description" content="<?php 
echo $header_description ? $header_description : FBD_HEADER_DESCRIPTION_DEFAULT;
?>
">
<meta name="keywords" content="<?php 
echo site_header_keywords($header_keywords);
?>
">
<title><?php 
echo $header_title ? $header_title : $title;
Пример #2
0
    $text_for_link = FBD_SITE_NAME;
}
if (!in_array('facebook', $disableds) && is_enabled_share('facebook', 'share')) {
    echo btn('service.facebook.do_share', 'http://www.facebook.com/share.php?u=' . $full_url, null, true, 'xs', 'primary', array('class' => 'mr10', 'onClick' => "window.open(this.href, 'FBwindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars=yes'); return false;"), null, null, null, false);
}
?>

<?php 
if (!in_array('twitter', $disableds) && is_enabled_share('twitter')) {
    echo btn('service.twitter.do_share', sprintf('http://twitter.com/share?url=%s&amp;text=%s', $full_url, urlencode($text_for_link)), null, true, 'xs', 'info', array('class' => 'mr10', 'target' => '_blank'), null, null, null, false);
}
?>

<?php 
if (!in_array('line', $disableds) && is_enabled_share('line')) {
    echo btn('service.line.do_share', sprintf('http://line.me/R/msg/text/?%s %s', urlencode($text_for_link), $full_url), null, true, 'xs', 'success', array('class' => 'mr10 fb-sp-view', 'target' => '_blank'), null, null, null, false);
}
?>

<?php 
if (!in_array('google', $disableds) && is_enabled_share('google')) {
    ?>
<g:plusone data-href="<?php 
    echo $full_url;
    ?>
" expandTo="bottom"></g:plusone>
<?php 
}
?>

Пример #3
0
    ?>
		'timeline_list_limit': <?php 
    echo conf('articles.limit', 'timeline');
    ?>
,
<?php 
}
if (is_enabled_map()) {
    ?>
		'mapParams': <?php 
    echo json_encode(conf('map.paramsDefault'));
    ?>
,
<?php 
}
if (is_enabled_share('google')) {
    ?>
		'isEnabledShareGoogle': 1,
<?php 
}
?>
		'default_ajax_timeout': <?php 
echo conf('default.ajax_timeout');
?>
,
		'default_list_limit': <?php 
echo conf('view_params_default.list.limit');
?>
,
		'default_list_comment_limit_max': <?php 
echo conf('view_params_default.list.comment.limit_max');