Changeset 32420


Ignore:
Timestamp:
Jan 19, 2021, 10:59:19 PM (4 years ago)
Author:
ddtddt
Message:
 
Location:
extensions/title
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • extensions/title/admin.php

    r32302 r32420  
    33// | Title plugin for piwigo by TEMMII                                     |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2011 - 2021 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
  • extensions/title/index.php

    r32302 r32420  
    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 
    92// Recursive call
    103$url = '../';
  • extensions/title/initadmin.php

    r32302 r32420  
    33// | Title plugin for piwigo by TEMMII                                     |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2011 - 2021 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    2424
    2525//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');
    2727function title_admin_menu($menu){
    2828  $menu[] = array(
     
    3232  return $menu;
    3333}
    34 
     34*/
    3535
    3636//add prefiltre photo
     
    4444
    4545function titlePadminfT($content, &$smarty){
    46   $search = '#<p style="margin:40px 0 0 0">#';
     46  $search = '#<input type="hidden" name="pwg_token"#';
    4747  $replacement = '
    4848    <p>
     
    5252    </p>
    5353       
    54 <p style="margin:40px 0 0 0">';
     54<input type="hidden" name="pwg_token"';
    5555
    5656  return preg_replace($search, $replacement, $content);
  • extensions/title/language/en_UK/index.php

    r32302 r32420  
    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 
    92// Recursive call
    103$url = '../';
  • extensions/title/language/en_UK/plugin.lang.php

    r32302 r32420  
    33// | Title plugin for piwigo by TEMMII                                     |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2011 - 2021 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
  • extensions/title/language/fr_FR/index.php

    r32302 r32420  
    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 
    92// Recursive call
    103$url = '../';
  • extensions/title/language/fr_FR/plugin.lang.php

    r32302 r32420  
    33// | Title plugin for piwigo by TEMMII                                     |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2011 - 2021 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
  • extensions/title/language/index.php

    r32302 r32420  
    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 
    92// Recursive call
    103$url = '../';
  • extensions/title/main.inc.php

    r32302 r32420  
    77Author: ddtddt
    88Author URI: http://temmii.com/piwigo/
     9Has Settings: true
    910*/
    1011
     
    1213// | Title plugin for piwigo by TEMMII                                     |
    1314// +-----------------------------------------------------------------------+
    14 // | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
     15// | Copyright(C) 2011 - 2021 ddtddt             http://temmii.com/piwigo/ |
    1516// +-----------------------------------------------------------------------+
    1617// | This program is free software; you can redistribute it and/or modify  |
     
    9091$result = pwg_query($query);
    9192$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);
    9495        if (!empty($titlePED)){
    9596          $template->assign('PERSO_TITLE', $titlePED);
    9697        }
    9798  }
     99 }
    98100}
    99101
     
    110112$result = pwg_query($query);
    111113$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);
    114116        if (!empty($titleAED)){
    115117                                $template->assign('PERSO_TITLE', $titleAED);
    116118        }
    117119  }
     120 }
    118121}
    119122
     
    178181  if (isset($pwg_loaded_plugins['AdditionalPages'])){   
    179182        global $prefixeTable;
    180         if ( !empty($page['additional_page']['id']) ){
     183    if ( !empty($page['additional_page']['id']) ){
    181184                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 = '
    184187  select id,title
    185188  FROM ' . TITLE_AP_TABLE . '
    186189  WHERE id = \''.$lire.'\'
    187190  ;';
    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          }
    192197        }
    193198        if (isset($page['section']) and $page['section'] == 'additional_page' and !empty($titlespecialED['AdditionalPages'])){
  • extensions/title/maintain.class.php

    r32302 r32420  
    33// | Title plugin for piwigo by TEMMII                                     |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2011 - 2020 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2011 - 2021 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.