Ignore:
Timestamp:
Mar 19, 2011, 10:39:36 AM (13 years ago)
Author:
mistic100
Message:

[plugins] Comments on Albums

  • compatible with BBCode Bar and/or Smilies Support
  • better css integration
File:
1 edited

Legend:

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

    r9641 r9766  
    22/*
    33Plugin Name: Comments on Albums
    4 Version: 0.3
     4Version: 1.0
    55Description: Activate comments on albums pages
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=512
     
    1717// +-----------------------------------------------------------------------+
    1818define('COA_NAME' , 'Comments on Albums');
    19 define('COA_VERSION', '0.3');
     19define('COA_VERSION', '1.0');
    2020define('COA_DIR' , basename(dirname(__FILE__)));
    2121define('COA_PATH' , PHPWG_PLUGINS_PATH . COA_DIR . '/');
     
    3838
    3939function COA_index() {
    40         global $template, $page, $conf;
     40        global $template, $page, $conf, $pwg_loaded_plugins;
    4141       
    4242        if ($page['section'] == 'categories' AND isset($page['category'])) {   
     43                if (isset($pwg_loaded_plugins['bbcode_bar'])) set_bbcode_bar();
     44                else if (isset($pwg_loaded_plugins['SmiliesSupport']))set_smiliessupport_page();
     45               
    4346                include(COA_PATH . 'include/coa_albums.php');
    4447        }
Note: See TracChangeset for help on using the changeset viewer.