Ignore:
Timestamp:
May 18, 2010, 10:15:25 PM (14 years ago)
Author:
EXFTB
Message:

2.1.a compliant hdshadowbox

Location:
extensions/LLGBO2/admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/admin/llgbo_admin.php

    r4713 r6234  
    135135        if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';}
    136136        if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';}
    137         if (!isset($_POST['llgbo_default_navthumb'])) {$_POST['llgbo_default_navthumb'] = 'false';}
     137    $_POST['llgbo_hdlightbox'] = 'false';
     138        // compliance HD Shadowbox
     139        $query =" SELECT ID FROM  piwigo_plugins where id ="."'HDShadowbox'"."and state ='active'" ;
     140   $result = pwg_query($query);
     141   while ($row = pwg_db_fetch_assoc($result))
     142                { $_POST['llgbo_hdlightbox'] = 'true';} 
    138143        if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10   
    139144         $param_llgbo = array($_POST['llgbo_frame'],
     
    142147                                $_POST['llgbo_title_frame'],                    $_POST['llgbo_header'],
    143148                                $_POST['llgbo_maintain_header'],                        $_POST['llgbo_allinfo'],
    144                                 $_POST['llgbo_default_navthumb']        ,$_POST['llgbo_always_displayexif']
     149                                $_POST['llgbo_hdlightbox']      ,$_POST['llgbo_always_displayexif']
    145150                        );               
    146151        $llgbo_new_value = implode ("," , $param_llgbo);
     
    176181          {$template->assign(array( 'LLGBO_ALLINFO' => 'true'));}  else {  $template->assign( array( 'LLGBO_ALLINFO' => "false"));}
    177182        if ($conf['LLGBO_SETTINGS'][9] == 'true')
    178           {$template->assign(array( 'LLGBO_DEFAULT_NAVTHUMB' => 'true'));}  else  { $template->assign(array( 'LLGBO_DEFAULT_NAVTHUMB' => "false"));}
     183          {$template->assign(array( 'LLGBO_HDLIGHTBOX' => 'true'));}  else  { $template->assign(array( 'LLGBO_HDLIGHTBOX' => "false"));}
    179184        if ($conf['LLGBO_SETTINGS'][10] == 'true')
    180185          {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));}  else  { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));}
  • extensions/LLGBO2/admin/llgbo_adminframe.tpl

    r4603 r6234  
    11
    2 <div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div>
     2{if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if}
    33 <h2> {'Title'|@translate} <br>  {$LLGBO_VERSION}</h2>
    44 <h3>{'Step3_Title'|@translate}</h3>
    5 <form method="post" action="{$llgbo_F_ACTION}" class="properties">
     5<form method="post" action="" class="properties">
    66<fieldset>
    77        <div id="framepicker"> </div>
  • extensions/LLGBO2/admin/llgbo_adminheader.tpl

    r4603 r6234  
    1 <div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div>
     1{if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if}
    22<h2> {'Title'|@translate} <br>  {$LLGBO_VERSION}</h2>
    33<h3>{'Step4_Title'|@translate}</h3>
  • extensions/LLGBO2/admin/llgbo_adminsettings.tpl

    r4713 r6234  
    1 <div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div>
     1
     2{if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if}
    23 <h2> {'Title'|@translate} <br>  {$LLGBO_VERSION}</h2>
    34<h3>{'Howto'|@translate}</h3>
    4 <span>{'llgo_warning_setting'|@translate} </span>
    5 <form method="post" action="{$llgbo_F_ACTION}" class="properties">
     5{if !empty($GALLY)}
     6<span>{'llgo_warning_setting'|@translate} </span>{/if}
     7<form method="post" action="" class="properties">
    68<fieldset>
    79
    8 <table id="llgbotable" style="{$LLGBODISPMANAGE}">
     10<table id="llgbotable">
    911        <tr>
    1012                <td id="llgbotitle">{'llgo_global_setting'|@translate} </td>
     
    3840                <td class="llgboinput">{html_radios name='llgbo_title_frame' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_TITLE_FRAME}</td> 
    3941        </tr>
     42 <!--   <tr>
     43                <td class="llgbolabel">{'llgbo_hdlightbox'|@translate}</td>
     44                <td class="llgboinput">{html_radios name='llgbo_hdlightbox' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HDLIGHTBOX}</td>
     45        </tr>    -->
    4046        <tr>
    41         <tr>
    42                 <td class="llgbolabel">{'llgbo_default_navthumb'|@translate}</td>
    43                 <td class="llgboinput">{html_radios name='llgbo_default_navthumb' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_DEFAULT_NAVTHUMB}</td>
    44         </tr>
    4547                <td class="llgbolabel">{'llgbo_header'|@translate}</td>
    4648                <td class="llgboinput">{html_radios name='llgbo_header' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HEADER}</td>   
  • extensions/LLGBO2/admin/llgbo_admintooltip.tpl

    r4603 r6234  
    1 <div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div>
     1{if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if}
    22 <h2> {'Title'|@translate} <br>  {$LLGBO_VERSION}</h2>
    33<h3>{'Step2_Title'|@translate}</h3>
    4 <form method="post" action="{$llgbo_F_ACTION}" class="properties">
     4<form method="post" action="" class="properties">
    55<fieldset>
    66
Note: See TracChangeset for help on using the changeset viewer.