Changeset 32420
- Timestamp:
- Jan 19, 2021, 10:59:19 PM (4 years ago)
- Location:
- extensions/title
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/title/admin.php
r32302 r32420 3 3 // | Title plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2011 - 202 0ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2011 - 2021 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/title/index.php
r32302 r32420 1 1 <?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 2 // Recursive call 10 3 $url = '../'; -
extensions/title/initadmin.php
r32302 r32420 3 3 // | Title plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2011 - 202 0ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2011 - 2021 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 24 24 25 25 //Add link menu 26 add_event_handler('get_admin_plugin_menu_links', 'title_admin_menu');26 /*add_event_handler('get_admin_plugin_menu_links', 'title_admin_menu'); 27 27 function title_admin_menu($menu){ 28 28 $menu[] = array( … … 32 32 return $menu; 33 33 } 34 34 */ 35 35 36 36 //add prefiltre photo … … 44 44 45 45 function titlePadminfT($content, &$smarty){ 46 $search = '#< p style="margin:40px 0 0 0">#';46 $search = '#<input type="hidden" name="pwg_token"#'; 47 47 $replacement = ' 48 48 <p> … … 52 52 </p> 53 53 54 < p style="margin:40px 0 0 0">';54 <input type="hidden" name="pwg_token"'; 55 55 56 56 return preg_replace($search, $replacement, $content); -
extensions/title/language/en_UK/index.php
r32302 r32420 1 1 <?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 2 // Recursive call 10 3 $url = '../'; -
extensions/title/language/en_UK/plugin.lang.php
r32302 r32420 3 3 // | Title plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2011 - 202 0ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2011 - 2021 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/title/language/fr_FR/index.php
r32302 r32420 1 1 <?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 2 // Recursive call 10 3 $url = '../'; -
extensions/title/language/fr_FR/plugin.lang.php
r32302 r32420 3 3 // | Title plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2011 - 202 0ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2011 - 2021 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/title/language/index.php
r32302 r32420 1 1 <?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 2 // Recursive call 10 3 $url = '../'; -
extensions/title/main.inc.php
r32302 r32420 7 7 Author: ddtddt 8 8 Author URI: http://temmii.com/piwigo/ 9 Has Settings: true 9 10 */ 10 11 … … 12 13 // | Title plugin for piwigo by TEMMII | 13 14 // +-----------------------------------------------------------------------+ 14 // | Copyright(C) 2011 - 202 0ddtddt http://temmii.com/piwigo/ |15 // | Copyright(C) 2011 - 2021 ddtddt http://temmii.com/piwigo/ | 15 16 // +-----------------------------------------------------------------------+ 16 17 // | This program is free software; you can redistribute it and/or modify | … … 90 91 $result = pwg_query($query); 91 92 $row = pwg_db_fetch_assoc($result); 92 $titleP=$row['title'];93 $titlePED=trigger_change('AP_render_content', $titleP);93 if(isset($row['title'])){$titleP=$row['title']; 94 $titlePED=trigger_change('AP_render_content', $titleP); 94 95 if (!empty($titlePED)){ 95 96 $template->assign('PERSO_TITLE', $titlePED); 96 97 } 97 98 } 99 } 98 100 } 99 101 … … 110 112 $result = pwg_query($query); 111 113 $row = pwg_db_fetch_assoc($result); 112 $titleA=$row['title'];113 $titleAED=trigger_change('AP_render_content', $titleA);114 if(isset($row['title'])){$titleA=$row['title']; 115 $titleAED=trigger_change('AP_render_content', $titleA); 114 116 if (!empty($titleAED)){ 115 117 $template->assign('PERSO_TITLE', $titleAED); 116 118 } 117 119 } 120 } 118 121 } 119 122 … … 178 181 if (isset($pwg_loaded_plugins['AdditionalPages'])){ 179 182 global $prefixeTable; 180 183 if ( !empty($page['additional_page']['id']) ){ 181 184 if (!defined('TITLE_AP_TABLE')) define('TITLE_AP_TABLE', $prefixeTable.'title_ap'); 182 $lire=$page['additional_page']['id'];183 $query = '185 $lire=$page['additional_page']['id']; 186 $query = ' 184 187 select id,title 185 188 FROM ' . TITLE_AP_TABLE . ' 186 189 WHERE id = \''.$lire.'\' 187 190 ;'; 188 $result = pwg_query($query); 189 $row = pwg_db_fetch_assoc($result); 190 $titleap=$row['title']; 191 $titlespecialED['AdditionalPages']=trigger_change('AP_render_content', $titleap); 191 $result = pwg_query($query); 192 $row = pwg_db_fetch_assoc($result); 193 if(isset($row['title'])){ 194 $titleap=$row['title']; 195 $titlespecialED['AdditionalPages']=trigger_change('AP_render_content', $titleap); 196 } 192 197 } 193 198 if (isset($page['section']) and $page['section'] == 'additional_page' and !empty($titlespecialED['AdditionalPages'])){ -
extensions/title/maintain.class.php
r32302 r32420 3 3 // | Title plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2011 - 202 0ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2011 - 2021 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify |
Note: See TracChangeset
for help on using the changeset viewer.