Changeset 32332


Ignore:
Timestamp:
Nov 14, 2020, 11:32:10 AM (3 years ago)
Author:
ddtddt
Message:

[add_head_element] menu only for webmaster

Location:
extensions/add_head_element
Files:
27 added
24 edited

Legend:

Unmodified
Added
Removed
  • extensions/add_head_element/admin.php

    r31463 r32332  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | Add < head > element plugin for piwigo                            |
     3// | Add < head > element plugin for piwigo by TEMMII                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2011 - 2016 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
  • extensions/add_head_element/index.php

    r31463 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
    29// Recursive call
    310$url = '../';
  • extensions/add_head_element/language/bg_BG/index.php

    r19140 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/br_FR/index.php

    r25468 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/ca_ES/index.php

    r15000 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/da_DK/index.php

    r18043 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/el_GR/index.php

    r15012 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/en_UK/index.php

    r31463 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
    29// Recursive call
    310$url = '../';
  • extensions/add_head_element/language/en_UK/plugin.lang.php

    r31463 r32332  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | Add < head > element plugin for piwigo                            |
     3// | Add < head > element plugin for piwigo by TEMMII                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2011 - 2016 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
  • extensions/add_head_element/language/et_EE/index.php

    r16872 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/fr_CA/index.php

    r25269 r32332  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based picture gallery                                  |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/add_head_element/language/fr_FR/index.php

    r31463 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
    29// Recursive call
    310$url = '../';
  • extensions/add_head_element/language/fr_FR/plugin.lang.php

    r31463 r32332  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | Add < head > element plugin for piwigo                            |
     3// | Add < head > element plugin for piwigo by TEMMII                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2011 - 2016 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
  • extensions/add_head_element/language/hu_HU/index.php

    r15697 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/index.php

    r12496 r32332  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based picture gallery                                  |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/add_head_element/language/nb_NO/index.php

    r21264 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/sk_SK/index.php

    r12512 r32332  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based picture gallery                                  |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/add_head_element/language/sr_RS/index.php

    r27973 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/sv_SE/index.php

    r20512 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/th_TH/index.php

    r18348 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/tr_TR/index.php

    r16224 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/language/zh_CN/index.php

    r17478 r32332  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/add_head_element/main.inc.php

    r31463 r32332  
    1010
    1111// +-----------------------------------------------------------------------+
    12 // | Add < head > element plugin for piwigo                            |
     12// | Add < head > element plugin for piwigo by TEMMII                      |
    1313// +-----------------------------------------------------------------------+
    14 // | Copyright(C) 2011 - 2016 ddtddt             http://temmii.com/piwigo/ |
     14// | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
    1515// +-----------------------------------------------------------------------+
    1616// | This program is free software; you can redistribute it and/or modify  |
     
    3535define('AHE_DIR' , basename(dirname(__FILE__)));
    3636define('AHE_PATH' , PHPWG_PLUGINS_PATH . AHE_DIR . '/');
     37define('AHE_ADMIN' , get_root_url().'admin.php?page=plugin-'.AHE_DIR);
    3738
    3839add_event_handler('loading_lang', 'Add_head_element_loading_lang');       
     
    4243
    4344add_event_handler('get_admin_plugin_menu_links', 'AHE_admin_menu');
    44 function AHE_admin_menu($menu)
    45 {
    46   array_push(
    47     $menu,
    48     array(
    49       'NAME' => l10n('Add < head > element'),
    50       'URL' => get_root_url().'admin.php?page=plugin-add_head_element'
    51       )
     45function AHE_admin_menu($menu){
     46  if (is_webmaster()){
     47        load_language('plugin.lang', AHE_PATH);
     48        $menu[] = array(
     49          'NAME' => l10n('Add < head > element'),
     50          'URL' => AHE_ADMIN,
    5251    );
    53  
     52  }
    5453  return $menu;
    5554}
     
    5857//add in <head>
    5958add_event_handler('loc_begin_page_header', 'AHE1',20 );
    60 
    61 function AHE1()
    62 {
     59function AHE1(){
    6360  global $template,$conf;
    64 
    6561  if (isset($conf['add_head_element_apply_on']))
    6662  {
  • extensions/add_head_element/maintain.class.php

    r31463 r32332  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | Perso About plugin for piwigo                                         |
     3// | Add < head > element plugin for piwigo by TEMMII                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2010 - 2016 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
Note: See TracChangeset for help on using the changeset viewer.