當前位置: 首頁>>代碼示例>>PHP>>正文


PHP context::global_filter方法代碼示例

本文整理匯總了PHP中context::global_filter方法的典型用法代碼示例。如果您正苦於以下問題:PHP context::global_filter方法的具體用法?PHP context::global_filter怎麽用?PHP context::global_filter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在context的用法示例。


在下文中一共展示了context::global_filter方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

<div id="header">
	<h1><a href="<?php 
echo context::global_filter($core->blog->url, 0, 0, 0, 0, 0, 'BlogURL');
?>
"><em><?php 
echo context::global_filter($core->blog->name, 1, 0, 0, 0, 0, 'BlogName');
?>
</em> <?php 
echo context::global_filter($core->blog->settings->editor, 1, 0, 0, 0, 0, 'BlogEditor');
?>
</a></span></h1>
  <p><?php 
echo context::global_filter($core->blog->desc, 0, 0, 0, 0, 0, 'BlogDescription');
?>
</p>

  <?php 
if ($core->hasBehavior('publicTopAfterContent')) {
    $core->callBehavior('publicTopAfterContent', $core, $_ctx);
}
?>
</div>
開發者ID:HackerMajor,項目名稱:root,代碼行數:22,代碼來源:102ef9138f99be92b1c6984ec7a979d1.php

示例2: __

            echo __('page');
            ?>
 <?php 
            echo context::global_filter(context::PaginationPosition(0), 0, 0, 0, 0, 0, 'PaginationCurrent');
            ?>
 <?php 
            echo __('of');
            ?>
 <?php 
            echo context::global_filter(context::PaginationNbPages(), 0, 0, 0, 0, 0, 'PaginationCounter');
            ?>
        <?php 
            if (!context::PaginationStart()) {
                ?>
 - <a href="<?php 
                echo context::global_filter(context::PaginationURL(-1), 0, 0, 0, 0, 0, 'PaginationURL');
                ?>
" class="next"><?php 
                echo __('next entries');
                ?>
        &#187;</a><?php 
            }
            ?>
</p>
      <?php 
        }
        ?>
    <?php 
    }
    ?>
  <?php 
開發者ID:HackerMajor,項目名稱:root,代碼行數:31,代碼來源:41def94b506fb1e38a7fcb6de8d5b1d2.php

示例3: url

<style type="text/css" media="screen">
@import url(<?php 
echo context::global_filter($core->blog->settings->themes_url . "/" . $core->blog->settings->theme, 0, 0, 0, 0, 0, 'BlogThemeURL');
?>
/style.css);
</style>
<style type="text/css" media="print">
@import url(<?php 
echo context::global_filter($core->blog->settings->themes_url . "/" . $core->blog->settings->theme, 0, 0, 0, 0, 0, 'BlogThemeURL');
?>
/../default/print.css);
</style>

<script type="text/javascript" src="<?php 
echo context::global_filter($core->blog->settings->themes_url . "/" . $core->blog->settings->theme, 0, 0, 0, 0, 0, 'BlogThemeURL');
?>
/../default/js/jquery.js"></script>
<script type="text/javascript" src="<?php 
echo context::global_filter($core->blog->settings->themes_url . "/" . $core->blog->settings->theme, 0, 0, 0, 0, 0, 'BlogThemeURL');
?>
/../default/js/jquery.cookie.js"></script>

<?php 
try {
    echo $core->tpl->getData('user_head.html');
} catch (Exception $e) {
}
if ($core->hasBehavior('publicHeadContent')) {
    $core->callBehavior('publicHeadContent', $core, $_ctx);
}
開發者ID:HackerMajor,項目名稱:root,代碼行數:30,代碼來源:f4cd3d6ed05ba6b56ca6a7ffb9fb3986.php


注:本文中的context::global_filter方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。