Changeset 1724


Ignore:
Timestamp:
Jan 15, 2007, 11:44:48 PM (17 years ago)
Author:
vdigital
Message:

Feature "Admin Advices !" (Standard plugin) : May give you always now an advice on the administration page.
Quick solved list:
1 - Wording on EXIF/IPTC Advices
2 - Default language is English
3 - Some Transparency issues under IE
4 - Some Border issues
5 - PWG Menu moved from Advices Box to Intro.
6 - phpwebgallery.net URLs are available thru a new admin function pwg_URL()
7 - PWG Menu URL open in a new target (XHTML strict compliant (JS)).

Location:
trunk
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r1719 r1724  
    19211921}
    19221922
     1923/**
     1924 * Refer main PhpWebGallery URLs (currently phpwebgallery.net domain)
     1925 *
     1926 * @param void
     1927 * @return array like $conf['links']
     1928 */
     1929function pwg_URL()
     1930{
     1931  global $lang_info;
     1932  $urls = array(
     1933    'WIKI'       => 'http://phpwebgallery.net/doc/',
     1934    'HOME'       => 'http://phpwebgallery.net/',
     1935    'DEMO'       => 'http://demo.phpwebgallery.net/',
     1936    'FORUM'      => 'http://forum.phpwebgallery.net/',
     1937    'BUGS'       => 'http://bugs.phpwebgallery.net/',
     1938    'EXTENSIONS' => 'http://phpwebgallery.net/ext',
     1939    );
     1940  if ( isset($lang_info['code']) and
     1941       in_array($lang_info['code'], array('fr','en')) )
     1942  { /* current wiki languages are French or English */
     1943    $urls['WIKI'] =
     1944      'http://phpwebgallery.net/doc/doku.php?id='.$lang_info['code'].':start';
     1945    $urls['HOME'] = 'http://phpwebgallery.net/?lang='.$lang_info['code'];
     1946  }
     1947  return $urls;
     1948}
     1949
    19231950?>
  • trunk/admin/intro.php

    r1538 r1724  
    268268}
    269269
     270// Add the PhpWebGallery Official menu
     271  $template->assign_block_vars( 'pwgmenu', pwg_URL() );
     272 
    270273// +-----------------------------------------------------------------------+
    271274// |                           sending html code                           |
  • trunk/plugins/admin_advices/admin_advices.tpl

    r1718 r1724  
    55    <h3>{ADVICE_TEXT}</h3>
    66    <table>
    7     <tr><td style="text-align: left; width: 45em;">
     7    <tr><td style="text-align: left; width: 50%;">
    88    <!-- BEGIN More -->
    99      {More.ADVICE}  <br />
    1010    <!-- END More -->
    1111    <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;">
     12    </td><td style="text-align: right; width: 20%;">
    2013    <!-- BEGIN thumbnail -->
    2114    <a href="{thumbnail.U_MODIFY}" alt="{lang:link_info_image}">
  • trunk/plugins/admin_advices/default-layout.css

    r1718 r1724  
    33  list-style-type:none;
    44  margin: 0 1em 0 14.5em;
    5   border: 1px solid;
    6   padding: 0;
     5  padding: 0 0 15px 0;
    76}
    87.content h2 {
     
    1918  padding-left: 2em;
    2019}
    21 .pwgmenu {
    22   display: table;
    23   list-style-type: none;
    24   list-style-image: none; /* for firefox */
    25   white-space: nowrap;
    26   position: relative;
    27   text-decoration : none;
    28   font-family: verdana, arial, helvetica, sans-serif;
    29   font-size: 70%;
    30   line-height: 1.1em;
    31   width: 66em;
    32   margin: 1px 8px;
    33   padding: 3px;
    34   background: transparent;
    35 }
    36 .pwgmenu li {
    37   float: left;
    38   width: 10em !important;
    39   text-align: center;
    40   margin: 0 6px;
    41   padding: 0;
    4220
    43 }
    44 .pwgmenu a {
    45   width: 9em !important;
    46   display: block;
    47   padding: 4px 8px;
    48   background: #69c; /* PWG Graphic charts */
    49   color: white;
    50   text-align: center; 
    51   text-decoration: none;
    52   font-weight: bold;
    53   border: 1px solid #fff; /* Why bordered? in case of #69c background */
    54 }
    55 .pwgmenu a:hover {
    56   background: #f92;
    57   color: white;
    58 } /* PWG Graphic charts */
  • trunk/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php

    r1718 r1724  
    335335                        $adv[] = 'Do NOT confuse between <strong>show</strong>_iptc and ' .
    336336               '<strong>use</strong>_iptc (have a look on metadata page ' .
    337                                                          'on our wiki.';
     337                                                         'on our wiki).';
    338338      $cond = $conf['show_iptc'];
    339339      $confk = 'show_iptc';
     
    350350                        $adv[] = 'Do NOT confuse between <strong>show</strong>_iptc and ' .
    351351               '<strong>use</strong>_iptc (have a look on metadata page ' .
    352                                                          'on our wiki.';
     352                                                         'on our wiki).';
    353353      $cond = $conf['use_iptc'];
    354354      $confk = 'use_iptc';
     
    405405                        $adv[] = 'Do NOT confuse between <strong>show</strong>_exif and ' .
    406406               '<strong>use</strong>_exif (have a look on metadata page ' .
    407                                                          'on our wiki.';
     407                                                         'on our wiki).';
    408408      $cond = true;
    409409      $confk = 'show_exif';
     
    420420      $adv[] = 'Advanced users would take care of $lang values and ' .
    421421                                 'impacts on templates.';
    422                         $adv[] = 'In any case, <strong>show</strong>_exif_mapping and ' .
     422                        $adv[] = 'In any case, <strong>show</strong>_exif_fields and ' .
    423423               '<strong>use</strong>_exif_mapping must be totally different.';
    424424      $cond = true;
    425       $confk = 'show_exif_mapping';
     425      $confk = 'show_exif_fields';
    426426      break;                               
    427427                         
     
    436436                        $adv[] = 'Do NOT confuse between <strong>show</strong>_exif and ' .
    437437               '<strong>use</strong>_exif (have a look on metadata page ' .
    438                                                          'on our wiki.';
     438                                                         'on our wiki).';
    439439      $cond = true;
    440440      $confk = 'use_exif';
     
    452452                                 'prior to synchronize.';
    453453      $adv[] = 'Take care of mentionned fields in metadata synchronization.' .
    454                '<br />Mentionned fields would be rewrited with IPTC values ' .
     454               '<br />Mentionned fields would be rewrited with EXIF values ' .
    455455                                                         ' even those ones are NOT empty.';
    456                         $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' .
    457                '<strong>use</strong>_iptc_mapping must be totally different.';
     456                        $adv[] = 'In any case, <strong>show</strong>_exif_fields and ' .
     457               '<strong>use</strong>_exif_mapping must be totally different.';
    458458      $cond = true;
    459459      $confk = 'use_exif_mapping';
  • trunk/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php

    r1718 r1724  
    356356                        $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et '
    357357             . '<strong>use</strong>_iptc (consultez la pages de métadonnées '
    358                                                  . 'sur notre wiki.';
     358                                                 . 'sur notre wiki).';
    359359      $cond = $conf['show_iptc'];
    360360      $confk = 'show_iptc';
     
    372372                        $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et '
    373373             . '<strong>use</strong>_iptc (consultez la pages de métadonnées '
    374                                                  . 'sur notre wiki.';
     374                                                 . 'sur notre wiki).';
    375375      $cond = $conf['use_iptc'];
    376376      $confk = 'use_iptc';
     
    432432                        $adv[] = 'Ne confondez pas <strong>show</strong>_exif et '
    433433             . '<strong>use</strong>_exif (consultez la pages de métadonnées '
    434                                                  . 'sur notre wiki.';
     434                                                 . 'sur notre wiki).';
    435435      $cond = true;
    436436      $confk = 'show_exif';
     
    447447      $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau '
    448448             . '$lang; voire même à l\'impact possible sur les templates.';
    449                         $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et '
    450                                . '<strong>use</strong>_iptc_mapping seront '
     449                        $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et '
     450                               . '<strong>use</strong>_exif_mapping seront '
    451451                                                 . 'totalement différents.';                           
    452452      $cond = true;
    453       $confk = 'show_exif_mapping';
     453      $confk = 'show_exif_fields';
    454454      break;                               
    455455                         
     
    466466                        $adv[] = 'Ne confondez pas <strong>show</strong>_exif et '
    467467             . '<strong>use</strong>_exif (consultez la pages de métadonnées '
    468                                                  . 'sur notre wiki.';
     468                                                 . 'sur notre wiki).';
    469469      $cond = true;
    470470      $confk = 'use_exif';
     
    481481      $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau '
    482482             . '$lang; voire même à l\'impact possible sur les templates.';
    483       $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;';
     483      $adv[] = 'Les débutants laisseront $conf[\'use_exif\'] = false;';
    484484      $adv[] = 'Les utilisateurs avancés feront très attention aux champs '
    485485                               . 'sélectionnés et modifiés par la synchronisation.';
     
    488488                                                 . 'écrasés par des valeurs de champs EXIF quand bien même ces '
    489489                                                 . 'champs ne seraient pas vides.';
    490                         $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et '
    491                                . '<strong>use</strong>_iptc_mapping seront '
     490                        $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et '
     491                               . '<strong>use</strong>_exif_mapping seront '
    492492                                                 . 'totalement différents.';
    493493      $cond = true;
  • trunk/plugins/admin_advices/main.inc.php

    r1718 r1724  
    6262
    6363    $adv = array();
    64 
     64    if ( !@file_exists(PHPWG_ROOT_PATH
     65         . "plugins/admin_advices/$advlang/lang.adv.php") )
     66    {
     67      $advlang = 'en_UK.iso-8859-1';
     68    }
    6569//  Include language advices
    66     include_once( PHPWG_ROOT_PATH
     70    @include_once( PHPWG_ROOT_PATH
    6771      . "plugins/admin_advices/$advlang/lang.adv.php" );
    6872
  • trunk/template-common/default-layout.css

    r1518 r1724  
    4242/* Category thumbnails on main page */
    4343#content UL.thumbnailCategories LI {
    44   width: 49.9%;         /* 49.9% for 2 per line, 33.3% for 3 per line*/
     44  width: 49.7%;         /* 49.7% for 2 per line, 33.2% for 3 per line*/
    4545}
    4646
  • trunk/template/yoga/admin/default-layout.css

    r1454 r1724  
    104104  width: 70%;
    105105}
     106
     107/* PWG Links Menu is fixed Graphic charts */
     108.pwgmenu {
     109  display: table;
     110  list-style-type: none;
     111  list-style-image: none; /* for firefox */
     112  white-space: nowrap;
     113  position: relative;
     114  text-decoration : none;
     115  font-family: verdana, arial, helvetica, sans-serif;
     116  font-size: 70%;
     117  line-height: 1.1em;
     118  width: 66em;
     119  margin: 1px 8px 1px auto;
     120  padding: 3px;
     121  background: transparent;
     122}
     123.pwgmenu li {
     124  float: left;
     125  width: 10em !important;
     126  text-align: center;
     127  margin: 0 6px;
     128  padding: 0;
     129
     130}
     131.pwgmenu a {
     132  width: 9em !important;
     133  display: block;
     134  padding: 4px 8px;
     135  background: #69c; /* PWG Graphic charts */
     136  color: white;
     137  text-align: center; 
     138  text-decoration: none;
     139  font-weight: bold;
     140  border: 1px solid #fff; /* Why bordered? in case of #69c background */
     141}
     142.pwgmenu a:hover {
     143  background: #f92;
     144  color: white;
     145} /* PWG Graphic charts */
  • trunk/template/yoga/admin/intro.tpl

    r1538 r1724  
    11<!-- $Id$ -->
    22<h2>{lang:title_default}</h2>
    3 
     3<!-- BEGIN pwgmenu -->
     4<ul class="pwgmenu">
     5  <!-- Keep Doctype XHTML Strict acceptable even in Admin -->
     6  <!-- New window is open if Js available (Webmasters accept it usually) -->
     7  <li><a href="{pwgmenu.HOME}" onclick="window.open(this.href, ''); return false;">{lang:HOME}</a></li>
     8  <li><a href="{pwgmenu.WIKI}" onclick="window.open(this.href, ''); return false;">{lang:WIKI / DOC}</a></li>
     9  <li><a href="{pwgmenu.FORUM}" onclick="window.open(this.href, ''); return false;">{lang:FORUM}</a></li>
     10  <li><a href="{pwgmenu.BUGS}" onclick="window.open(this.href, ''); return false;">{lang:BUGS}</a></li>
     11  <li><a href="{pwgmenu.EXTENSIONS}" onclick="window.open(this.href, ''); return false;">{lang:EXTENSIONS}</a></li>
     12</ul>   
     13<!-- END pwgmenu -->
    414<dl>
    515  <dt>{lang:PhpWebGallery version}</dt>
  • trunk/template/yoga/theme/clear/theme.css

    r1713 r1724  
    2121
    2222/* borders */
    23 #menubar DL, #content, #imageToolBar,
     23#menubar DL, #content, #imageToolBar, 
    2424#comments DIV.comment BLOCKQUOTE {
    2525  border: 1px solid #d3d3d3;
  • trunk/template/yoga/theme/dark/theme.css

    r1713 r1724  
    4848
    4949/* borders */
    50 #menubar DL, #content,
     50#menubar DL, #content, .content,
    5151#comments DIV.comment BLOCKQUOTE {
    5252  border: 1px solid #000000;
  • trunk/template/yoga/theme/p0w0/theme.css

    r1721 r1724  
    1010  background-color: transparent;
    1111  border: 0px;
    12 }
    13 #content UL.thumbnailCategories LI {
    14   width: 49.7%;         /* 49.8% for 2 per line, 33.3% for 3 per line*/
    1512}
    1613H2, .throw {
  • trunk/template/yoga/theme/wipi/theme.css

    r1721 r1724  
    1010  background-color: transparent;
    1111  border: 0px;
    12 }
    13 #content UL.thumbnailCategories LI {
    14   width: 49.7%;         /* 49.8% for 2 per line, 33.3% for 3 per line*/
    1512}
    1613H2, .throw {
Note: See TracChangeset for help on using the changeset viewer.