本文整理汇总了PHP中FLBuilderModel::is_post_user_template方法的典型用法代码示例。如果您正苦于以下问题:PHP FLBuilderModel::is_post_user_template方法的具体用法?PHP FLBuilderModel::is_post_user_template怎么用?PHP FLBuilderModel::is_post_user_template使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FLBuilderModel
的用法示例。
在下文中一共展示了FLBuilderModel::is_post_user_template方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render_nodes
/**
* Renders the markup for all nodes in a layout.
*
* @since 1.6.3
* @return void
*/
public static function render_nodes()
{
if (FLBuilderModel::is_post_user_template('module')) {
self::render_modules();
} else {
self::render_rows();
}
}
示例2: _e
<?php
if (!FLBuilderModel::is_post_user_template('module') && !$simple_ui) {
?>
<i class="fl-block-move fa fa-arrows fl-tip" title="<?php
_e('Move', 'fl-builder');
?>
"></i>
<?php
}
?>
<i class="fl-block-settings fa fa-wrench fl-tip" title="{{data.moduleName}} <?php
_e('Settings', 'fl-builder');
?>
"></i>
<?php
if (!FLBuilderModel::is_post_user_template('module') && !$simple_ui) {
?>
<i class="fl-block-copy fa fa-copy fl-tip" title="<?php
_e('Duplicate', 'fl-builder');
?>
"></i>
<span class="fl-builder-has-submenu">
<i class="fl-block-col-settings fa fa-columns fl-tip" title="<?php
_e('Edit Column', 'fl-builder');
?>
"></i>
<ul class="fl-builder-submenu fl-block-col-submenu">
<li><a class="fl-block-col-edit" href="javascript:void(0);"><?php
_e('Column Settings', 'fl-builder');
?>
</a></li>
示例3: home_url
?>
,
homeUrl: '<?php
echo home_url();
?>
',
isRtl: <?php
if (is_rtl()) {
echo 'true';
} else {
echo 'false';
}
?>
,
isUserTemplate: <?php
if (FLBuilderModel::is_post_user_template()) {
echo 'true';
} else {
echo 'false';
}
?>
,
lite: <?php
if (FL_BUILDER_LITE === true) {
echo 'true';
} else {
echo 'false';
}
?>
,
newUser: <?php
示例4: foreach
<div class="fl-builder-blocks-separator"></div>
<?php
if (!FLBuilderModel::is_post_user_template('row')) {
?>
<div id="fl-builder-blocks-saved-rows" class="fl-builder-blocks-section fl-builder-blocks-node-template">
<span class="fl-builder-blocks-section-title">
<?php
_e('Saved Rows', 'fl-builder');
?>
<i class="fa fa-chevron-down"></i>
</span>
<div class="fl-builder-blocks-section-content fl-builder-saved-rows">
<?php
if (0 === count($saved_rows)) {
?>
<span class="fl-builder-block-no-node-templates"><?php
_e('No saved rows found.', 'fl-builder');
?>
</span>
<?php
}
?>
<?php
foreach ($saved_rows as $saved_row) {
?>
<span class="fl-builder-block fl-builder-block-saved-row<?php
if ($saved_row['global']) {
echo ' fl-builder-block-global';
}
?>