die('No direct access allowed'); } wp_enqueue_style('tmm_theme_admin_gallery_css', TMM_THEME_URI . '/admin/css/gallery.css'); wp_enqueue_script('tmm_theme_admin_gallery_js', TMM_THEME_URI . '/admin/js/gallery.js'); ?> <div class="gallery-meta-container"> <input type="hidden" value="1" name="tmm_meta_saving" /> <div class="gallery_layout" style="display: none;"> <label for=""><?php _e('Gallery Layout:', 'almera'); ?> </label> <div class="sel"> <?php $layouts = array(__('3 columns', 'almera'), __('4 columns', 'almera')); TMM_OptionsHelper::draw_theme_option(array('name' => "layout", 'type' => 'select', 'default_value' => 3, 'values' => $layouts, 'value' => $layout, 'description' => "", 'css_class' => '', 'hide_item_html' => 1)); ?> </div> </div> <div class="clear"></div> <p><a href="#" class="js_inpost_gallery_add_slide button button-primary"><?php _e('Add images', 'almera'); ?> </a></p> <script type="text/javascript"> jQuery(function() { jQuery("#gallery_img_categoriesdiv").remove(); }); </script> <ul id="gallery_item_list">
</li> <li> <?php TMM_OptionsHelper::draw_theme_option(array('name_type' => 'array', 'name' => 'add_buttons[addthis_button_google_plusone]', 'type' => 'checkbox', 'default_value' => 1, 'title' => __('Google', 'tmm_addthis'), 'description' => '', 'css_class' => 'addthis_button_google_plusone')); ?> </li> <li> <?php TMM_OptionsHelper::draw_theme_option(array('name_type' => 'array', 'name' => 'add_buttons[addthis_counter]', 'type' => 'checkbox', 'default_value' => 1, 'title' => __('Share', 'tmm_addthis'), 'description' => '', 'css_class' => 'addthis_counter')); ?> </li> </ul> </div> <h3><?php _e('Show AddThis on:', 'tmm_addthis'); ?> </h3> <div class="show_buttons_on"> <?php TMM_OptionsHelper::draw_theme_option(array('name_type' => 'array', 'name' => 'show_buttons[single_car]', 'type' => 'checkbox', 'default_value' => 1, 'title' => __('Single Car Page', 'tmm_addthis'), 'description' => '', 'css_class' => 'addthis_counter')); ?> <?php TMM_OptionsHelper::draw_theme_option(array('name_type' => 'array', 'name' => 'show_buttons[single_blog]', 'type' => 'checkbox', 'default_value' => 1, 'title' => __('Single Blog Page', 'tmm_addthis'), 'description' => '', 'css_class' => 'addthis_counter')); ?> </div>
<?php switch ($options_array['type']) { case 'text': TMM_OptionsHelper::draw_theme_option(array('name' => "slider_" . $slider_key . "_" . $option, 'type' => 'slider', 'description' => $options_array['description'], 'default_value' => $options_array['default'], 'min' => 0, 'max' => 2560, 'css_class' => '')); break; case 'select': TMM_OptionsHelper::draw_theme_option(array('name' => "slider_" . $slider_key . "_" . $option, 'type' => 'select', 'description' => $options_array['description'], 'values' => $options_array['values_list'], 'default_value' => $options_array['default'], 'css_class' => '')); break; case 'image_link': TMM_OptionsHelper::draw_theme_option(array('name' => "slider_" . $slider_key . "_" . $option, 'type' => 'upload', 'default_value' => $options_array['default'], 'description' => $options_array['description'], 'id' => '', 'css_class' => 'slide_option_textinput')); break; case 'color': TMM_OptionsHelper::draw_theme_option(array('name' => "slider_" . $slider_key . "_" . $option, 'type' => 'color', 'default_value' => $options_array['default'], 'description' => $options_array['description'], 'css_class' => '')); break; case 'checkbox': TMM_OptionsHelper::draw_theme_option(array('name' => "slider_" . $slider_key . "_" . $option, 'type' => 'checkbox', 'default_value' => $options_array['default'], 'title' => $options_array['title'], 'description' => $options_array['description'], 'css_class' => '')); break; default: _e('Such option type does not exist!', 'almera'); break; } ?> <?php $counter--; ?> <?php if ($counter > 1) { ?> <hr class="admin-divider"> <?php
<h4><?php _e('Options (comma separated)', 'almera'); ?> </h4> <?php TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[" . $form_index . "][inputs][" . $key_input . "][options]", 'type' => 'text', 'value' => $input['options'], 'css_class' => 'options', 'description' => "")); ?> </div> <h4><?php _e('Additional Options', 'almera'); ?> </h4> <label class="with-check"> <?php TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[" . $form_index . "][inputs][" . $key_input . "][is_required]", 'type' => 'checkbox', 'default_value' => 0, 'title' => __('Required Field', 'almera'), 'description' => '', 'css_class' => 'form_required', 'value' => $input['is_required'], 'id' => '')); ?> </label> </li><!--/ .admin-drag-holder--> <?php } ?> <?php } ?> </ul> </div><!--/ .form-holder--> </div>
<?php } ?> </div> </div> <?php TMM_OptionsHelper::draw_theme_option(array('title' => __('Import Attachments', TMM_MIGRATE_TEXTDOMAIN), 'type' => 'checkbox', 'name' => 'tmm_migrate_upload_attachments', 'default_value' => 1, 'value' => 1, 'css_class' => '', 'description' => __('Download and import file attachments (images, videos, audios)', TMM_MIGRATE_TEXTDOMAIN))); ?> <?php TMM_OptionsHelper::draw_theme_option(array('title' => __('Backup DB', TMM_MIGRATE_TEXTDOMAIN), 'type' => 'checkbox', 'name' => 'tmm_migrate_backup', 'default_value' => 1, 'value' => 1, 'css_class' => '', 'description' => __('Backup your database content before importing. Placed in ', TMM_MIGRATE_TEXTDOMAIN) . "'/uploads/tmm_backup/'")); ?> <ul id="tmm_db_migrate_process_imp"></ul> <hr> <br><br> <h2 class="section-title"><?php _e('Export Data', TMM_MIGRATE_TEXTDOMAIN); ?> </h2> <div class="option"> <div class="controls alternative">
?> " name="footerbg_color" placeholder="#ffffff" /></p> </li> </ul> <h4><?php _e('Opacity', 'almera'); ?> </h4> <?php if (!isset($footerbg_opacity)) { $footerbg_opacity = 100; } //*** TMM_OptionsHelper::draw_theme_option(array('name' => 'footerbg_opacity', 'type' => 'slider', 'description' => '', 'default_value' => $footerbg_opacity, 'min' => 0, 'max' => 100)); ?> <div class="clear"></div> <p><a style="float: right" href="#" class="button footerbg_button_reset" title=""><?php _e('Reset', 'almera'); ?> </a></p> <div class="clear"></div> </div> <hr /> <h4><?php
<h4><?php _e('Field Label', 'almera'); ?> </h4> <?php TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[__INDEX__][inputs][__INPUTINDEX__][label]", 'type' => 'text', 'value' => "", 'css_class' => 'label', 'description' => "")); ?> <div class="select_options" style="display: none;"> <h4><?php _e('Options (comma separated)', 'almera'); ?> </h4> <?php TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[__INDEX__][inputs][__INPUTINDEX__][options]", 'type' => 'text', 'value' => '', 'css_class' => 'options', 'description' => "")); ?> </div> <h4><?php _e('Additional Options', 'almera'); ?> </h4> <label class="with-check"> <?php TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[__INDEX__][inputs][__INPUTINDEX__][is_required]", 'type' => 'checkbox', 'default_value' => 0, 'title' => __('Required Field', 'almera'), 'description' => '', 'css_class' => 'form_required', 'value' => 0, 'id' => '')); ?> </label> </li><!--/ .admin-drag-holder--> </div>