本文整理汇总了PHP中end_content_for函数的典型用法代码示例。如果您正苦于以下问题:PHP end_content_for函数的具体用法?PHP end_content_for怎么用?PHP end_content_for使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了end_content_for函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: html_default_view
function html_default_view($vars)
{
extract($vars);
?>
<p>my content</p>
<?php
content_for('side');
?>
<p><?php
echo 'my';
?>
sidebar</p>
<?php
end_content_for();
}
示例2: url_for
?>
<div id="controls">
<ul>
<li><a href="<?php
echo url_for('clients', 'new');
?>
" id="createClient"><img src="img/create_client.png" alt="<?php
echo _("New client");
?>
" title="<?php
echo _("New client");
?>
"></a></li>
</ul>
</div>
<?php
end_content_for();
?>
<?php
content_for('scripts');
?>
<?php
echo HTML::script("\n\$('.edit_client, #createClient').live('click', function() {\n \$.getScript(this.href);\n return false;\n});\nvar currentNav = 'clients';\n");
?>
<?php
end_content_for();
示例3: do_content_for
Score: <span id="hover-score"></span>
Rating: <span id="hover-rating"></span>
<span id="hover-is-parent">Parent</span>
<span id="hover-is-child">Child</span>
<span id="hover-is-pending">Pending</span>
<span id="hover-not-shown">Hidden</span>
</div>
<div>
<span id="hover-is-flagged"><span class="flagged-text">Flagged</span> by <span id="hover-flagged-by"></span>: <span id="hover-flagged-reason">gar</span></span>
</div>
</div>
<div>
<span id="hover-tags">
<span class="tag-type-artist"><a id="hover-tag-artist"></a></span>
<span class="tag-type-circle"><a id="hover-tag-circle"></a></span>
<span class="tag-type-copyright"><a id="hover-tag-copyright"></a></span>
<span class="tag-type-character"><a id="hover-tag-character"></a></span>
<span class="tag-type-general"><a id="hover-tag-general"></a></span>
<span class="tag-type-faults"><a id="hover-tag-faults"></a></span>
<span class="tag-type-custom"><a id="hover-tag-custom"></a></span>
</span>
</div>
</div>
<?php
do_content_for("post_cookie_javascripts");
?>
<script type="text/javascript">Post.hover_info_init();</script>
<?php
end_content_for(true);