/** * Image Clients Option * */ function option_tree_clients($value, $settings, $int) { ?> <div class="option option-option-tree-clients"> <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 class="element clearfix"> <?php $count = 0; ?> <ul class="ui-sortable option-tree-clients-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_clients_view($value->item_id, $image, $int, $count); ?> </li><?php $count++; } } ?> </ul> <a href="#" id="<?php echo $value->item_id; ?> " class="btn-mini btn-success add-clients right">Add Clients Media</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 }
function option_tree_add_clients() { $count = $_GET['count'] + 1; $id = $_GET['clients_id']; $image = array('order' => $count, 'title' => '', 'image' => '', 'link' => ''); option_tree_clients_view($id, $image, $this->get_option_page_ID('media'), $count); die; }