function caritem($caritem = array(), $count = 0) { ?> <li id="<?php echo $this->get_field_id('caritems'); ?> -sortable-item-<?php echo $count; ?> " class="sortable-item" rel="<?php echo $count; ?> "> <div class="sortable-head cf"> <div class="sortable-title"> <strong><?php echo $caritem['title']; ?> </strong> </div> <div class="sortable-handle"> <a href="#"><?php _e('Open / Close', 'lsvr-toolkit'); ?> </a> </div> </div> <div class="sortable-body"> <div class="lsvr-form-container"> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('caritems'); ?> -<?php echo $count; ?> -title"><?php _e('Title', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <input type="text" id="<?php echo $this->get_field_id('caritems'); ?> -<?php echo $count; ?> -title" class="input-full" name="<?php echo $this->get_field_name('caritems'); ?> [<?php echo $count; ?> ][title]" value="<?php echo $caritem['title']; ?> " /> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('caritems'); ?> -<?php echo $count; ?> -content"><?php _e('Content', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php $caritem_content_id = $this->get_field_id('caritems') . '-' . $count . '-content'; ?> <?php $caritem_content_name = $this->get_field_name('caritems') . '[' . $count . '][content]'; ?> <?php $caritem_content_html = $caritem['content']; ?> <?php echo lsvr_field_editor_tabs($caritem_content_id, $caritem_content_name, $caritem_content_html); ?> </div> </div> </div> <p class="tab-desc description"><a href="#" class="sortable-delete"><?php _e('Delete', 'lsvr-toolkit'); ?> </a></p> </div> </li> <?php }
function item($item = array(), $count = 0) { ?> <li id="<?php echo $this->get_field_id('items'); ?> -sortable-item-<?php echo $count; ?> " class="sortable-item" rel="<?php echo $count; ?> "> <div class="sortable-head cf"> <div class="sortable-title"> <strong><?php echo sprintf(__('List Item %d', 'lsvr-toolkit'), $count); ?> </strong> </div> <div class="sortable-handle"> <a href="#"><?php _e('Open / Close', 'lsvr-toolkit'); ?> </a> </div> </div> <div class="sortable-body"> <div class="lsvr-form-container"> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('items'); ?> -<?php echo $count; ?> -content"><?php _e('Content', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php $item_content_id = $this->get_field_id('items') . '-' . $count . '-content'; ?> <?php $item_content_name = $this->get_field_name('items') . '[' . $count . '][content]'; ?> <?php $item_content_html = $item['content']; ?> <?php echo lsvr_field_editor_tabs($item_content_id, $item_content_name, $item_content_html); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('items'); ?> -<?php echo $count; ?> -icon"><?php _e('Item Icon', 'lsvr-toolkit'); ?> </label> <p class="lsvr-form-description"> <?php _e('Name of the icon (e.g. "fa fa-cog"). You will find list of all icons in the documentation.', 'lsvr-toolkit'); ?> <br> </p> <div class="lsvr-form-field"> <input type="text" id="<?php echo $this->get_field_id('items'); ?> -<?php echo $count; ?> -icon" class="input-full" name="<?php echo $this->get_field_name('items'); ?> [<?php echo $count; ?> ][icon]" value="<?php echo $item['icon']; ?> " /> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('items'); ?> -<?php echo $count; ?> -icon"><?php _e('Icon Color', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php $item_content_id = $this->get_field_id('items') . '-' . $count . '-icon_color'; ?> <?php $item_content_name = $this->get_field_name('items') . '[' . $count . '][icon_color]'; ?> <?php echo lsvr_field_color_picker_tabs($item_content_id, $item_content_name, $item['icon_color'], '#61677A'); ?> </div> </div> </div> <p class="tab-desc description"><a href="#" class="sortable-delete"><?php _e('Delete', 'lsvr-toolkit'); ?> </a></p> </div> </li> <?php }