예제 #1
0
function option_tree_fontmanager($value, $settings, $int)
{
    ?>
  <div class="option option-option-tree-fontmanager">
    <div class="lambda-opttitle">
        <div class="lambda-opttitle-pad">
		<?php 
    echo htmlspecialchars_decode($value->item_title);
    ?>
 
		<span class="infoButton right">
				<img class="infoImage" src="<?php 
    echo FRAMEWORK_WEB_ROOT;
    ?>
/assets/images/info.png" width="40px" height="20px" alt="Info" style="left: 0px;">
		</span> 
        </div>
    </div>   
    
    <div class="section clearfix">
       <div style="float:none; display:block;" class="element clearfix">
        <?php 
    $count = 0;
    ?>
        <ul class="ui-sortable option-tree-fontmanager-wrap" id="<?php 
    echo $value->item_id;
    ?>
_list">
        <?php 
    if (!empty($settings[$value->item_id])) {
        foreach ($settings[$value->item_id] as $font) {
            ?>
            <li><?php 
            option_tree_fontmanager_view($value->item_id, $font, $int, $count);
            ?>
</li><?php 
            $count++;
        }
    }
    ?>
        </ul>
        <a href="#" id="<?php 
    echo $value->item_id;
    ?>
" class="btn light add-font right">Add Font</a>
      </div> <?php 
    if ($value->item_desc) {
        ?>
        <div style="margin-top:20px;" class="desc alert-neutral"><?php 
        echo htmlspecialchars_decode($value->item_desc);
        ?>
</div>
		<div class="clear"></div>
      <?php 
    }
    ?>
    </div>
  </div>
<?php 
}
예제 #2
0
 function option_tree_add_font()
 {
     $count = $_GET['count'] + 1;
     $id = $_GET['font_id'];
     $image = array('order' => $count, 'title' => '', 'font' => '', 'link' => '', 'description' => '');
     option_tree_fontmanager_view($id, $image, $this->get_option_page_ID('media'), $count);
     die;
 }