コード例 #1
0
ファイル: template.php プロジェクト: uzura8/flockbird
  <meta name="google-site-verification" content="<?php 
    echo GOOGLE_SITE_VERIFICATION;
    ?>
"><?php 
}
echo render('_parts/template/site_meta_ogp', array('description' => $header_description));
echo render('_parts/template/load_common_css');
echo render('_parts/template/load_site_css');
echo render('_parts/template/load_common_favicon');
if (isset($post_header)) {
    echo $post_header;
}
?>
</head>
<?php 
$current_page_id = site_get_current_page_id();
$body_attrs = array('id' => $current_page_id);
if (conf('library.angularJs.isEnabled') && $use_angularjs) {
    $body_attrs['ng-app'] = Inflector::camelize($current_page_id);
}
?>
<body <?php 
echo Util_Array::conv_array2attr_string($body_attrs);
?>
>

<?php 
echo render('_parts/template/navbar');
?>

<?php 
コード例 #2
0
ファイル: template.php プロジェクト: uzura8/flockbird
<?php 
echo Asset::css('bootstrap.custom.admin.css');
echo render('_parts/template/load_common_css');
echo Asset::css('admin.css');
echo render('_parts/template/load_common_favicon');
?>

<?php 
if (isset($post_header)) {
    echo $post_header;
}
?>
</head>
<body id="<?php 
echo site_get_current_page_id();
?>
">

<?php 
echo render('_parts/template/navbar');
?>

<div id="main_container" class="container">
	<div class="row row-offcanvas row-offcanvas-right">
		<div class="col-sm-<?php 
if ($layout == 'wide') {
    ?>
12<?php 
} else {
    ?>
コード例 #3
0
ファイル: base.php プロジェクト: uzura8/flockbird
 protected function check_not_auth_action()
 {
     if (conf('base.isDisplayTopPageWithoutAuth') && check_current_uri(Config::get('routes._root_'), true)) {
         return true;
     }
     if (conf('base.closedSite.isEnabled')) {
         if (check_current_uri($this->get_login_page_uri())) {
             return true;
         }
         if (in_array(site_get_current_page_id('/'), conf('base.closedSite.accessAccepted.actions'))) {
             return true;
         }
         return in_array(current_uri(true), conf('base.closedSite.accessAccepted.uris'));
     }
     return in_array(Site_Util::get_action_name(IS_API), $this->check_not_auth_action);
 }