echo msc_configOption('pluginAuthor', 'pluginAuthor', 'textfield', 'Plugin Author', $pluginExport, 'Set the plugins author'); echo msc_configOption('pluginVersion', 'pluginVersion', 'textfield', 'Plugin Version', $pluginExport, 'Set the version of this plugin'); echo msc_configOption('pluginAuthorURI', 'pluginAuthorURI', 'textfield', 'Plugin Author URL', $pluginExport, 'Set the Authors website address.'); ?> </div> <div class="elementSettings settingTab" style="display:none;"> <h2>Elements to Export</h2> <div class="description"> <p>This allows you to select which elements are exported.</p> <?php //echo msc_configOption('_phpToLibrary', '_phpToLibrary', 'checkbox', 'Export PHP Tab as a functions file.', $pluginExport, $Elements[$Element]['description']); ?> </div> <?php foreach ($items as $Element) { echo msc_configOption($Element . '_toExport', $Element . '_toExport', 'checkbox', $Elements[$Element]['name'], $pluginExport, $Elements[$Element]['description']); //echo msc_configOption($Element.'_shortCodeOut', $Element.'_shortCodeOut', 'checkbox', 'Set element to export as shortcode', $pluginExport, 'This enables the element to be loaded as a shortcode via the shortcode inserter.'); } ?> </div> <div class="exportbuttonbar"> <select name="exportType"> <option value="script" selected="selected">MSC Script</option> <option value="script" disabled="disabled">WordPress Plugin (only available in Pro)</option> <option value="script" disabled="disabled">PHP Include (only available in Pro)</option> </select> <span class="fbutton"><button type="submit" value="plugin" class="button"><i class="icon-download-alt"></i> Export</button></span> <a class="button-primary" target="_blank" href="http://myshortcodes.cramer.co.za/pro-version/">Find out about the Pro Version</a> </div> </form> </div>
<input type="radio" disabled="disabled" name="data[_elementType]"> <label style="width:auto;" for="elementType_5"> Code <span class="description">Only available in Pro</span></label> </div> <div class="toggleConfigOption"> <a class="button-primary" target="_blank" href="http://myshortcodes.cramer.co.za/pro-version/">Find out about the Pro Version</a> </div> </div> <?php echo msc_configOption('alwaysLoadPlacement', 'alwaysLoadPlacement', 'radio', 'Template Placment|Disable Template*, Header, Prepend Content, Append Content, Footer', $Element); echo msc_configOption('widgetWrap', 'widgetWrap', 'radio', 'Use Widget Style|No,Yes*', $Element, 'Use Themes Widget Style'); echo msc_configOption('widgetTitle', 'widgetTitle', 'radio', 'Widget Title Field|No,Yes*', $Element); echo msc_configOption('shortcodeType', 'shortcodeType', 'radio', 'Content Box|No*,Yes', $Element); echo msc_configOption('defaultContent', 'defaultContent', 'textfield', 'Default Content', $Element); echo '<h3>Processing</h3>'; echo msc_configOption('removelinebreaks', 'removelinebreaks', 'checkbox', 'Remove linebreaks', $Element); ?> <script> jQuery('#tabid1').click(function(){ jQuery('#editorPane .tabs a').removeClass('active'); jQuery(this).addClass('active'); jQuery('#editorPane .area article').hide(); jQuery(jQuery(this).attr('href')).show(); }); if(jQuery('#shortcodeType_1').attr('checked')){ jQuery('#config_defaultContent').hide(); jQuery('#config_widgetWrap').hide(); } if(!jQuery('#elementType_2').attr('checked') && !jQuery('#elementType_3').attr('checked')){