Changeset 4538


Ignore:
Timestamp:
Dec 21, 2009, 12:00:20 AM (14 years ago)
Author:
repie38
Message:

-added 'type="text/css"' in <style>
-added explanation on #RandomImage extra css : disable on mode background

Location:
extensions/Random_Header
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/Random_Header

    • Property svn:ignore set to
      data.dat
  • extensions/Random_Header/admin/rh_admin.tpl

    r3684 r4538  
    4545                        <i>#theHeader :</i><br />
    4646                        <input class="rh_input" type="text" name="{$i.CURRENT_THEME}head_css" value="{$i.HEAD_CSS}"><br />
    47                         <i>#RandomImage :</i><br /><input class="rh_input"  type="text" name="{$i.CURRENT_THEME}img_css" value="{$i.IMG_CSS}"><br />
     47                        <i>#RandomImage : {'rh_inactif_on_bg'|@translate}</i><br /><input class="rh_input"  type="text" name="{$i.CURRENT_THEME}img_css" value="{$i.IMG_CSS}"><br />
    4848                        </p>
    4949                       
  • extensions/Random_Header/language/en_UK/plugin.lang.php

    r3684 r4538  
    3434$lang['rh_aide']                                = 'Info :<br />IMAGES ARE VIEWABLE BY EVERYONE (private category or not)<br />CSS style for the image(#RandomImage) isn\'t applied in background mode<br>CSS text field need to respect CSS rules (ex: "overflow:auto;color:red;")<br />In background mode, concatenate the <a href="admin.php?page=configuration">page banner</a> is disable';
    3535$lang['rh_additional_css']              = 'Additional CSS Style';
    36 
     36$lang['rh_inactif_on_bg']               = 'disable on background mode';
    3737?>
  • extensions/Random_Header/language/es_ES/plugin.lang.php

    r3705 r4538  
    3434$lang['rh_aide']                                = 'Nota:<br />LAS IMÁGENES SON VISIBLES PARA ELLOS TODOS (Categoría privada o no)<br />El estilo CSS para la imagen (#RandomImage) No es aplicado en moda llena de imágenes de fondo<br>El campo CSS debe respetar la norma CSS (ex: "overflow:auto;color:red;")<br />En moda llena de imágenes de fondo, concatenar <a href="admin.php?page=configuration">bandera de las páginas</a> es inactivo';
    3535$lang['rh_additional_css']              = 'Estilo CSS adicional';
    36 
     36$lang['rh_inactif_on_bg']               = 'inactivo para la imagen de fondo';
    3737?>
  • extensions/Random_Header/language/fr_FR/plugin.lang.php

    r3684 r4538  
    3434$lang['rh_aide']                                = 'Note :<br />LES IMAGES SONT VISIBLES POUR TOUS (catégorie privée ou pas)<br />Le style CSS pour l\'image (#RandomImage) n\'est pas appliqué en mode image de fond<br>Les champs CSS doivent respecter les normes CSS (ex: "overflow:auto;color:red;")<br />En mode image de fond, concatener la <a href="admin.php?page=configuration">bannière des pages</a> est inactif';
    3535$lang['rh_additional_css']              = 'Style CSS additionnel';
    36 
     36$lang['rh_inactif_on_bg']               = 'inactif en image de fond';
    3737?>
  • extensions/Random_Header/main.inc.php

    r3687 r4538  
    6666                                                       
    6767                                if ($this->rh_config[$usertheme]['mode_background']=='on') {
    68                                         $template->append('head_elements','<style>#theHeader{background: url('.$toto[0].') no-repeat;'. $this->rh_config[$usertheme]['head_css'] .'}</style>');
     68                                        $template->append('head_elements','<style type="text/css">#theHeader{background: url('.$toto[0].') no-repeat;'. $this->rh_config[$usertheme]['head_css'] .'}</style>');
    6969                                }
    7070                                else {
    7171                                        if ($this->rh_config[$usertheme]['img_css']!='' || $this->rh_config[$usertheme]['head_css']!='')
    72                                                 $template->append('head_elements','<style>#theHeader{'. $this->rh_config[$usertheme]['head_css'] .'}#theHeader #RandomImage{'. $this->rh_config[$usertheme]['img_css'] .'}</style>');
     72                                                $template->append('head_elements','<style type="text/css">#theHeader{'. $this->rh_config[$usertheme]['head_css'] .'}#theHeader #RandomImage{'. $this->rh_config[$usertheme]['img_css'] .'}</style>');
    7373                                        $page['page_banner'] = ($this->rh_config[$usertheme]['concat_before']=='on') ? $conf['page_banner'] : '';
    7474                                        $page['page_banner'].= '<img id="RandomImage" src="'.$toto[0].'">';
Note: See TracChangeset for help on using the changeset viewer.