Editing: dialog.php
<?php $full_path = __FILE__; $path = explode( 'wp-content', $full_path ); require_once( $path[0] . '/wp-load.php' ); $shortcode_css = AVIA_BASE_URL.'css/shortcodes.css'; if(!current_user_can('edit_posts')) { die(""); } do_action('avia_shortcode_dialog'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <div id="scn-dialog"> <div id="scn-options"> <h3>Customize the Shortcode</h3> <table id="scn-options-table"> </table> <div style="float: left"> <input type="button" id="scn-btn-cancel" class="button" name="cancel" value="Cancel" accesskey="C" /> </div> <div style="float: right"> <input type="button" id="scn-btn-preview" class="button" name="preview" value="Preview" accesskey="P" /> <input type="button" id="scn-btn-insert" class="button-primary" name="insert" value="Insert" accesskey="I" /> </div> </div> <div id="scn-preview" style="float:left;"> <h3>Preview</h3> <iframe id="scn-preview-iframe" frameborder="0" style="width:100%;height:250px" ></iframe> </div> <script type="text/javascript" src="<?php echo AVIA_PHP_URL."avia_shortcodes/tinymce/js/column-control.js";?>"></script> <script type="text/javascript" src="<?php echo AVIA_PHP_URL."avia_shortcodes/tinymce/js/tab-control.js";?>"></script> <script type="text/javascript" src="<?php echo AVIA_PHP_URL."avia_shortcodes/tinymce/js/table-control.js";?>"></script> <script type="text/javascript" src="<?php echo AVIA_PHP_URL."avia_shortcodes/tinymce/js/sidebar-tab-control.js";?>"></script> <!-- <div style="float: right"><input type="button" id="scn-btn-cancel" class="button" name="cancel" value="Cancel" accesskey="C" /></div> </div> --> <script type="text/javascript" src="<?php echo AVIA_PHP_URL."avia_shortcodes/tinymce/js/dialog.js";?>"></script> </div> </body> </html>
Save
Back