Ejemplo n.º 1
0
    function area_controls($a)
    {
        if (!pl_draft_mode()) {
            return '';
        }
        ob_start();
        ?>

		<div class="pl-area-controls">
			<span class="area-control tt-bottom area-delete area-hide" data-area-action="delete" title="<?php 
        _e('Delete', 'pagelines');
        ?>
">
				<i class="icon icon-remove"></i>
			</span><span class="area-control tt-bottom area-clone area-hide <?php 
        echo pl_pro_disable_class();
        ?>
" data-area-action="clone" title="<?php 
        _e('Clone', 'pagelines');
        ?>
 <?php 
        echo pl_pro_text();
        ?>
">
				<i class="icon icon-copy"></i>
			</span>
			<span class="area-control tt-bottom area-save area-hide <?php 
        echo pl_pro_disable_class();
        ?>
" data-area-action="save" title="<?php 
        _e('Save As Section', 'pagelines');
        ?>
 <?php 
        echo pl_pro_text();
        ?>
">
				<i class="icon icon-save"></i>
			</span><span class="area-control tt-bottom area-reorder area-hide" data-area-action="reorder" title="<?php 
        _e('Move', 'pagelines');
        ?>
">
				<i class="icon icon-reorder"></i>
			</span><span class="area-control tt-bottom area-edit section-edit" data-area-action="settings" title="<?php 
        _e('Edit', 'pagelines');
        ?>
">
				<i class="icon icon-pencil"></i>
			</span><span class="area-control tt-bottom area-unlock" data-area-action="unlock" title="<?php 
        _e('Break Link', 'pagelines');
        ?>
">
					<i class="icon icon-unlock"></i>
			</span>
		</div>
		<?php 
        return ob_get_clean();
    }
Ejemplo n.º 2
0
    function section_controls($s)
    {
        if (!$this->draft->show_editor()) {
            return;
        }
        $sid = $s->id;
        ob_start();
        ?>
		<div class="pl-section-controls fix" >
			<div class="controls-left">
				<a title="<?php 
        _e('Decrease Width', 'pagelines');
        ?>
" href="#" class="s-control s-control-icon section-decrease"><i class="icon icon-caret-left"></i></a>
				<span title="<?php 
        _e('Column Width', 'pagelines');
        ?>
" class="s-control section-size"></span>
				<a title="<?php 
        _e('Increase Width', 'pagelines');
        ?>
" href="#" class="s-control s-control-icon section-increase"><i class="icon icon-caret-right"></i></a>
				<a title="<?php 
        _e('Offset Left', 'pagelines');
        ?>
 <?php 
        echo pl_pro_text();
        ?>
" href="#" class="s-control s-control-icon section-offset-reduce <?php 
        echo pl_pro_disable_class();
        ?>
"><i class="icon icon-angle-left"></i></a>
				<span title="<?php 
        _e('Offset Amount', 'pagelines');
        ?>
" class="s-control offset-size"></span>
				<a title="<?php 
        _e('Offset Right', 'pagelines');
        ?>
 <?php 
        echo pl_pro_text();
        ?>
" href="#" class="s-control s-control-icon section-offset-increase <?php 
        echo pl_pro_disable_class();
        ?>
"><i class="icon icon-angle-right"></i></a>
				<a title="<?php 
        _e('Force to New Row', 'pagelines');
        ?>
 <?php 
        echo pl_pro_text();
        ?>
" href="#" class="s-control s-control-icon section-start-row <?php 
        echo pl_pro_disable_class();
        ?>
"><i class="icon icon-double-angle-left"></i></a>
			</div>
			<div class="controls-right">
				<a title="<?php 
        _e('Edit', 'pagelines');
        ?>
" href="#" class="s-control s-control-icon section-edit s-loaded"><i class="icon icon-pencil"></i></a>
				<a title="<?php 
        _e('Clone', 'pagelines');
        ?>
 <?php 
        echo pl_pro_text();
        ?>
" href="#" class="s-control s-control-icon section-clone s-loaded <?php 
        echo pl_pro_disable_class();
        ?>
"><i class="icon icon-copy"></i></a>
				<a title="<?php 
        _e('Delete', 'pagelines');
        ?>
" href="#" class="s-control s-control-icon section-delete"><i class="icon icon-remove"></i></a>
			</div>
			<div class="controls-title"><span class="ctitle"><?php 
        echo $s->name;
        ?>
</span> <span class="linked-section">&mdash; <i class="icon icon-link"></i> Linked to Custom</span> <span class="linked-tpl"><i class="icon icon-link"></i> Linked to Template</span></div>
		</div>
		<?php 
        return ob_get_clean();
    }