Exemple #1
0
function option_tree_image_animation($value, $settings, $int)
{
    ?>
  <div class="option option-option-tree-image-animation">
    <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-image-animation-wrap" id="<?php 
    echo $value->item_id;
    ?>
_list">
        <?php 
    if (!empty($settings[$value->item_id])) {
        foreach ($settings[$value->item_id] as $image) {
            ?>
            <li><?php 
            option_tree_image_animation_view($value->item_id, $image, $int, $count);
            ?>
</li><?php 
            $count++;
        }
    }
    ?>
        </ul>
        <a href="#" id="<?php 
    echo $value->item_id;
    ?>
" class="btn light add-area right">Add Area</a>
      </div> <?php 
    if ($value->item_desc) {
        ?>
        <div class="desc alert-neutral"><?php 
        echo htmlspecialchars_decode($value->item_desc);
        ?>
</div>
	    <div class="clear"></div>
      <?php 
    }
    ?>
    </div>
  </div>
<?php 
}
Exemple #2
0
 function option_tree_add_image_animation()
 {
     $count = $_GET['count'] + 1;
     $id = $_GET['image_animation_id'];
     $image = array('order' => $count, 'title' => '', 'link' => '', 'description' => '');
     option_tree_image_animation_view($id, $image, $this->get_option_page_ID('media'), $count);
     die;
 }