?> </label> <?php if (!empty($field['help'])) { echo '<p class="op-micro-copy">' . __($field['help'], OP_SN) . '</p>'; } if (isset($field['font_html'])) { $name .= '][value'; } switch ($field['type']) { case 'textarea': echo '<textarea name="' . $fieldname . '[' . $name . ']" id="' . $id . $name . '">' . $field['value'] . '</textarea>'; break; case 'image': op_upload_field($fieldname . '[' . $name . ']', $field['value']); break; case 'wysiwyg': op_tiny_mce($field['value'], $id . $name, array('textarea_name' => $fieldname . '[' . $name . ']')); // adding normal wp_editor $editor_settings = array('textarea_name' => $fieldname . '[' . $name . ']', 'tinymce' => array('theme_advanced_disable' => 'spellchecker, fullscreen, wp_help, charmap, pasteword, pastetext, undo, redo, wp_adv, wp_more'), 'quicktags' => false); //wp_editor($field['value'], $id.$name, $editor_settings); break; default: echo '<input type="text" name="' . $fieldname . '[' . $name . ']" id="' . $id . $name . '" value="' . $field['value'] . '" />'; break; } op_get_var_e($field, 'font_html'); ?> </div> <?php }
<h1><?php _e('Add new element', 'optimizepress'); ?> </h1> <div class="op-lightbox-content"> <?php $content = '[tabs][tab title="Tab Title"] Tab Content 1 [/tab] [tab title="Tab Title"] Tab Content 2 [/tab] [/tabs]'; op_tiny_mce($content, 'insert_element_shortcode'); /*if(function_exists('wp_editor')){ wp_editor($content,'insertelementshortcode'); } else {*/ //echo ' //<textarea id="insert_element_shortcode" cols="50" rows="10">'.$content.'</textarea>'; //} ?> </div> <div class="op-insert-button cf"> <a href="#insert" id="op-le-element-insert" class="editor-button"><?php _e('Insert into page', 'optimizepress'); ?> </a> </div> </div>
</ul> <div id="op_assets_default_elements" style="display:none"> <?php $tmp_id = 'op_font'; echo op_font_size_dropdown($tmp_id . '[size]', '', $tmp_id . 'size'); echo op_font_visual_dropdown($tmp_id . 'font'); echo op_font_style_dropdown($tmp_id . '[style]', '', $tmp_id . 'style'); echo op_font_style_checkbox($tmp_id . '[style_checkbox_text]', '', $tmp_id . 'style_checkbox_text'); echo op_font_style_checkbox($tmp_id . '[style_checkbox_subtext]', '', $tmp_id . 'style_checkbox_subtext'); echo op_font_spacing_dropdown($tmp_id . '[spacing]', '', $tmp_id . 'spacing'); echo op_font_shadow_dropdown($tmp_id . '[shadow]', '', $tmp_id . 'shadow'); ?> <div id="op_dummy_wysiwyg"> <?php $GLOBALS['op_disable_asset_link'] = true; op_tiny_mce('', 'opassetswysiwyg'); $GLOBALS['op_disable_asset_link'] = false; ?> </div> <div id="op_dummy_media_container"><?php op_upload_field('op_dummy_media'); ?> </div> </div> </div> <script type="text/javascript"> if (!("autofocus" in document.createElement("input"))) { document.getElementById("op_assets_filter").focus(); } </script> <script type="text/javascript" src="<?php
</label> <?php if (!empty($field['help'])) { echo '<p class="op-micro-copy">' . __($field['help'], 'optimizepress') . '</p>'; } if (isset($field['font_html'])) { $name .= '][value'; } switch ($field['type']) { case 'textarea': echo '<textarea name="' . $fieldname . '[' . $name . ']" id="' . $id . $name . '">' . $field['value'] . '</textarea>'; break; case 'image': op_upload_field($fieldname . '[' . $name . ']', $field['value']); break; case 'wysiwyg': // op_tiny_mce($field['value'], $id.$name, array('textarea_name'=>$fieldname.'['.$name.']')); // adding normal wp_editor $editor_settings = array('textarea_name' => $fieldname . '[' . $name . ']'); //wp_editor($field['value'], $id.$name, $editor_settings); op_tiny_mce($field['value'], $id . $name, $editor_settings); break; default: echo '<input type="text" name="' . $fieldname . '[' . $name . ']" id="' . $id . $name . '" value="' . $field['value'] . '" />'; break; } op_get_var_e($field, 'font_html'); ?> </div> <?php }