break; case 'gmap': codeGeneratorMap(); break; case 'content': codeGeneratorContent(); break; case 'tabsh': codeGeneratorTabsh($uri); break; case 'tabs': codeGeneratorTabs(); break; case 'acc': codeGeneratorAccord(); break; case 'toggle': codeGeneratorToggle(); break; case 'video': codeGeneratorVideo(); break; case 'chart': codeGeneratorChart(); break; } ?> </body> </html>
function ultimatum_shortcode_thickbox(){ iframe_header(); $uri = admin_url().'index.php?page=shortcode-create'; $folder = ULTIMATUM_LIBRARY_DIR.'/images/icons/48/'; $folderi = ULTIMATUM_LIBRARY_DIR.'/images/icons/'; $icons = array(); if (is_dir($folder) && $handle = opendir($folder)) { while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != ".." && preg_match('/.png/i', $entry)) { if(file_exists($folderi.'32/'.$entry) && file_exists($folderi.'24/'.$entry) && file_exists($folderi.'16/'.$entry)){ $icons[]=str_replace('.png', '', $entry); } } } closedir($handle); } ?> <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script> <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/mctabs.js"></script> <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script> <style> .wp-picker-holder{position:absolute;z-index:999} </style> <?php $task=false; if(isset($_GET["task"])) $task=$_GET["task"]; switch ($task){ default: codeGeneratorHome($uri); break; case 'boxes': codeGeneratorBoxes($icons); break; case 'button': codeGeneratorButton($icons); break; case 'mcols': codeGeneratorCols(); break; case 'typo': codeGeneratorTypo($uri); break; case 'list': codeGeneratorList($icons); break; case 'dcap': codeGeneratorDropCap(); break; case 'icontext': codeGeneratorIcontext($icons); break; case 'quote': codeGeneratorQuote(); break; case 'forms': codeGeneratorForm(); break; case 'gmap': codeGeneratorMap(); break; case 'content': codeGeneratorContent(); break; case 'tabsh': codeGeneratorTabsh($uri); break; case 'tabs': codeGeneratorTabs(); break; case 'acc': codeGeneratorAccord(); break; case 'toggle': codeGeneratorToggle(); break; case 'video': codeGeneratorVideo(); break; case 'chart': codeGeneratorChart(); break; } iframe_footer(); exit; }