<?php } ?> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Expires" content="Fri, Jan 01 1970 00:00:00 GMT" /> <script type="text/javascript"> var fileDefaultText = '<?php echo osc_esc_js(__('No file selected', 'modern')); ?> '; var fileBtnText = '<?php echo osc_esc_js(__('Choose File', 'modern')); ?> '; </script> <?php osc_enqueue_style('style', osc_current_web_theme_url('style.css')); osc_enqueue_style('tabs', osc_current_web_theme_url('tabs.css')); osc_enqueue_style('jquery-ui-datepicker', osc_assets_url('css/jquery-ui/jquery-ui.css')); osc_register_script('jquery-uniform', osc_current_web_theme_js_url('jquery.uniform.js'), 'jquery'); osc_register_script('global', osc_current_web_theme_js_url('global.js')); osc_enqueue_script('jquery'); osc_enqueue_script('jquery-ui'); osc_enqueue_script('jquery-uniform'); osc_enqueue_script('tabber'); osc_enqueue_script('global'); osc_run_hook('header'); FieldForm::i18n_datePicker();
public static function meta_fields_input($catId = null, $itemId = null) { $fields = Field::newInstance()->findByCategoryItem($catId, $itemId); if (count($fields) > 0) { echo '<div class="meta_list">'; foreach ($fields as $field) { echo '<div class="meta">'; FieldForm::meta($field); echo '</div>'; } echo '</div>'; } }
?> </div> <div class="form-controls"> <?php FieldForm::options_input_text($field); ?> <p class="help-inline"><?php _e('Separate options with commas'); ?> </p> </div> </div> <div class="form-row"> <div class="form-label"></div> <div class="form-controls"><label><?php FieldForm::required_checkbox($field); ?> <span><?php _e('This field is required'); ?> </span></label></div> </div> <div class="form-row"> <div><?php _e('Select the categories where you want to apply this attribute:'); ?> </div> <div class="separate-top"> <div class="form-label"> <a href="javascript:void(0);" onclick="checkAll('cat_tree', true) ; return false ;"><?php _e('Check all');
/** * * All CF will be searchable * */ function osc_meta_search($catId = null) { FieldForm::meta_fields_search($catId); }
function osc_meta_edit($catId = null, $item_id = null) { echo '<div class="row">'; FieldForm::meta_fields_input($catId, $item_id); echo '</div>'; }
?> </div> <div class="FormElementInput"> <?php FieldForm::type_select($field); ?> </div> <div style="clear:both;" ></div> <div id="div_field_options_iframe"> <div class="FormElementName"><?php _e('Field\'s options (separated by commas)'); ?> </div> <div class="FormElementInput"> <?php FieldForm::options_input_text($field); ?> </div> </div> <div class="FormElement"> <input type="checkbox" id="field_required" name="field_required" value="1" <?php if ($field['b_required'] == 1) { echo 'checked="checked"'; } ?> /> <label><?php _e('This field is required'); ?> </label> </div>
</div> <div class="form-controls"> <input type="text" class="medium" name="field_slug" value="<?php echo $field['s_slug']; ?> " /> <p class="help-inline"><?php _e('Only alphanumeric characters are allowed [a-z0-9_-]'); ?> </p> </div> </div> <div class="form-row"> <div class="form-label"></div> <div class="form-controls"><label><?php FieldForm::searchable_checkbox($field); ?> <?php _e('Tick to allow searches by this field'); ?> </label></div> </div> </div> <div class="form-actions"> <input type="submit" id="cfield_save" value="<?php echo osc_esc_html(__('Save changes')); ?> " class="btn btn-submit" /> <input type="button" value="<?php echo osc_esc_html(__('Cancel')); ?>