Ignore:
Timestamp:
Mar 20, 2011, 12:58:38 PM (14 years ago)
Author:
mistic100
Message:

[extensions] Front2Back

  • new admin page
  • some changes in config
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Front2Back/main.inc.php

    r9782 r9784  
    22/*
    33Plugin Name: Front2Back
    4 Version: 2.2.0
     4Version: 2.2.a
    55Description: Add a link on picture's page to show a alternative version of the pic (for postcards for example)
    66Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=183
     
    1313define('F2B_PATH', PHPWG_PLUGINS_PATH . F2B_DIR . '/');
    1414
    15 load_language('plugin.lang', F2B_PATH);
    1615include_once(F2B_PATH . 'Front2Back.php');
    1716add_event_handler('render_element_content', 'Front2Back_content', 99, 2);
    1817       
     18if (script_basename() == 'admin')
     19{
     20        add_event_handler('get_admin_plugin_menu_links', 'Front2Back_admin_menu');
     21        function Front2Back_admin_menu($menu)
     22        {
     23                array_push($menu, array(
     24                        'NAME' => 'Front2Back',
     25                        'URL' => get_root_url().'admin.php?page=plugin-' . F2B_DIR));
     26                return $menu;
     27        }
     28}
     29
    1930?>
Note: See TracChangeset for help on using the changeset viewer.