/** * Adds a Toolbar to admin panels write entry. * * @global $_FP_SMARTY */ function plugin_bbcode_toolbar() { global $_FP_SMARTY; // get all available images $indexer = new fs_filelister(IMAGES_DIR); $imageslist = $indexer->getList(); array_unshift($imageslist, '--'); $_FP_SMARTY->assign('images_list', $imageslist); // get all available attachements $indexer = new fs_filelister(ATTACHS_DIR); $attachslist = $indexer->getList(); array_unshift($attachslist, '--'); $_FP_SMARTY->assign('attachs_list', $attachslist); // DMKE: does not work #$bblang = lang_load('plugin:bbcode'); #$_FP_SMARTY->assign('bblang', $bblang); echo "<!-- bbcode plugin -->\n"; echo '<script type="text/javascript" src="' . plugin_geturl('bbcode') . 'res/editor.js"></script>' . "\n"; echo $_FP_SMARTY->fetch('plugin:bbcode/toolbar'); echo "<!-- end of bbcode plugin -->\n"; }
function getList() { sort($this->_list); return parent::getList(); }
<?php $o = new fs_filelister('./setup/lang/'); $languages = $o->getList(); ?> <h2><?php echo $l['head']; ?> </h2> <div class="post"> <input type="hidden" name="setupid" value="<?php echo $setupid; ?> " /> <?php echo wpautop(sprintf($l['descr'], FP_CONTENT)); if ($err) { echo wpautop(sprintf($l['descrw'], FP_CONTENT)); } ?> <div id="buttonbar"> <input type="submit" name="start" id="start" value="<?php echo $lang['buttonbar']['next']; ?> " /> </div>