Пример #1
0
function plugin_favicon_head()
{
    // your file *must* be named favicon.ico
    // and be a ICO file (not a renamed png, jpg, gif, etc...)
    // or it won't work in IE
    echo '<link rel="shortcut icon" href="' . plugin_geturl('favicon') . 'imgs/favicon.ico" />';
}
Пример #2
0
function plugin_lightbox2_footer()
{
    $pdir = plugin_geturl('lightbox2');
    echo <<<LBOXHEAD
\t<!-- start of lightbox -->
\t<script type="text/javascript" src="{$pdir}res/slimbox2.js"></script>
\t<!-- end of lightbox -->
LBOXHEAD;
}
Пример #3
0
function plugin_jsutils_head()
{
    $pdir = plugin_geturl('jsutils');
    echo <<<JSUTILS
\t<!-- start of jsUtils -->
\t<script type="text/javascript" src="{$pdir}res/mootools.js"></script>
\t<!-- end of jsUtils -->
JSUTILS;
}
Пример #4
0
function plugin_jquery_head()
{
    $pdir = plugin_geturl('jquery');
    echo <<<JSUTILS
\t<!-- start of jsUtils -->
\t<script type="text/javascript" src="{$pdir}res/jquery-1.5.2.min.js"></script>
\t<script type="text/javascript" src="{$pdir}res/jquery-ui-1.8.11.custom.min.js"></script>
\t<!-- end of jsUtils -->
JSUTILS;
}
Пример #5
0
function plugin_jquery_head()
{
    $pdir = plugin_geturl('jquery');
    echo <<<JSUTILS
\t<!-- start of jsUtils -->
\t<!--<script type="text/javascript" src="{$pdir}res/jquery-1.7.1.min.js"></script>-->
\t<!--<script type="text/javascript" src="{$pdir}res/jquery-ui-1.8.11.custom.min.js"></script>-->
\t<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
\t<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
\t<!-- end of jsUtils -->
JSUTILS;
}
Пример #6
0
/**
 * 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";
}