Changeset 21222


Ignore:
Timestamp:
03/05/13 23:58:54 (6 years ago)
Author:
ddtddt
Message:

[extensions] - Photo_add_by - new feature choise where add 'photo add by

Location:
extensions/Photo_add_by
Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/Photo_add_by/initpicture.php

    r21162 r21222  
    1010 } 
    1111 
     12 
    1213function pabIT($content, &$smarty) 
    1314 { 
    14   $search = '#<div id="datecreate" class="imageInfo">#'; 
     15  
     16 global $conf; 
     17  
     18  $search = '#<div id="'.$conf['Photo_add_by'].'" class="imageInfo">#'; 
    1519   
    1620  $replacement = ' 
     
    2125  </div> 
    2226{/if} 
    23 <div id="datecreate" class="imageInfo">'; 
     27<div id="'.$conf['Photo_add_by'].'" class="imageInfo">'; 
    2428 
    2529  return preg_replace($search, $replacement, $content); 
  • extensions/Photo_add_by/language/en_UK/plugin.lang.php

    r16897 r21222  
    11<?php 
     2$lang['Management'] = 'Management'; 
    23$lang['Photo added by'] = 'Photo added by'; 
     4$lang['Add information before'] = 'Add information before'; 
     5$lang['Information must be displayed on the photo page for this to work'] = 'Information must be displayed on the photo page for this to work'; 
     6$lang['Choice saved'] = 'Choice saved'; 
    37?> 
  • extensions/Photo_add_by/language/fr_FR/plugin.lang.php

    r16897 r21222  
    11<?php 
     2$lang['Management'] = 'gestion'; 
    23$lang['Photo added by'] = 'Photo Ajouté par'; 
     4$lang['Add information before'] = 'Ajouter l\'information avant'; 
     5$lang['Information must be displayed on the photo page for this to work'] = 'L\'information doit être affiché sur la page photo pour que cela fonctionne'; 
     6$lang['Choice saved'] = 'Choix sauvegardé'; 
    37?> 
  • extensions/Photo_add_by/main.inc.php

    r16897 r21222  
    2222} 
    2323 
     24// menu admin 
     25add_event_handler('get_admin_plugin_menu_links', 'PAB_admin_menu'); 
     26function PAB_admin_menu($menu) 
     27{ 
     28  array_push($menu, array( 
     29        'NAME' => 'Photo added by', 
     30    'URL' => get_admin_plugin_menu_link(PAB_PATH . 'admin/admin.php'))); 
     31  return $menu; 
     32} 
     33 
     34 
    2435?> 
Note: See TracChangeset for help on using the changeset viewer.