Ignore:
Timestamp:
Mar 12, 2011, 10:56:58 PM (13 years ago)
Author:
mistic100
Message:

[plugins] Comments on Albums

  • corrections
  • public list available
File:
1 edited

Legend:

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

    r9624 r9634  
    22/*
    33Plugin Name: Comment on Albums
    4 Version: 0.1.a
     4Version: 0.2
    55Description: Allows users to comment albums
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=512
     
    1717// +-----------------------------------------------------------------------+
    1818define('COA_NAME' , 'Comment on Albums');
    19 define('COA_VERSION', '0.1.a');
     19define('COA_VERSION', '0.2');
    2020define('COA_DIR' , basename(dirname(__FILE__)));
    2121define('COA_PATH' , PHPWG_PLUGINS_PATH . COA_DIR . '/');
     
    2727// +-----------------------------------------------------------------------+
    2828add_event_handler('loc_end_index', 'COA_index');
     29add_event_handler('loc_after_page_header', 'COA_comments_page');
    2930add_event_handler('loc_end_admin', 'COA_admin');
    3031
    3132
    3233// +-----------------------------------------------------------------------+
    33 //                                      Fonctions
     34//                                      Functions
    3435// +-----------------------------------------------------------------------+
    3536
     
    3940        if ($page['section'] == 'categories' AND isset($page['category'])) {   
    4041                include(COA_PATH . 'include/coa_albums.php');
     42        }
     43}
     44
     45function COA_comments_page() {
     46        global $template, $page, $conf;
     47       
     48        if ($page['body_id'] == 'theCommentsPage') {
     49                include(COA_PATH . 'include/coa_comments_page.php');
    4150        }
    4251}
Note: See TracChangeset for help on using the changeset viewer.