Ignore:
Timestamp:
Jan 12, 2007, 11:36:56 PM (17 years ago)
Author:
vdigital
Message:

Admin Advices includes :

  • Tags relation check.
  • PhpWebGallery link buttons.
  • Its own default-layout.css (as a sample for other plugins as well).

No more functions would be included in 1.7
Please process to correct all wording errors in any advice.

Location:
trunk/plugins/admin_advices
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/admin_advices/admin_advices.tpl

    r1709 r1718  
    1 <!-- $Id: admin_advices.tpl 939 2005-11-17 20:13:36Z VDigital $ -->
     1<!-- $Id$ -->
    22
    3 <div class="content" style="list-style-type:none; margin: 0 1em 0 14.5em; border: 1px solid;">
    4   <h2 style="font-weight: bold; padding-left: 2em;">{lang:About}: {ADVICE_ABOUT}</h2>
    5     <h3 style="text-align: left; padding-left: 3em;">{ADVICE_TEXT}</h3>
     3<div class="content">
     4  <h2>{lang:An_advice_about} {ADVICE_ABOUT}</h2>
     5    <h3>{ADVICE_TEXT}</h3>
    66    <table>
    7     <tr><td style="text-align: left; padding-left: 2em; width:50%;">
     7    <tr><td style="text-align: left; width: 45em;">
    88    <!-- BEGIN More -->
    99      {More.ADVICE}  <br />
    1010    <!-- END More -->
    11     </td><td style="text-align: left; width:15%;">
     11    <br />
     12 <ul class="pwgmenu">
     13  <li><a href="http://demo.phpwebgallery.net">DEMO</a></li>
     14  <li><a href="http://phpwebgallery.net/doc">WIKI / DOC</a></li>
     15  <li><a href="http://forum.phpwebgallery.net">FORUM</a></li>
     16  <li><a href="http://bugs.phpwebgallery.net">BUGS</a></li>
     17  <li><a href="http://phpwebgallery.net/ext">EXTENSIONS</a></li>
     18</ul>   
     19    </td><td style="text-align: right; width: 155px;">
    1220    <!-- BEGIN thumbnail -->
    1321    <a href="{thumbnail.U_MODIFY}" alt="{lang:link_info_image}">
    1422    <img class="thumbnail" src="{thumbnail.IMAGE}"
    1523               alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"></a>
    16     </td><td style="text-align: left; width:15%;">
     24    </td><td style="text-align: left;">
    1725    <img src="{thumbnail.NAME}.png"
    18                alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Name}<br />
     26               alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Name}<br />
    1927    <img src="{thumbnail.COMMENT}.png"
    20                alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Description}<br />
     28               alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Description}<br />
    2129    <img src="{thumbnail.AUTHOR}.png"
    22                alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Author}<br />
     30               alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Author}<br />
    2331    <img src="{thumbnail.CREATE_DATE}.png"
    24                alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Creation date}<br />
     32               alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Creation date}<br />
    2533    <img src="{thumbnail.METADATA}.png"
    26                alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Metadata}<br />
    27 <!-- DEGING miss_Tags
     34               alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Metadata}<br />
    2835    <img src="{thumbnail.TAGS}.png"
    29                alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">{lang:Tags}
    30  END miss_Tags -->             
     36               alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Tags} ({thumbnail.NUM_TAGS})
    3137    <!-- END thumbnail -->
    3238  </td></tr>
    3339  </table>
     40
    3441</div>
  • trunk/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php

    r1709 r1718  
    66// +-----------------------------------------------------------------------+
    77// | branch        : BSF (Best So Far)
    8 // | file          : $RCSfile$
     8// | file          : $URL$
    99// | last update   : $Date: 2006-12-21 22:38:20 +0100 (jeu., 4 jan. 2007) $
    1010// | last modifier : $Author: Vincent $
     
    3131//$lang_info['code'] = 'en';
    3232global $lang;
     33$lang['An_advice_about'] = 'A new advice about';
    3334$lang['Metadata'] = 'Metadata';
     35
    3436foreach ($conf as $key => $value)
    3537{
  • trunk/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php

    r1709 r1718  
    66// +-----------------------------------------------------------------------+
    77// | branch        : BSF (Best So Far)
    8 // | file          : $RCSfile$
     8// | file          : $URL$
    99// | last update   : $Date: 2006-12-21 22:38:20 +0100 (jeu., 4 jan. 2007) $
    1010// | last modifier : $Author: Vincent $
     
    3131//$lang_info['code'] = 'fr';
    3232global $lang;
     33$lang['An_advice_about'] = 'Un nouveau conseil à propos de ';
    3334$lang['Metadata'] = 'Méta-données';
     35
    3436foreach ($conf as $key => $value)
    3537{
  • trunk/plugins/admin_advices/main.inc.php

    r1709 r1718  
    55Description: Give you an advice on the administration page.
    66*/
     7// +-----------------------------------------------------------------------+
     8// | PhpWebGallery - a PHP based picture gallery                           |
     9// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     10// +-----------------------------------------------------------------------+
     11// | branch        : BSF (Best So Far)
     12// | file          : $URL$
     13// | last update   : $Date$
     14// | last modifier : $Author$
     15// | revision      : $Rev$
     16// +-----------------------------------------------------------------------+
     17// | This program is free software; you can redistribute it and/or modify  |
     18// | it under the terms of the GNU General Public License as published by  |
     19// | the Free Software Foundation                                          |
     20// |                                                                       |
     21// | This program is distributed in the hope that it will be useful, but   |
     22// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
     23// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
     24// | General Public License for more details.                              |
     25// |                                                                       |
     26// | You should have received a copy of the GNU General Public License     |
     27// | along with this program; if not, write to the Free Software           |
     28// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
     29// | USA.                                                                  |
     30// +-----------------------------------------------------------------------+
    731
    832add_event_handler('loc_begin_page_tail', 'set_admin_advice' );
     33add_event_handler('loc_end_page_header', 'set_admin_advice_add_css' );
    934
     35// Add a XHTML tag in HEAD section
     36function set_admin_advice_add_css()
     37{
     38  global $template;
     39        $template->assign_block_vars(
     40          'head_element',
     41           array(
     42             'CONTENT' => '<link rel="stylesheet" type="text/css" '
     43                        . 'href="plugins/admin_advices/default-layout.css" />',     
     44           )
     45         );
     46}
    1047
     48// Build an advice on the Admin Intro page
    1149function set_admin_advice()
    1250{
    1351  global $page, $user, $template, $conf;
     52
    1453
    1554  // This Plugin works only on the Admin page
     
    3170    if ( $cond )
    3271    {
    33 //  $template->set_filenames( array( 'advice' => 'admin_advices.tpl' ));
    3472      $template->set_filenames(array(
    3573        'admin_advice' =>
     
    5290        $url_check = get_themeconf('icon_dir').'/';
    5391        $url_uncheck = $url_check . 'uncheck';
    54         $url_check .= 'check';       
     92        $url_check .= 'check';
     93        $picture_id = $row['id'];
     94        $query = '
     95SELECT * FROM '.IMAGE_TAG_TABLE.'
     96WHERE image_id =  ' . $picture_id .'
     97;';
     98        $tag_count = mysql_num_rows(mysql_query($query));
    5599        $template->assign_block_vars(
    56100          'thumbnail',
     
    69113             'CREATE_DATE'        => (empty($row['date_creation'])) ?
    70114                                     $url_uncheck : $url_check,
     115             'TAGS'               => ($tag_count == 0) ?
     116                                     $url_uncheck : $url_check,
     117             'NUM_TAGS'           => (string) $tag_count,
    71118             'U_MODIFY'           => $url_modify,     
    72119           )
Note: See TracChangeset for help on using the changeset viewer.