Changeset 32642
- Timestamp:
- Nov 25, 2021, 4:47:23 PM (3 years ago)
- Location:
- extensions/Admin_Messages
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Admin_Messages/admin.php
r12356 r32642 31 31 'AM_PATH' => AM_PATH, 32 32 'AM_ADMIN' => AM_ADMIN, 33 'ADMIN_PAGE_TITLE' => 'Admin Messages', 33 34 )); 34 35 -
extensions/Admin_Messages/admin/template/config.tpl
r29309 r32642 1 1 {combine_css path=$AM_PATH|@cat:'admin/template/style.css'} 2 3 <div class="titrePage">4 <h2>{'Configuration'|@translate}</h2>5 </div>6 2 7 3 <form method="post" action="" class="properties"> -
extensions/Admin_Messages/admin/template/list.tpl
r31820 r32642 1 1 {combine_css path=$AM_PATH|@cat:'admin/template/style.css'} 2 3 <div class="titrePage">4 <h2>{'Messages list'|@translate}</h2>5 </div>6 2 7 3 {if !isset($am_messages)} … … 10 6 {/if} 11 7 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} 30 25 </ul> 31 26 </form> -
extensions/Admin_Messages/admin/template/new.tpl
r29309 r32642 1 1 {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>13 2 14 3 <form method="post" action="" class="properties"> -
extensions/Admin_Messages/admin/template/style.css
r29309 r32642 14 14 font-style:italic; 15 15 } 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; 21 19 } 22 .categoryLi p {23 margin-left:10px;24 } -
extensions/Admin_Messages/main.inc.php
r12356 r32642 7 7 Author: Mistic 8 8 Author URI: http://www.strangeplanet.fr 9 Has Settings: true 9 10 */ 10 11 … … 25 26 // Triggers 26 27 // +-----------------------------------------------------------------------+ 27 add_event_handler('get_admin_plugin_menu_links', 'AM_admin_menu'); // Lien d'administration28 28 add_event_handler('loc_begin_page_tail', 'AM_load_admin_messages'); // affichage sur admin 29 30 29 31 30 // +-----------------------------------------------------------------------+ 32 31 // Fonctions 33 32 // +-----------------------------------------------------------------------+ 34 // Lien d'administration35 function AM_admin_menu($menu) {36 array_push($menu, array(37 'NAME' => 'Admin Messages',38 'URL' => AM_ADMIN39 ));40 return $menu;41 }42 33 43 34 // affichage sur admin -
extensions/Admin_Messages/template/admin_messages.tpl
r31820 r32642 40 40 {if isset($message.U_DELETE)} 41 41 <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> 45 43 </li> 46 44 {/if} 47 45 {if isset($message.U_EDIT)} 48 46 <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> 52 48 </li> 53 49 {/if}
Note: See TracChangeset
for help on using the changeset viewer.