Changeset 32642


Ignore:
Timestamp:
Nov 25, 2021, 4:47:23 PM (3 years ago)
Author:
plg
Message:

compatibility Piwigo 12

Location:
extensions/Admin_Messages
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/Admin_Messages/admin.php

    r12356 r32642  
    3131  'AM_PATH' => AM_PATH,
    3232  'AM_ADMIN' => AM_ADMIN,
     33  'ADMIN_PAGE_TITLE' => 'Admin Messages',
    3334));
    3435
  • extensions/Admin_Messages/admin/template/config.tpl

    r29309 r32642  
    11{combine_css path=$AM_PATH|@cat:'admin/template/style.css'}
    2 
    3 <div class="titrePage">
    4   <h2>{'Configuration'|@translate}</h2>
    5 </div>
    62
    73<form method="post" action="" class="properties">
  • extensions/Admin_Messages/admin/template/list.tpl

    r31820 r32642  
    11{combine_css path=$AM_PATH|@cat:'admin/template/style.css'}
    2 
    3 <div class="titrePage">
    4   <h2>{'Messages list'|@translate}</h2>
    5 </div>
    62
    73{if !isset($am_messages)}
     
    106{/if}
    117
    12 <form id="categoryOrdering">
    13   <ul class="categoryUl">
    14     {foreach from=$am_messages item=message}
    15       <li class="categoryLi virtual_cat">
    16         <div class="head"><b>{$message.AUTHOR}</b> - <i>{$message.DATE}</i></div>
    17         <p>{$message.CONTENT}</p>
    18        
    19         <p class="albumActions">
    20           {if isset($message.U_EDIT)}
    21           <a href="{$message.U_EDIT}">{'edit'|@translate}</a>
    22           {/if}
    23           {if isset($message.U_EDIT) and isset($message.U_DELETE)}|{/if}
    24           {if isset($message.U_DELETE)}
    25           <a href="{$message.U_DELETE}">{'delete'|@translate}</a>
    26           {/if}
    27         </p>
    28       </li>
    29     {/foreach}
     8<form id="menuOrdering">
     9  <ul class="menuUl">
     10{foreach from=$am_messages item=message}
     11    <li class="menuLi admin-message">
     12      <div class="admin-message-head">
     13        <b>{$message.AUTHOR}</b>
     14        - <i>{$message.DATE}</i>
     15  {if isset($message.U_EDIT)}
     16        <a href="{$message.U_EDIT}" title="{'edit'|@translate|escape:html}" class="tiptip"><i class="icon-pencil"></i></a>
     17  {/if}
     18  {if isset($message.U_DELETE)}
     19        <a href="{$message.U_DELETE}" title="{'delete'|@translate|escape:html}" class="tiptip"><i class="icon-trash-1"></i></a>
     20  {/if}
     21      </div>
     22      <p>{$message.CONTENT}</p>
     23    </li>
     24{/foreach}
    3025  </ul>
    3126</form>
  • extensions/Admin_Messages/admin/template/new.tpl

    r29309 r32642  
    11{combine_css path=$AM_PATH|@cat:'admin/template/style.css'}
    2 {include file='include/autosize.inc.tpl'}
    3 
    4 <div class="titrePage">
    5   <h2>
    6   {if isset($CONTENT)}
    7     {'Edit the message'|@translate}
    8   {else}
    9     {'Add a message'|@translate}
    10   {/if}
    11   </h2>
    12 </div>
    132
    143<form method="post" action="" class="properties">
  • extensions/Admin_Messages/admin/template/style.css

    r29309 r32642  
    1414  font-style:italic;
    1515}
    16 .categoryLi div.head {
    17   font-size:0.9em;
    18   border-bottom:1px dotted #666;
    19   width:100%;
    20   margin-top:5px;
     16
     17.admin-message-head {
     18  padding: 0 10px 10px 10px;
    2119}
    22 .categoryLi p {
    23   margin-left:10px;
    24 }
  • extensions/Admin_Messages/main.inc.php

    r12356 r32642  
    77Author: Mistic
    88Author URI: http://www.strangeplanet.fr
     9Has Settings: true
    910*/
    1011
     
    2526//          Triggers
    2627// +-----------------------------------------------------------------------+
    27 add_event_handler('get_admin_plugin_menu_links', 'AM_admin_menu');   // Lien d'administration
    2828add_event_handler('loc_begin_page_tail', 'AM_load_admin_messages'); // affichage sur admin
    29 
    3029
    3130// +-----------------------------------------------------------------------+
    3231//          Fonctions
    3332// +-----------------------------------------------------------------------+
    34 // Lien d'administration
    35 function AM_admin_menu($menu) {
    36   array_push($menu, array(
    37     'NAME' => 'Admin Messages',
    38     'URL' => AM_ADMIN
    39   ));
    40   return $menu;
    41 }
    4233
    4334// affichage sur admin
  • extensions/Admin_Messages/template/admin_messages.tpl

    r31820 r32642  
    4040                  {if isset($message.U_DELETE)}
    4141                  <li>
    42                     <a href="{$message.U_DELETE}" title="{'delete'|@translate}">
    43                       <img src="{$themeconf.admin_icon_dir}/delete.png" class="button" alt="{'delete'|@translate}" />
    44                     </a>
     42                    <a href="{$message.U_DELETE}" title="{'delete'|@translate}"><i class="icon-trash-1"></i></a>
    4543                  </li>
    4644                  {/if}
    4745                  {if isset($message.U_EDIT)}
    4846                  <li>
    49                     <a href="{$message.U_EDIT}" title="{'edit'|@translate}">
    50                       <img src="{$themeconf.admin_icon_dir}/edit_s.png" width="16px" class="button" alt="{'edit'|@translate}" />
    51                     </a>
     47                    <a href="{$message.U_EDIT}" title="{'edit'|@translate}"><i class="icon-pencil"></i></a>
    5248                  </li>
    5349                  {/if}
Note: See TracChangeset for help on using the changeset viewer.