Пример #1
0
 /**
  * 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
0
				<?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
0
?>
,
	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 
<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';
        }
        ?>