/** * Image Slider Option * * @access public * @since 1.1.3 * * @param array $value * @param array $settings * @param int $int * * @return string */ function option_tree_slider($value, $settings, $int) { ?> <div class="option option-option-tree-slider"> <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-slider-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_slider_view($value->item_id, $image, $int, $count); ?> </li><?php $count++; } } ?> </ul> <a href="#" id="<?php echo $value->item_id; ?> " class="button-framework light add-slide right">Add Slide</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 }
/** * Image Slider Option * * @access public * @since 1.1.3 * * @param array $value * @param array $settings * @param int $int * * @return string */ function option_tree_slider($value, $settings, $int) { ?> <div class="option option-option-tree-slider"> <h3><?php echo htmlspecialchars_decode($value->item_title); ?> </h3> <div class="section"> <div class="element"> <?php $count = 0; ?> <ul class="ui-sortable option-tree-slider-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_slider_view($value->item_id, $image, $int, $count); ?> </li><?php $count++; } } ?> </ul> <a href="#" id="<?php echo $value->item_id; ?> " class="button-framework light add-slide right">Add Slide</a> </div> <div class="description"> <?php echo htmlspecialchars_decode($value->item_desc); ?> </div> </div> </div> <?php }
function option_tree_add_slider() { $count = $_GET['count'] + 1; $id = $_GET['slide_id']; $image = array('order' => $count, 'title' => '', 'image' => '', 'link' => '', 'description' => ''); option_tree_slider_view($id, $image, $this->get_option_page_ID('media'), $count); die; }