Your IP : 216.73.217.68


Current Path : /home/w/u/e/wuectly/www/03cbe/
Upload File :
Current File : /home/w/u/e/wuectly/www/03cbe/mod_bgmax.tar

tmpl/default.php000060400000001253152455312730007661 0ustar00<?php

/*------------------------------------------------------------------------
# mod_bgmax - bgMax
# ------------------------------------------------------------------------
# author    lomart
# copyright : Copyright (C) 2011 lomart.fr All Rights Reserved.
# @license  : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Website   : http://lomart.fr
# Technical Support:  Forum - http://forum.joomla.fr
-------------------------------------------------------------------------*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

$document =JFactory::getDocument();
$document->addCustomTag($bgmax_info["head"]);

echo $bgmax_info["body"];

?>                tmpl/index.html000060400000000054152455312730007517 0ustar00<html><body bgcolor="#FFFFFF"></body></html>bgMax.gif000060400000010150152455312730006271 0ustar00GIF89a�(���7����K��Ģ��ggg�̫�ƶK�x����ϴh����ꔵ�Z���@������>�l������%�YR�{�:������"�W�ҳ@�n�½����/�`�@|���ϱ��������˩Ի����9����>������t������4[�|9�e����B���������������,���+�_�8�1���������c�����c���Ǣ(�\�M�1���F�r
�Et���Ӹz™g��<�j}-���k��������������5�eM�r�ʦ$�Y�F�������Q����6��������������E�mx+�R�9��������#oD8�h���,�^�����s-�?�H���I�s,�[@�j����A��߰���BV�x�OH�oB�l0�a=�k����3�����Y/�����فŞ����5����@�ί������Ý�D�Ty+�>���o���MN�y�?�;1�^!�N�A�;�<�=�������������(�[����=�����������7�>��ʐ���<����;������ʨ�3���J�������71x���J�����������d�������������Q|c������k�������a���?|ǝT�q�D���1�`7�h����=�9����;�˽v��vŘ�������ǥ�ƨ����K;�j?�o�T�Ayƚ@�iF�n����;poo�P#c>	�D�=1�c3�d���?������!�XMP DataXMP<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.0-c060 61.134777, 2010/02/12-17:32:00        "> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmp:CreatorTool="Adobe Photoshop CS5 Windows" xmpMM:InstanceID="xmp.iid:7A4390B4168911E08B269CE99005B22F" xmpMM:DocumentID="xmp.did:7A4390B5168911E08B269CE99005B22F"> <xmpMM:DerivedFrom stRef:instanceID="xmp.iid:7A4390B2168911E08B269CE99005B22F" stRef:documentID="xmp.did:7A4390B3168911E08B269CE99005B22F"/> </rdf:Description> </rdf:RDF> </x:xmpmeta> <?xpacket end="r"?>�������������������������������������������������������������������������������������������������������������������������������~}|{zyxwvutsrqponmlkjihgfedcba`_^]\[ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210/.-,+*)('&%$#"! 

	!��,�(��	H�����ݘ֍�Ç#J�H��ŋ!"��� C��o�)I(S�\ɲ�˗0c�dy��"s�%ŵ~@�
J��ѣH�*-j*ŷv?tJ5ȧ΃��Ji��uEQ�`KyEV���+ʊ-���צ�pN���
)�4���7DQ�򥁔`���%��`���|d��R�J̕���(�)�0�F�4i3MQ(�iӉ�0
����x�(z��j��
�no3���%���=m����ر;�����]ƈ��w	(U�	zoG.��%z&�W���\$�{�`��Ƞw]5k%����
U��4�wB�"�
��KP�X��
���)D��3�\E]�~p{Y-�@�FH�
��0�Kx������Bd!�	�
=S�.�Ti�XfYeѼ1�X�h`@�3��cQ��ӣ�(T���#�
��ȇC��?9���*8j衈&Z�"�P!E��f�E=�9T
xѣ?N�IT)}4��':�CIxs�Ac�P��������뮼��+@#�-+L��ed��^	@v����Ĺ�2�ׂ�
�j�˳�=��'B���»(������K01�`�u���`�S�dwB�Q�+v��

���Q�l�^V�7��}"0�/��RL �ԫ��IH�	fW'td�0����{���&vNp��
U�6-|z]��6��J�\P
$����׺֢1g��
����׵`t��$���y��Q0p�0t�$�n=�r5
^����`�܊0��dw)�D�� �wP'^��@nv"��=�p�Q~��� ޏ�H�J+�$�+*�����Hc�+��B��yd]P��5rx�#<��0,��H��E�����N��=�9SA����
,��/��hC�T(�y��� ���!	�>�'�6�'pЀ�v'ؑ�Cz��`���+�� J1�Y��a�40��p��� ��=�b�kx�� �a����
%���Q,f�	���f��)���	����b,��-z��
@t=XB'�؃��C��s�jd�	:���b��:����9p�(�Cc��Y�Є�K/�
��p��R�u\��J�*AݻN�g�@:q���!���<�1D�2�!��##$J�7�R�`�X�YV��JC=x�P�=Hm�wbv��
�F� �F��oƼ҈�L���&mw�
�B���H�

���(xE0pUڱ�C�A>L��mAb�����3��UA3��=fgj`_?�9��"yC�Z
\ 
5��7I�Ev���=��*��
�6X�8
����xz&�ͅ�
�L�>'���"�tA-* �R��V��~*N�(A��Cυ��NBƒ��!��
	��k�X�ɬ�S���Bds�`,b�M��H�xb���5��qVxJ�Қ����fé���0�F/��A�HM�b,lV�9�;����@0H PS�c2X�OY	T�`�@x���B�lvF 

x����'x���5X<�`VV�1��rE	sk��\��
$|X+n��=��I�ܶ^筄��vc]A�@9/@�
���u} �%
�0P�"`R��f�2�t�{�BqCH`
]H[s0DՀ8<�kp	��	F�Go %�ѓA�<[��
����0 >�&��bS�C
f�As�BW���,�-La�RP��|xG#�<yP
=����@���3d�
<X5
DT<3�BCW�%^��=(�>X�`�n
d��8����e��;F-���O$
�h	�(�^���J|́,��-�%`�; I���&�|�u@{��6�]��Aۿ�5�Q���x��_�
��Z�[ �ЃR|B�HB ��)�B$��
@�4'x�N�Ȕ��_�Q�@��%��+ޏk����G�Ю���C���J���>�;B�1�Q<��8Ϲ�w���@:�M��B c�L�+T$
�0�)(l���!��8�9Q�a ��`{�N�����hO��3�v����p������#V�2
�0��s��eI\B��D�p`�T�X`��'?���ϼ�7��{���	Fo>���O�a�Ȏ
�n*d�2`��
@�)୊chFE����@H���|� Џ�<��Ͼ����W�+��O��x�������D���O����w������_�;mod_bgmax.xml000060400000024414152455312730007233 0ustar00<?xml version="1.0" encoding="UTF-8"?>
<extension type="module" version="3.0" client="site" method="upgrade">
    <name>BgMax</name>
    <version>4</version>
    <updateDate>14-09-2019</updateDate>
    <creationDate>17-03-2011</creationDate>
    <author>LMC-lomart</author>
    <authoremail>lomart@lomart.fr</authoremail>
    <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
    <description>BGMAX_DESC</description>
    <description2>merci à www.webbricks.org pour son javascript bgmax</description2>
    <files>
        <filename>mod_bgmax.xml</filename>
        <filename module="mod_bgmax">mod_bgmax.php</filename>
        <filename>index.html</filename>
        <filename>helper.php</filename>
        <filename>bgMax.min.js</filename>
        <filename>bgMax.gif</filename>
        <filename>tmpl/default.php</filename>
        <filename>tmpl/index.html</filename>
        <folder>elements</folder>
        <folder>language</folder>
    </files>
    <config>
        <fields name="params" >
            <fieldset name="basic" addfieldpath="/modules/mod_bgmax/elements/">
                <field name="bgmaxDebug" type="list" default="0" label="Debug" description="DEBUG_DESC">
                    <option value="0">DEBUG_NO</option>
                    <option value="1">DEBUG_YES</option>
                    <option value="2">DEBUG_CONNECT</option>
                </field>

                <field type="xtitle" title="IMG_TITRE"  subtitle="IMG_NOTE" />
                <field name="image_path" type="media"
                       hide_default="1"  size="40"
                       label="IMAGE" description="IMAGE_DESC" />
                <field name="image_url" type="text"  size="40"
                       label="URL" description="URL_DESC" />
                <field name="RandomFolder" type="folderlistmakedir" default=""
                       label="RANDOM" description="RANDOM_DESC" directory="images/bgmax" hide_default="true" />

                <field type="xnote" note="RAMDOM_INFO" style="color:blue" />

                <field name="bodyColor" type="color" label="BODYCOLOR" description="BODYCOLOR_DESC" />
                <field name="bodyColorAuto" type="radio" default="0" label="BODYCOLORAUTO"
                       description="BODYCOLORAUTO_DESC" class="btn-group radio btn-group-toggle">
                    <option value="0">JNO</option>
                    <option value="1">JYES</option>
                </field>
                <field type="xnote" note="COLORAUTOYES" style="color:red" />

				; =================== taille et position
				
                <field type="xtitle" title="POS_TITRE" />
                <field name="mode" type="list" default="max" label="MODE"
                       description="MODE_DESC">
                    <option value="max">MODE_MAX</option>
                    <option value="full">MODE_FULL</option>
                    <option value="no-repeat">MODE_NONE</option>
                    <option value="repeat">MODE_REPEAT</option>
                    <option value="repeat-x">MODE_REPEATX</option>
                    <option value="repeat-y">MODE_REPEATY</option>
                    <option value="cover">MODE_COVER</option>
                </field>
                <field name="position" type="list" default="absolute" label="POSITION"
                       description="POSITION_DESC">
                    <option value="absolute">POSITION_ABS</option>
                    <option value="fixed">POSITION_FIX</option>
                </field>
                <field name="align" type="list" default="center" label="ALIGN"
                       description="ALIGN_DESC">
                    <option value="left">ALIGN_LEFT</option>
                    <option value="center">ALIGN_CENTER</option>
                    <option value="right">ALIGN_RIGHT</option>
                </field>
                <field name="vertAlign" type="list" default="top" label="VERTALIGN"
                       description="VERTALIGN_DESC">
                    <option value="top">VALIGN_TOP</option>
                    <option value="center">VALIGN_CENTER</option>
                    <option value="bottom">VALIGN_BOTTOM</option>
                </field>
				
                <field type="xnote" note="JS_ONLY" style="color:blue;" />
                <field name="enlarge" type="radio" default="1" label="ENLARGE"
                       description="ENLARGE_DESC" class="btn-group radio btn-group-toggle">
                    <option value="0">JNO</option>
                    <option value="1">AUTHORIZED</option>
                </field>
                <field name="reduce" type="radio" default="0" label="REDUCE"
                       description="REDUCE_DESC" class="btn-group radio btn-group-toggle">
                    <option value="0">JNO</option>
                    <option value="1">AUTHORIZED</option>
                </field>
                <field name="zIndex" type="text" default="-1" size="5"
                       label="ZINDEX" description="ZINDEX_DESC" />
                <field name="ffHack" type="text" default="0px" size="5"
                       label="FFHACK" description="FFHACK_DESC" />

				; ==================== FONDU
                <field type="xtitle" title="FADE_TITRE" subtitle="FADE_SOUTITRE"/>
                <field name="fadeActive" type="radio" default="0" label="FADEACTIVE" description="FADEACTIVE_DESC" class="btn-group radio btn-group-toggle">
                    <option value="0">JNO</option>
                    <option value="1">JYES</option>
                </field>
                <field name="fadeAfter" type="text" default="0" size="5"
                       label="FADEAFTER" description="FADEAFTER_DESC" />
                <field name="fadeDuration" type="text" default="1000"  size="5"
                       label="FADEDURATION" description="FADEDURATION_DESC" />
                <field name="fadeFrameRate" type="text" default="30" size="5"
                       label="FADEFRAMERATE" description="FADEFRAMERATE_DESC" />
				; ===================== SELECTEUR
                <field type="xtitle" title="CONTENT_TITRE" subtitle="CONTENT_SOUTITRE" />
                <field name="contentSelector" type="text" default=""  size="60"
                       label="CONTENTSELECTOR" description="CONTENTSELECTOR_DESC" />
                <field name="contentColor" type="color"
                       label="CONTENTCOLOR" description="CONTENTCOLOR_DESC" />
                <field name="contentOpacity" type="text" default="100%"  size="10"
                       label="CONTENTOPACITY" description="CONTENTOPACITY_DESC" />
                <field name="contentWidth" type="text" default=""  size="10"
                       label="CONTENTWIDTH" description="CONTENTWIDTH_DESC" />
                <field name="contentAlign" type="list" default="center"
                       label="CONTENTALIGN" description="CONTENTALIGN_DESC">
                    <option value="left">ALIGN_LEFT</option>
                    <option value="center">ALIGN_CENTER</option>
                    <option value="right">ALIGN_RIGHT</option>
                </field>
				; ======================== CODE
                <field type="xtitle" title="HEAD_TITRE" subtitle="HEAD_SOUTITRE" />
                <field name="headOther" type="textarea" filter="raw" disabled="false" default="" rows="8" cols="60" label="HEADOTHER" description="HEADOTHER_DESC" />
                <field name="headFile" type="filelist" label="HEADFILE" description="HEADFILE_DESC" directory="images/bgmax" filter="\.txt" hide_default="true" />
				; ========================= CONDITION
                <field type="xtitle" title="FILTER_TITRE" subtitle="FILTER_SOUTITRE"/>
                <field name="filterMobile" type="list" default="always"
                       label="FILTER_MOBILE_LABEL" description="FILTER_MOBILE_DESC">
                    <option value="always">FILTER_ALWAYS</option>
                    <option value="mobile">FILTER_MOBILE</option>
                    <option value="desktop">FILTER_DESKTOP</option>
                </field>
                <field name="filterContent" type="textarea" default="" rows="4" cols="60" label="FILTER_LABEL" description="FILTER_DESC" />
                <field type="xnote" note="FILTER_NOTE"/>

				;========================= PERIODE
                <field type="xtitle" title="PERIOD_DESC" subtitle="PERIOD_SOUDESC" />
                <field type="xnote" note="PERIOD_DESC_2" />
                <field name="debDate" type="text" default=""
                       label="DEBDATE"  />
                <field name="debTime" type="text" default="" size="5" format="99:99"
                       label="DEBTIME"  />
                <field name="endDate" type="text" default=""
                       label="ENDDATE" />
                <field name="endTime" type="text" default="" size="5" format="99:99"
                       label="ENDTIME" />
                <field name="period_mode" type="radio" default="0" label="PERIOD_MODE" description="PERIOD_MODE_DESC" class="btn-group radio btn-group-toggle">
                    <option value="0">JNO</option>
                    <option value="1">JYES</option>
                </field>

            </fieldset>
            <fieldset name="advanced">
                <field
                    name="cache"
                    type="list"
                    label="COM_MODULES_FIELD_CACHING_LABEL"
                    description="COM_MODULES_FIELD_CACHING_DESC"
                    default="1"
                >
                    <option value="1">JGLOBAL_USE_GLOBAL</option>
                    <option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
                </field>

                <field
                    name="cache_time"
                    type="number"
                    label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
                    description="COM_MODULES_FIELD_CACHE_TIME_DESC"
                    default="900"
                />

                <field
                    name="cachemode"
                    type="hidden"
                    default="static"
                >
                    <option value="static"></option>
                </field>
            </fieldset>
        </fields>
    </config>
    <updateservers>
        <server type="extension" name="bgmax" priority="1">https://lomart.fr/files/bgmax/bgmax_update.xml
        </server>
    </updateservers>

</extension>mod_bgmax.php000060400000001407152455312730007217 0ustar00<?php
/*------------------------------------------------------------------------
# mod_bgmax - bgMax
# ------------------------------------------------------------------------
# author    lomart
# copyright : Copyright (C) 2011 lomart.fr All Rights Reserved.
# @license  : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Website   : http://lomart.fr
# Technical Support:  Forum - http://forum.joomla.fr
-------------------------------------------------------------------------*/
// no direct access
defined( '_JEXEC' ) or die( ';)' );

// Include the syndicate functions only once
require_once (dirname(__FILE__).DIRECTORY_SEPARATOR.'helper.php');

$bgmax_info = modBgMaxHelper::getBgMaxInfos($params, $module->title);

require(JModuleHelper::getLayoutPath('mod_bgmax'));
language/fr-FR/fr-FR.mod_bgmax.sys.ini000060400000004256152455312730013443 0ustar00;bgMAX by LOMART
MOD_BGMAX="mod_bgMAX"
BGMAX_DESC="Ce module permet d'afficher une image de fond qui s'adapte à la taille de la fenêtre.<img style='float:right;margin-left:10px;' src='../modules/mod_bgmax/bgMax.gif'/><br />Ecrit par <a href='http://forum.joomla.fr/member.php?58225-lomart'>LOMART</a>, il implante un javascript conçu par <a href='http://www.webbricks.org/bricks/bgMax/'>www.webbricks.org</a><div style='clear:both;'></div>Ce module doit être activé en position 'DEBUG' ou tout autre qui permet d'insérer le code en fin de page.<br />Bien que conçu pour fonctionner avec le JA Framework T3 ou JA-Purity, il permet d'utiliser d'autres templates.<br /><b>Attention:</b> vider le cache avant d'actualiser l'affichage.<br /><br /><b>Exemple de réglage selon le template utilisé</b><table style='border:1px solid #666; border-collapse:collapse; text-align:left;' border='1'><tr style='color:#FFF;background:#333;text-align:center;'><td>Template</td><td>Sélecteur contenu</td><td>Code complémentaire</td><td>Position</td></tr><tr><td>protostar<br />(Joomla 3.0)</td><td>.container</td><td>-</td><td>debug</td></tr><tr><td>JAT3</td><td>#ja-wrapper</td><td>-</td><td>debug</td></tr><tr><td>Beez2-Nature</td><td>#all, #contentarea</td><td>#contentarea, #contentarea2 {background-image:none !important;} /* supprime ombre en haut du contenu */<br />#footer-outer {width:980px;margin:0 auto;} /* ajuste pied de page*/</td><td>position-14</td></tr><tr><td>Beez2-Personnel</td><td>#all, #header, #contentarea</td><td>#contentarea, #contentarea2 {background-image:none !important;} /* supprime ombre en haut du contenu */<br />.items-row {background-color: transparent !important;} /* supprime fond des pavés de texte*/</td><td>position-14</td></tr><tr><td>Beez5</td><td>#header, #contentarea</td><td>#contentarea, #contentarea2 {background-image:none !important;} /* supprime ombre en haut du contenu */</td><td>debug</td></tr><tr><td>cassiopeia<br>(Joomla 4)</td><td>.container-component</td><td>.container-component{padding-left:10px;padding-right:10px} <br>.header-shape-bottom{display:none}</td><td>debug</td></tr></table>Consulter <a href='http://lomart.fr'>lomart.fr</a> pour d'autres configurations."language/fr-FR/index.html000060400000000054152455312730011242 0ustar00<html><body bgcolor="#FFFFFF"></body></html>language/fr-FR/fr-FR.mod_bgmax.ini000060400000031075152455312730012625 0ustar00;bgMAX by LOMART
MOD_BGMAX="mod_bgMAX"
BGMAX_DESC="Ce module permet d'afficher une image de fond qui s'adapte à la taille de la fenêtre.<img style='float:right;margin-left:10px;' src='../modules/mod_bgmax/bgMax.gif'/><br />Ecrit par <a href='http://forum.joomla.fr/member.php?58225-lomart'>LOMART</a>, il implante un javascript conçu par <a href='http://www.webbricks.org/bricks/bgMax/'>www.webbricks.org</a><div style='clear:both;'></div>Ce module doit être activé en position 'DEBUG' ou tout autre qui permet d'insérer le code en fin de page.<br />Bien que conçu pour fonctionner avec le JA Framework T3 ou JA-Purity, il permet d'utiliser d'autres templates.<br /><b>Attention:</b> vider le cache avant d'actualiser l'affichage.<br /><br /><b>Exemple de réglage selon le template utilisé</b><table style='border:1px solid #666; border-collapse:collapse; text-align:left;' border='1'><tr style='color:#FFF;background:#333;text-align:center;'><td>Template</td><td>Sélecteur contenu</td><td>Code complémentaire</td><td>Position</td></tr><tr><td>protostar<br />(Joomla 3.0)</td><td>.container</td><td>-</td><td>debug</td></tr><tr><td>JAT3</td><td>#ja-wrapper</td><td>-</td><td>debug</td></tr><tr><td>Beez2-Nature</td><td>#all, #contentarea</td><td>#contentarea, #contentarea2 {background-image:none !important;} /* supprime ombre en haut du contenu */<br />#footer-outer {width:980px;margin:0 auto;} /* ajuste pied de page*/</td><td>position-14</td></tr><tr><td>Beez2-Personnel</td><td>#all, #header, #contentarea</td><td>#contentarea, #contentarea2 {background-image:none !important;} /* supprime ombre en haut du contenu */<br />.items-row {background-color: transparent !important;} /* supprime fond des pavés de texte*/</td><td>position-14</td></tr><tr><td>Beez5</td><td>#header, #contentarea</td><td>#contentarea, #contentarea2 {background-image:none !important;} /* supprime ombre en haut du contenu */</td><td>debug</td></tr><tr><td>cassiopeia<br>(Joomla 4)</td><td>.container-component</td><td>.container-component{padding-left:10px;padding-right:10px} <br>.header-shape-bottom{display:none}</td><td>debug</td></tr></table>Consulter <a href='http://lomart.fr'>lomart.fr</a> pour d'autres configurations."
DEBUG="Débug"
DEBUG_DESC="Affiche des informations en front-end pour faciliter la recherche d'un problème."
IMG_TITRE="IMAGE ET COULEUR DE FOND DE PAGE"
IMG_NOTE="Indiquer l'image dans une zone ci-dessous (dans l'ordre de priorité) ou aucune pour uniquement un fond de couleur."
IMAGE="Image de fond"
IMAGE_DESC="Nom et chemin de l'image utilisée pour le fond."
URL="URL vers image"
URL_DESC="URL sous la forme http://..."
RANDOM="Au hasard dans dossier"
RANDOM_DESC="A chaque changement de page, une image sera choisie au hasard dans un <b>sous-dossier</b> de 'images/bgmax'. <br />Ce dossier doit être crée par FTP ou Gestion des médias avant utilisation"
RAMDOM_INFO="Pour la fonction aléatoire, vous devez créer un sous-dossier avant utilisation et ne pas choisir d'image de fond"
BODYCOLOR="Couleur sous image"
BODYCOLOR_DESC="Couleur qui sera utilisée pour remplir le fond en dehors d'image. Il est conseillé de choisir une couleur qui permette un fondu avec l'image. C'est également cette couleur qui apparaît en premier lors d'un fondu."
BODYCOLORAUTO="ou couleur image"
BODYCOLORAUTO_DESC="Il est possible de définir automatiquement la couleur de fond comme celle du pixel situé en bas à gauche de l'image."
COLORAUTOYES="<em>Ne pas utiliser avec images transparentes et certains JPEG</em>"
POS_TITRE="<b>TAILLE ET POSITION DE L'IMAGE</b>"
MODE="Mode d'ajustement"
MODE_DESC="Adaptation de l'image à la fenêtre<br /><i><u>Avec utilisation du javascript:</u></i><br /><b>MAX</b> : ajuste la largeur à celle de la fenêtre. Si votre image est plutôt carrée, elle remplira l'intégralité de la fenêtre. Vous pouvez jouer sur la justification verticale pour définir le cadrage.<br /><b>FULL</b> : l'intégralité de l'image sera visible en la réduisant si nécessaire et en ajoutant des marges. <br /><i><u>Sans utilisation du javascript (CSS uniquement):</u></i><br /><b>aucun / no-repeat</b> : aucune répétition <br /><b>repeat-x</b> : répétition horizontale <br /><b>repeat-y</b> : répétition verticale<br /><b>repeat</b> : répétition horizontale et verticale<br /><b>cover</b> : Image recadrée pour remplir toute la surface du navigateur"
MODE_NONE="AUCUN (CSS, Javascript non utilisé)"
MODE_MAX="MAX: largeur fenêtre (JS)"
MODE_FULL="FULL: largeur et hauteur fenêtre (JS)"
MODE_REPEAT="REPEAT: Image répétée en X et Y (CSS)"
MODE_REPEATX="REPEAT-X: Image répétée horizontalement (CSS)"
MODE_REPEATY="REPEAT-Y: Image répétée verticalement (CSS)"
MODE_COVER="COVER: Image recadrée pour remplir toute la surface du navigateur (CSS)"
JS_ONLY="Paramètres ci-dessous valides uniquement en mode MAX ou FULL"
ENLARGE="Agrandissement"
ENLARGE_DESC="Autorise ou interdit d'agrandir l'image au-delà de ses dimensions normales.<br /><em>Uniquement si MAX ou FULL</em>"
REDUCE="Réduction"
REDUCE_DESC="Autorise ou interdit la réduction de l'image en dessous de ses dimensions normales.<br /><em>Uniquement si MAX ou FULL</em>"
POSITION="Position"
POSITION_DESC="Positionnement CSS de l'image."
POSITION_ABS="absolute: se déplace verticalement avec le contenu"
POSITION_FIX="fixed: ne se déplace pas avec le contenu"
ALIGN="Alignement horizontal"
ALIGN_DESC="Alignement horizontal de l'image, par rapport à la largeur de la page"
ALIGN_LEFT="Alignée à gauche"
ALIGN_CENTER="Centrée dans la page"
ALIGN_RIGHT="Alignée à droite"
VERTALIGN="Alignement vertical"
VERTALIGN_DESC="Alignement vertical de l'image par rapport à la hauteur de la fenêtre"
VALIGN_TOP="Haut de la page"
VALIGN_CENTER="Centrée sur la page"
VALIGN_BOTTOM="Bas de page"
ZINDEX="zIndex"
ZINDEX_DESC="Profondeur css de l'image.<br /><em>Uniquement si MAX ou FULL</em>"
FFHACK="Décalage top"
FFHACK_DESC="Dans les anciennes versions de Firefox, l'image peut ne pas être calée en haut de la page. On pourra alors indiquer un décalage avec cette option.<br /><em>Uniquement si MAX ou FULL</em>"
FADE_TITRE="APPARITION EN FONDU DE L'IMAGE"
FADE_SOUTITRE="<b style='color:yellow'>mode MAX ou FULL uniquement</b>"
FADEACTIVE="Effet de fondu"
FADEACTIVE_DESC="Faire apparaitre l'image de fond en fondu.<br /><em>Uniquement si MAX ou FULL</em>"
FADEAFTER="Délai apparition (ms)"
FADEAFTER_DESC=" l'image apparaît en fondu, si le chargement est terminé après le délai indiqué en millisecondes.<br /><b>0</b>: force le fondu sur toutes les pages.<br /><b>200 ou +</b>: l'image de fond apparait en fondu uniquement lors du premier affichage. L'image étant en cache, les affichages suivants seront forcement plus court."
FADEDURATION="Durée fondu (ms)"
FADEDURATION_DESC="Durée de l'animation, en millisecondes."
FADEFRAMERATE="Etapes/sec"
FADEFRAMERATE_DESC=" nombre d'étapes par secondes pour l'animation."
CONTENT_TITRE="PARAMETRE DU BLOC DE CONTENU"
CONTENT_SOUTITRE="ou comment adapter la largeur et la couleur pour voir le fond !"
CONTENTSELECTOR="Sélecteur CSS contenu"
CONTENTSELECTOR_DESC="Les informations fournies dans ce bloc permettent d'adapter le bloc contenant les données.<br /><em> Pour le JA Framework T3, il s'agit de </em><code>#ja-wrapper</code><br />Pour appliquer les règles à plusieurs sélecteurs, indiquez leurs noms séparés par des virgules (selon les normes du CSS)<br />En fonction de la conception du template, cette section peut ne pas fonctionner totalement."
CONTENTCOLOR="Couleur du fond"
CONTENTCOLOR_DESC="Couleur à utiliser pour le fond du contenu."
CONTENTOPACITY="Opacité du fond"
CONTENTOPACITY_DESC="Indiquer le pourcentage d'opacité sous la forme 50 ou 50% <br />(0%=transparent, 100%=image de fond invisible).<br />Avec certains templates, ce paramétre fonctionne mal."
CONTENTWIDTH="Largeur du contenu"
CONTENTWIDTH_DESC="Largeur du bloc central de contenu sous la forme 850px ou 90%."
CONTENTALIGN="Alignement du contenu"
CONTENTALIGN_DESC="Position horizontale du bloc de contenu. Ce paramètre n'est pris en compte que si une largeur est indiquée."
HEAD_TITRE="CODE COMPLEMENTAIRE DANS HEAD"
HEAD_SOUTITRE="ou comment personnaliser en détail votre page !"
HEADOTHER="Style complémentaire :"
HEADOTHER_DESC="Cette zone permet de spécifier du code qui sera ajouté dans la partie HEAD de la page générée. Cela peut être utile pour spécifier des adaptations de couleur pour d'autres blocs de la page en fonction des tonalités de l'image de fond.<br /><b>Note: le code sera inclus dans des balises &lt;/style&gt;</b>"
HEADFILE="Fichier à inclure"
HEADFILE_DESC="Sélectionner un fichier (*.txt) dans le dossier '/images/bgmax/' qui contient du code à inclure sans interprétation dans la partie HEAD de la page générée.<br /><em>Cette fonctionnalité permet de contourner l'impossibilité de saisie de code  dans les paramétres de Joomla 1.6.</em>"
AUTHORIZED="Autorisé"
PERIOD_DESC="PERIODE D'AFFICHAGE"
PERIOD_SOUDESC="Créer autant de modules que de périodes souhaitées"
PERIOD_DESC_2="<b>Dates</b><br>JJ-MM-AAAA : date exacte<br>JJ-MM : jour et mois (périodicité annuelle)<br>JJ : jour (périodicité mensuelle)<br>X : 1=dimanche, ..., 7=samedi (périodicité hebdomadaire)<br>vide: sans critère de date ou la date du jour si une heure est indiquée<br><b>Attention: la date de début et de fin doivent être au même format.</b><br><br><b>Heures</b><br>HH:MM : périodicité journalière si aucune date n'est indiquée ou dissocier date-heure sur oui"
DEBDATE="Date début"
DEBTIME="Heure début"
ENDDATE="Date fin"
ENDTIME="Heure fin"
DEBDATE_DESC="<br>JJ-MM-AAAA : date exacte<br>JJ-MM : tous les ans à partir du jour et mois<br>JJ : tous les mois à partir du (01-31)<br>X : toutes les semaines à partir du X=1 (dimanche) au X=7 (samedi)<br><br><b>Attention: la date de fin doit être au même format.</b>"
DEBTIME_DESC="Heure de début (HH:MM)"
ENDDATE_DESC="<br>JJ-MM-AAAA : date exacte<br>JJ-MM : tous les ans jusqu'au jour et mois<br>JJ : tous les mois jusqu'au (01-31)<br>X : toutes les semaines jusqu'au X=1 (dimanche) au X=7 (samedi)<br><br><b>Attention: la date de début doit être au même format.</b>"
ENDTIME_DESC="Heure de fin (HH:MM)"
PERIOD_MODE="Dissocier date-heure"
PERIOD_MODE_DESC="<b>NON</b>: la période commence et finit aux dates et heures indiquées. exemple: du vendredi à 10h au lundi à 12h, soit 74h<br><b>OUI</b>: la période commence et finit aux heures indiquées pour les dates spécifiées. exemple: de 10h à 12h du vendredi au lundi, soit 4 fois 2h"
FILTER_TITRE="AFFICHAGE CONDITIONNEL"
FILTER_SOUTITRE="Pour changer de fond en fonction du contenu et du contenant"
FILTER_MOBILE_LABEL="Affichage responsive"
FILTER_MOBILE_DESC="Cette instance du module peut être affichée uniquement sur les smartphones et tablettes, uniquement sur les ordinateurs de bureau"
FILTER_ALWAYS="Toujours (mobile+desktop)"
FILTER_MOBILE="Mobile uniquement"
FILTER_DESKTOP="Desktop uniquement"
FILTER_LABEL="Conditions"
FILTER_DESC="Le fond défini par ce module ne sera affiché que si une des lignes remplit toutes les conditions. Exemple:<br /><code>com_xmap<br />catid=3+menuid=2 </code><br />Affiche le fond si la page est affiché par le composant xmap ou est un article de la catégorie 3 affiché par le menu 2<br /><em>Utiliser le mode debug pour connaitre les critères</em>"
FILTER_NOTE="Critéres: catid=x, artid=x, menuid=x, view=article, layout=blog, nom composant, id=x<br /><em>Utiliser le mode debug pour connaitre les critères spécifiques à une page</em>"
;-PHP-
IMGNAME_ERROR="bgMax: impossible de determiner la couleur du fond de l'image<br />- format non reconnu. Autorisé: jpg/jpeg, gif, png<br />- le nom contient un espace<br />Pour les images JPG, essayer de l'enregistrer sous un autre nom puis de la retransférer."
;---> STYLES POUR BLOC TITRE
STYLE_BOX="color:#EEE;background-color:#333;margin:10px 0;padding:10px 15px;border-left:10px solid #069; width:90%;border-radius:10px;"
STYLE_RED="padding:5px; margin:0 100px;border:1px red dashed;"
STYLE_HR="border-top:2px groove #bbb; width:500px;"
;======= SPECIFIC ADD FOR LANGUAGE : en-GB
DEBUG_NO="Non"
DEBUG_YES="Toujours"
DEBUG_CONNECT="Uniquement si connecté"
IMAGELIST="ou /images/bgmax"
IMAGELIST_DESC="Il est également possible de choisir dans cette liste qui contient les images du dossier \images\stories\. 'Non utilisé' permet de forcer la non utilisation d'une image."
NO_LIB="Non"
YES_LIB="Oui"
;=== Pour fontend
INFO_DEBUG="<div style='text-align:right;color:#666; font-weight:normal;'>Le texte ci-dessous est une information pour aider à la résolution d'un problème avec le module BGMAX. <br /><i>Pour ne plus l'afficher, dans la configuration du module, mettre le paramètre 'Débug' = Non</i><br /></div>"language/en-GB/en-GB.mod_bgmax.ini000060400000024047152455312730012556 0ustar00;bgMAX by LOMART
MOD_BGMAX="mod_bgMAX"
BGMAX_DESC="This module will display a background image that fits the entire size of the window.<img style='float:right;margin-left:10px;' src='../modules/mod_bgmax/bgMax.gif'/><br />Written by <a href='http://lomart.fr'>LOMART</a> implements a javascript designed by <a href='http://www.webbricks.org/bricks/bgMax/'>www.webbricks.org</a><div style='clear:both;'></div>This module must be activated in  'DEBUG' position or any other that allows you to insert the code in footer.<br />Although designed to work with the Framework T3 JA or JA-Purity, it allows use other templates.<br /><b>Attention</b> empty the cache before refreshing the display.<br /><br /><b>Setting example according to the template</b><table style='border:1px solid #666; border-collapse:collapse; text-align:left;' border='1' ><tr style='color:#FFF;background:#333;text-align:center;'><td>Template</td><td>Content selector</td><td>Complementary code</td><td>Position</td></tr><tr><td>protostar<br />(Joomla 3.0)</td><td>.container</td><td>-</td><td>debug</td></tr><tr><td>JAT3</td><td>#ja-wrapper</td><td>-</td><td>debug</td></tr><tr><td>Beez2-Nature</td><td>#all, #contentarea</td><td>#contentarea, #contentarea2 { background-image:none !important; }<br />#footer-outer { width:980px;margin:0 auto; }</td><td>position-14</td></tr><tr><td>Beez2-Personnel</td><td>#all, #header, #contentarea</td><td>#contentarea, #contentarea2 { background-image:none !important; }<br />.items-row { background-color: transparent !important; }</td><td>position-14</td></tr><tr><td>Beez5</td><td>#header, #contentarea</td><td>#contentarea, #contentarea2 { background-image:none !important; } </td><td>debug</td></tr><tr><td>cassiopeia<br>(Joomla 4)</td><td>.container-component</td><td>.container-component{padding-left:10px;padding-right:10px} <br>.header-shape-bottom{display:none}</td><td>debug</td></tr></table>Visit <a href='http://lomart.fr'> lomart.fr </a> for other configurations."
DEBUG="Debug"
DEBUG_DESC="Display information on the site to solve a problem"
DEBUG_NO="No"
DEBUG_YES="Always"
DEBUG_CONNECT="Only connected"
IMG_TITRE="IMAGE AND BACKGROUND COLOR"
IMG_NOTE="Indicate the image in an area below (according priority order) or never to use a colored background."
IMAGE="Background-image"
IMAGE_DESC="Name and path of the image used for the background."
URL="URL"
URL_DESC="URL http://website.com/image.jpg"
IMAGELIST="or /images/bgmax"
IMAGELIST_DESC="It is also possible to select from this list that contains the images in the folder \ images \ stories \.  'Not used' to force non-use of an image."
RANDOM="Random in folder"
RANDOM_DESC="At each change of page, the image will be chosen at random in a <b> subfolder</b> 'images/bgmax'. <br /> This file must be created by FTP or Media Manager before use"
RAMDOM_INFO="Random: you must create a subfolder before use and do not choose a background image"
BODYCOLOR="Color under image"
BODYCOLOR_DESC="Color that will be used to fill the background image outside. It is advisable to choose a color that allows a fade with the image. This is also the color that appears first with fading."
BODYCOLORAUTO="or color-image (auto)"
BODYCOLORAUTO_DESC="It is possible to automatically defines the background color as the pixel at the bottom left of the image."
COLORAUTOYES="Do not use with transparent-images and some JPEG"
POS_TITRE="<b>IMAGE SIZE AND POSITION</b>"
MODE="Adjustment mode"
MODE_DESC="max : width only<br/>full : width and height <br/>no-repeat, cover, repeat-x, repeat-y & repeat: conventional rules CSS; javascript is not used. Only parameters with a * are valid."
MODE_NONE="NO-REPEAT (CSS, Javascript not use)"
MODE_MAX="MAX: screen wide (JS)"
MODE_FULL="FULL: width and height of window (JS)"
MODE_REPEAT="REPEAT: Repeat image (X and Y) (CSS)"
MODE_REPEATX="REPEAT-X: Repeat image horizontaly (CSS)"
MODE_REPEATY="REPEAT-Y: Repeat image vertically (CSS)"
MODE_COVER="COVER: Cropped image to fill the entire surface of the browser (CSS)"
JS_ONLY="Following parameters valid only mode MAX or FULL"
ENLARGE="Enlarge"
ENLARGE_DESC="Allows or prohibits enlarge beyond its normal dimensions.<br /><em>Only in mode MAX or FULL</em>"
REDUCE="Reduce"
REDUCE_DESC="Allows or prohibits reducing the image below its normal dimensions.<br /><em>Only in mode MAX or FULL</em>"
POSITION="Position"
POSITION_DESC="CSS Position of image."
POSITION_ABS="absolute: moves vertically with content"
POSITION_FIX="fixed: dont move with content"
ALIGN="Horizontal Alignment"
ALIGN_DESC="Horizontal alignment of the image in width of the page."
ALIGN_LEFT="Left alignment"
ALIGN_CENTER="Centered in the page"
ALIGN_RIGHT="Right alignment"
VERTALIGN="Vertical alignment "
VERTALIGN_DESC="Vertical alignment of the image relative to the height of the window"
VALIGN_TOP="Top of page"
VALIGN_CENTER="Centered in the page"
VALIGN_BOTTOM="Bottom of page"
ZINDEX="zIndex"
ZINDEX_DESC="rule css : z-index of image.<br /><em>Only in mode MAX or FULL</em>"
FFHACK="Top offset"
FFHACK_DESC="In older versions of Firefox, the image can not be wedged at the top of the page. We can then indicate a difference with this option.<br /><em>Only in mode MAX or FULL</em>"
FADE_TITRE="IMAGE FADDING"
FADE_SOUTITRE="<b style='color:yellow'>Only in mode MAX or FULL)</b>"
FADEACTIVE="Fade Effect"
FADEACTIVE_DESC="Bring up the background image to fade.<br /><em>Only in mode MAX or FULL</em>"
FADEAFTER="Fade delay (ms)"
FADEAFTER_DESC="Image fades in, if the load is finished after the time specified in milliseconds.<br /><b>0</b>: forces the melt on all pages.<br /><b>200 ou +</b>: the background image fades only in the first display. The image is in cache, the following displays will be necessarily shorter."
FADEDURATION="Fade duration (ms)"
FADEDURATION_DESC="Animation duration in milliseconds."
FADEFRAMERATE="Step/sec"
FADEFRAMERATE_DESC="Number of steps per second for animation."
CONTENT_TITRE="CONTENT BLOCK PARAMETERS"
CONTENT_SOUTITRE="or how define the width and color to see the background!"
CONTENTSELECTOR="Rule name CSS for content"
CONTENTSELECTOR_DESC="The information provided in this block are used to adapt the block containing data.<br /><em>For JA Framework T3, it is </em><code>#ja-wrapper</code><br />To apply the rules to several selectors, list their names separated by commas (according to the CSS)<br />Depending on the design of the template, this section might not fully work.<br/>"
CONTENTCOLOR="Background-color"
CONTENTCOLOR_DESC="Color to use for the background content."
CONTENTOPACITY="Background-opacity"
CONTENTOPACITY_DESC="Indicate the percentage of opacity as 50 or 50%."
CONTENTWIDTH="Content width"
CONTENTWIDTH_DESC="Width of the central block of content as 850px or 90%."
CONTENTALIGN="Content alignment"
CONTENTALIGN_DESC="Horizontal position of content block. This parameter is valid only if a width is defined."
HEAD_TITRE="COMPLEMENTARY CODE IN HEAD"
HEAD_SOUTITRE="or how to customize your page!"
HEAD_TITRE_NOTE="Note, enclose a statement of style by: <code style='font-size:130%;'>&lt;style type='text/css'&gt; &lt;/style&gt;</code>"
HEADOTHER="Supplementary code"
HEADOTHER_DESC="This area allows you to introduce code that will be added in the HEAD of the page. Is useful to specify an inline style for Internet Explorer or color adjustments for other blocks of the page based on the tone of the background image."
HEADFILE="File include"
HEADFILE_DESC="Select a file (*. txt) in the folder '/images/bgmax/' with code to include without interpretation in the HEAD of the generated page. <br /> This feature allows you to circumvent the impossibility code entry in the settings of Joomla 1.6. </ em>"
AUTHORIZED="authorized"

PERIOD_DESC="SCHEDULE"
PERIOD_SOUDESC="Create a module by desired period"
PERIOD_DESC_2="<b>Dates</b><br>DD-MM-YYYY : exact date<br>DD-MM : day and month (annual periodicity)<br>DD : day (monthly periodicity)<br>W : 1=sunday, ..., 7=saturday (weekly periodicity)<br>empty, without criteria date or the date of the day when a time is entered<br><b>Warning: the start date and end date must be the same format..</b><br><br><b>Hours</b><br>HH:MM : daily periodicity if no date is specified or separate date-time on yes."

DEBDATE="Start date"
DEBTIME="Start hour"
ENDDATE="End date"
ENDTIME="End hour"
PERIOD_MODE="Separate date-time"
PERIOD_MODE_DESC="<b>NO</b>: the period begins and ends on the dates and times indicated. eg: from Friday 10am to Monday 12pm (1x74h) <br><b>YES</b>: the period begins and ends at the times indicated for the specified dates. eg: from 10am to 12pm from Friday to Monday (4x2h)"
FILTER_TITRE="CONDITIONAL DISPLAY"
FILTER_SOUTITRE="To change the background depending on content"
FILTER_MOBILE_LABEL="Responsive display"
FILTER_MOBILE_DESC="This instance of the module can be displayed only on smartphones and tablets, only on desktop or both"
FILTER_ALWAYS="Always (mobile+desktop)"
FILTER_MOBILE="Mobile only"
FILTER_DESKTOP="Desktop only"

FILTER_LABEL="Criteria"
FILTER_DESC="The background defined by this module will be displayed only if a line meets all the requirements. Example: <br><code>com_xmap<br />catid=3+menuid=2 </code><br>Displays the background if the page is displayed by the component xMAP OR is an article of category 3 displayed by the menu 2"
FILTER_NOTE="Criteria: catid=x, artid=x, menuid=x, view=article, layout=blog, nom composant, id=x<br /><em>Use debug mode to know the specific criteria for a page.</em>"
;-PHP-
IMGNAME_ERROR="bgMax: impossible to determine the background color of the image<br />- unrecognized format. authorized : jpg/jpeg, gif, png<br />- name contains a space<br />For JPG images, try saving it under a different name and re-upload."
;---> STYLES POUR BLOC TITRE
STYLE_BOX="color:#EEE;background-color:#333;margin:10px 0;padding:10px 15px;border-left:10px solid #069; width:90%;border-radius:10px;"
STYLE_RED="padding:5px; margin:0 100px;border:1px red dotted;"
STYLE_HR="border-top:2px groove #bbb; width:500px;"
;=== Pour fontend
INFO_DEBUG="<div style='text-align:right;color:#666; font-weight:normal;'>The text below is an information to solve a problem with the module BGMAX. <br /><i>To not see, set the parameter 'Debug' = 'No' in module configuration,</i><br /></div>"language/en-GB/en-GB.mod_bgmax.sys.ini000060400000003674152455312730013376 0ustar00;bgMAX by LOMART
MOD_BGMAX="mod_bgMAX"
BGMAX_DESC="This module will display a background image that fits the entire size of the window.<img style='float:right;margin-left:10px;' src='../modules/mod_bgmax/bgMax.gif'/><br />Written by <a href='http://lomart.fr'>LOMART</a> implements a javascript designed by <a href='http://www.webbricks.org/bricks/bgMax/'>www.webbricks.org</a><div style='clear:both;'></div>This module must be activated in  'DEBUG' position or any other that allows you to insert the code in footer.<br />Although designed to work with the Framework T3 JA or JA-Purity, it allows use other templates.<br /><b>Attention</b> empty the cache before refreshing the display.<br /><br /><b>Setting example according to the template</b><table style='border:1px solid #666; border-collapse:collapse; text-align:left;' border='1' ><tr style='color:#FFF;background:#333;text-align:center;'><td>Template</td><td>Content selector</td><td>Complementary code</td><td>Position</td></tr><tr><td>protostar<br />(Joomla 3.0)</td><td>.container</td><td>-</td><td>debug</td></tr><tr><td>JAT3</td><td>#ja-wrapper</td><td>-</td><td>debug</td></tr><tr><td>Beez2-Nature</td><td>#all, #contentarea</td><td>#contentarea, #contentarea2 { background-image:none !important; }<br />#footer-outer { width:980px;margin:0 auto; }</td><td>position-14</td></tr><tr><td>Beez2-Personnel</td><td>#all, #header, #contentarea</td><td>#contentarea, #contentarea2 { background-image:none !important; }<br />.items-row { background-color: transparent !important; }</td><td>position-14</td></tr><tr><td>Beez5</td><td>#header, #contentarea</td><td>#contentarea, #contentarea2 { background-image:none !important; } </td><td>debug</td></tr><tr><td>cassiopeia 'Joomla 4)</td><td>.container-component</td><td>.container-component{padding-left:10px;padding-right:10px} .header-shape-bottom{display:none}</td><td>debug</td></tr></table>Visit <a href='http://lomart.fr'> lomart.fr </a> for other configurations."

language/en-GB/index.html000060400000000054152455312730011216 0ustar00<html><body bgcolor="#FFFFFF"></body></html>language/index.html000060400000000054152455312730010326 0ustar00<html><body bgcolor="#FFFFFF"></body></html>bgMax.min.js000060400000007277152455312730006742 0ustar00// script issu de : http://webbricks.org/bricks/bgMax/
(function(r,o){var t=navigator.appVersion.match(/MSIE/i)?navigator.appVersion.replace(/.*?MSIE ([^;]+);.*/i,"$1"):null;function u(c,a){var b,d={};for(b in a){d[b]=a[b]}for(b in c){d[b]=c[b]}return d}function v(c,a){return(a||o).getElementsByTagName(c)}function w(){var c,a,b=r,d=o,e=d.documentElement,f=d.body;if(b.innerWidth){c=b.innerWidth;a=b.innerHeight}else if(e.clientWidth){c=e.clientWidth;a=e.clientHeight}else{c=f.clientWidth;a=f.clientHeight}return{'w':c,'h':a}}function x(){var c=o,a=c.documentElement,b=c.body,d,e;e=a.scrollHeight;d=a.scrollWidth;if(a.clientHeight>e){e=a.clientHeight}if(a.clientWidth>d){d=a.clientWidth}if(b.scrollHeight>e){e=b.scrollHeight}if(b.scrollWidth>d){d=b.scrollWidth}return{'w':d,'h':e}}function y(c,a,b,d){if(c.addEventListener){c.addEventListener(a,b,d)}else{c.attachEvent("on"+a,b)}}function s(c,a){for(var b in a){c.style[b]=a[b]}}function p(c,a){a=(a==1)?0.99999:a;c.style.opacity=a;c.style.filter='alpha(opacity='+a*100+')';c.style.MozOpacity=a;c.style.KhtmlOpacity=a}function z(c,a,b,d){this.elem=c||o.body;this.to=a!==undefined?a:1;var e=this.elem.style;this.from=(b===undefined?(!e.opacity&&e.opacity!==0?(this.to>0?0:1):parseFloat(e.opacity)):b);d=d||{};this.duration=d.duration||500;this.frameRate=d.frameRate||30;this.onFinish=d.onFinish;this.totalFrames=Math.ceil(this.duration/1000*this.frameRate);this.perFrame=(this.to-this.from)/this.totalFrames;this.frameNb=0;var f=this;this.next=function(){this.prog=setTimeout(function(){f.frame()},1000/this.frameRate)};this.frame=function(){p(this.elem,this.from+this.perFrame*this.frameNb);if(this.frameNb===this.totalFrames){p(this.elem,this.to);if(typeof this.onFinish=='function'){setTimeout(this.onFinish,1)}}else{this.frameNb++;this.next()}};this.next()}function A(c,a,b){var d,e,f,j,k,l,i,g,h;b=b||{};d=b.max_w;e=b.min_w;f=b.max_h;j=b.max_h;k=b.round===undefined?1:b.round;l=c/a;i=a/c;g=a;h=c;if(h<e){h=e;g=h*i}if(g<j){g=j;h=g*l}if(d&&(h>d)){h=d;g=h*i}if(f&&(g>f)){g=f;h=g*l}h=h<0?0:h;g=g<0?0:g;return{w:k?Math.round(h):h,h:k?Math.round(g):g}}var q={defaults:{mode:'max',enlarge:1,reduce:1,ffHack:0,zIndex:-1,position:'absolute',align:'center',vertAlign:'top',fadeAfter:400,fadeOptions:{duration:1000,frameRate:25}},redim:function(){var c=q,a,b,d=w(),e,f,j,k,l,i,g,h,m,n;a=c.img;f=j=k=l='';b=c.opt;i=a.fileDim;if(i){if(b.mode=='full'){g=m=d.w;h=n=d.h;if(!b.enlarge){if(g>i.w){g=m=i.w}if(h>i.h){h=n=i.h}}if(!b.reduce){if(m<i.w){m=i.w;g=Math.max(m,g)}if(n<i.h){n=i.h;h=Math.max(n,h)}}}else{m=g=d.w;n=h=0;if(!b.reduce){g=0}}i=A(i.w,i.h,{min_w:m,win_h:n,max_w:g,max_h:h,round:1});a.width=i.w;a.height=i.h;if(!a.width){a.removeAttribute("width")}if(!a.height){a.removeAttribute("height")}switch(b.align){case'left':k='0px';break;case'right':l='0px';break;default:k=-Math.round((i.w-d.w)/2)+'px'}if(b.vertAlign=='bottom'){j='0px'}else if(b.vertAlign=='middle'){e=b.position=="fixed"?d.h:x().h;f=(-b.ffHack+(e-a.offsetHeight)/2)+"px"}else{f=a.hack||'0px'}s(a,{left:k,right:l,top:f,bottom:j})}},show:function(){var c=q,a;a=c.img;a.fileDim={w:a.naturalWidth||a.clientWidth,h:a.naturalHeight||a.clientHeight};c.redim();if(c.fadeIt){z(c.img,1,0,c.opt.fadeOptions)}else{p(a,1)}},init:function(c,a){var b=q,d=v('body')[0],e,f,j;a=u(a,this.defaults);if(t&&t<7){a.position='absolute'}b.opt=a;e=a.fadeAfter;f=b.img=o.createElement('img');f.id="bgMax";s(f,{zIndex:a.zIndex,position:a.position});j=navigator.userAgent.match(/Firefox.(\d+(\.\d+))/);if(j&&parseFloat(j[1])<3){s(d,{zIndex:0,position:'relative',top:0,left:0});f.hack='-'+a.ffHack}d.insertBefore(f,d.childNodes[0]);f.onload=b.show;if(e!==false){p(f,0);if(e){setTimeout(function(){b.fadeIt=1},e)}else{b.fadeIt=1}}y(r,'resize',b.redim);f.src=c}};r.bgMax=q})(window,document);helper.php000060400000044447152455312730006554 0ustar00<?php
/*------------------------------------------------------------------------
# mod_bgmax - bgMax
# ------------------------------------------------------------------------
# author    lomart
# copyright : Copyright (C) 2011 lomart.fr All Rights Reserved.
# @license  : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Website   : http://lomart.fr
# Technical Support:  Forum - http://forum.joomla.fr
-------------------------------------------------------------------------*/
// no direct access
defined('_JEXEC') or die('Restricted access');

global $bgmaxDebug;

   /**
    *  retourne une couleur en notation hexa sur 6 caracteres sans #
    **/       
   function bg_hex2hex($color)
   {
      $color = trim($color,'#');
      if (strlen($color) == 6) {
        return $color;
      } elseif (strlen($color) == 3) {
        return $color[0].$color[0].$color[1].$color[1].$color[2].$color[2];
      } else {
        return "";
      }
   }
  
   /**
    *  retourne une couleur en notation hexa (#RGB ou #RRGGBB ou RGB) 
    *  sous la forme d'une chaine "r,v,b"
    **/       
   function bg_hex2rgb($color)
   {
      $color = trim($color,'#');
      if (strlen($color) == 6) {
        list($r, $g, $b) = array($color[0].$color[1], $color[2].$color[3], $color[4].$color[5]);
      } elseif (strlen($color) == 3) {
        list($r, $g, $b) = array($color[0].$color[0], $color[1].$color[1], $color[2].$color[2]);
      } else {
        return false;
      }
      return hexdec($r).','.hexdec($g).','.hexdec($b);
   }

   /**
    *  Retourne la couleur du pixel en bas a gauche de l'image
    **/         
   function colorImageBottom($imageName) {
   
      // recuperer le type et la taille de l'image
      // Pb sur certains JPG qui retourne ''
      list($imgW, $imgH, $imgTyp) = getimagesize($imageName);
      switch ( $imgTyp ) {
        case 1 : $im = imagecreatefromgif($imageName); break;
        case 2;
        case ' ' : $im = imagecreatefromjpeg($imageName); break;
        case 3 : $im = imagecreatefrompng($imageName); break;
        default: {
          $app = JFactory::getApplication();
          $app->enqueueMessage(JTEXT::_('IMGNAME_ERROR').'[name='.$imageName.'] [ type='.$imgTyp.'] [ format= '.$imgW.'x'.$imgH,'error');
          var_dump(gd_info() );
          return "";
          }
      }
      $rgb = imagecolorat($im, 2, ($imgH-2));
      $hex = sprintf("%06X", $rgb);
      return $hex;
   }

   /**
    * Retourne une date JJ-MM-AAAA au format AAAA-MM-JJ
	* 
	**/
   function bg_formatDate($date) {
		$tmp = explode('-',$date);
		$tmp = array_reverse($tmp);
		return implode('-',$tmp);
   }
   
   /**
    *  Retourne une image au hasard - adaptation de ja_purity_ii    	
    **/    
    function getRandomImage ($img_folder) {
     
    $imglist=array();

		if ($dh = @opendir($img_folder)) {
			while (($f = readdir($dh)) !== false) {
        $ext = substr(trim(strtolower($f)),-3);
				if (($ext == 'jpg') || ($ext == 'gif') || ($ext == 'png')) {
				  $imglist[] = $f;
				}
			}
			closedir($dh);
		} 

    if(!count($imglist)) return '';

		$random = rand(0, count($imglist)-1);
		$image = $imglist[$random];

		return $image;
	}

	/**
	 * Retourne vrai si execution sur mobile
	 **/
    function bg_isMobile() {
		return preg_match("/(avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
	}

class modBgMaxHelper
{
  /**
   *  Retourne un tableau avec les arguments a ajouter dans la page
   *  $bgmax["head"]  : chaine a ajouter dans head
   *  $bgmax["body"]  : chaine a ajouter dans body a la position module  
   **/     
   public static function getBgMaxInfos(&$params, $modTitle)
   {
		$app = JFactory::getApplication();
    
		// tableau pour retour 
		$bgmax = array("head" => "", "body" => "");

		// DEBUG affiche la totalite des parametres pour analyse
		$bgmaxDebug = $params->get('bgmaxDebug');
		if ($bgmaxDebug=='2') {
			$user = JFactory::getUser();
			if (!$user->id) $bgmaxDebug = false;
		}
	  
		/****
		*  PERIODE : DOIT-ON PUBLIER ?
		****/  
		// attention, ambiguite si date fin vide et heure indiquee: 
		// on traite comme periode horaire journaliere	
		
		$ok = false;
		$debDate = str_replace('/','-',substr($params->get('debDate'),0,10)); // compatibilite ancienne version
		$debDate = bg_formatDate($debDate); 
		$debTime=$params->get('debTime','00:00');
		$endDate = str_replace('/','-',substr($params->get('endDate'),0,10)); // compatibilite ancienne version
		$endDate = bg_formatDate($endDate); 
		$endTime=$params->get('endTime','23:59');

		// Pour faciliter les calculs, on force la date debut/fin à une date infinie si une date de fin/debut complete est indiquee. le cas d'une heure sans date n'est pas geree
		if ((strlen($endDate)==10) && (strlen($debDate)==0)) { $debDate='1900-01-01'; }
		if ((strlen($debDate)==10) && (strlen($endDate)==0)) { $endDate='2900-01-01'; }

		// il faut que les 2 dates soient exprimees de la même maniere!
		if (strlen($debDate)!= strlen($endDate)) {
			$app->enqueueMessage('Les dates DEBUT et FIN doivent avoir le meme format'); 
		}
		// la date et heure actuelle au format pour comparaison
		// $nowDate = (strlen($debDate)==1) ? date('N'): bg_formatDate(substr(date('d-m-Y'),0, strlen($debDate)));
    	// $nowTime = date('H:i'); 

		$config = JFactory::getConfig();
		$now = JFactory::getDate('now',$config->get('offset'));
		$nowDate = (strlen($debDate)==1) ? $now->format('N',true): bg_formatDate(substr($now->format('d-m-Y',true),0, strlen($debDate)));
		$nowTime = $now->format('H:i',true); 
			
		// Analyse
		if (strlen($debDate)==0) {// permanent ou période horaire
			if ($debTime>$endTime) {  //18:00 -> 8:00 sur 2 jours
				$ok = (($nowTime>=$debTime) || ($nowTime<=$endTime));
				$period_msg = 'Day 1 '.$debTime.' <= '.$nowTime.' <= Day 2 '.$endTime.'<br>';			
			} else {   // 08:00 ->  18:00 sur la journee
				$ok = (($nowTime>=$debTime) && ($nowTime<=$endTime));
				$period_msg = 'Same day '.$debTime.' <= '.$nowTime.' <= '.$endTime.'<br>';			
			}
		} else {
			// maj date pour calcul sur 2 ans
			if ($debDate>$endDate) {
				$inc=array(0,7,31,0,0,12);
				$tmp = explode('-',$endDate);
				$tmp[0] += $inc[strlen($debDate)];
				$endDate = implode('-',$tmp);
				// actu date courante
				if ($nowDate<$debDate) {
					$tmp = explode('-',$nowDate);
					$tmp[0] += $inc[strlen($debDate)];
					$nowDate = implode('-',$tmp);
				}
			}
			if ($params->get('period_mode')) {
				$ok = (($debDate<=$nowDate) && ($nowDate<=$endDate)) && (($debTime<=$nowTime) && ($nowTime<=$endTime));
				$period_msg =($debDate.' <= '.$nowDate.' <= '.$endDate).' AND '.($debTime.' <= '.$nowTime.' <= '.$endTime).'<br>';
			} else {
				$ok = (($debDate.$debTime)<=($nowDate.$nowTime)) && (($nowDate.$nowTime)<=($endDate.$endTime));
				$period_msg =($debDate.$debTime).' <= '.($nowDate.$nowTime).' <= '.($endDate.$endTime).'<br>';
			}
		}
		if (!$ok) {
			if ($bgmaxDebug) {
				$msg = '#NO# BGMAX - '.$modTitle.': <br>'.$period_msg; 
				$app->enqueueMessage($msg);
			}
			return;
		}

    /****
	 *  MOBILE  : DOIT-ON PUBLIER ?
     ****/

    switch ($bgFilter=$params->get('filterMobile')) {
		case 'always':
			$ok = true;
			break;
		case 'mobile':
			$ok = bg_isMobile();
			break;
		case 'desktop':
			$ok = !bg_isMobile();
			break;
	}
	if (!$ok) {
		if ($bgmaxDebug) {
			$msg = '#NO# BGMAX - '.$modTitle.': '; 
			$msg.= 'view only on '.$params->get('filterMobile');
			$app->enqueueMessage($msg);
      }
		return;
	}
		
	/****
     *  CONTENU  : DOIT-ON PUBLIER ?
     ****/
    
    if ( ($bgFilter=$params->get('filterContent')) || ($bgmaxDebug) ) {
      $bg_id = JRequest::getVar( 'id', 0, 'get', 'int');
      $bg_menuid = JRequest::getVar( 'Itemid', 0, 'get', 'int');
      $bg_option = trim(JRequest::getVar( 'option', 0 ) );
      $bg_layout = trim(JRequest::getVar( 'layout', 0 ) );
      $bg_view = trim(JRequest::getVar( 'view', 0 ) );
      $bg_artid=''; $bg_catid=''; 
      switch ($bg_view) {
        case 'article':
          $bg_artid = $bg_id; $bg_id = ''; 
          $database = JFactory::getDBO();
          $query = "SELECT catid FROM #__content WHERE id=".$bg_artid;
          $database->setQuery($query);
          $row = $database->loadObject();
          $bg_catid = (($row!=null) ? $row->catid : '');
          break;
          
         case 'categories' :
          	$bg_catid = intval(JRequest::getVar( 'id', 0 ) );
            break;
      }
      $context = $bg_option;
      $context.= '+menuid='.$bg_menuid;
      $context.= '+view='.$bg_view;
      if ($bg_layout) $context.= '+layout='.$bg_layout;
      if ($bg_id) $context.= '+id='.$bg_id;
      if ($bg_artid) $context.= '+artid='.$bg_artid;
      if ($bg_catid) $context.= '+catid='.$bg_catid;

      /*
      Si une des lignes de critere correspond, le module sera affiche 
      un '-' inverse la condition
      exemple, on affiche le module si :
      view=blog -menuid=2  // vue blog non appell� par menu 2
      catid=3    // OU articles de categorie 3
      -artid=2   // MAIS PAS si article d'ID 2 
      */
      if ($bgFilter) {
        $context = '+'.$context.'+';  // pour recherche
        $arr = explode("\n",$bgFilter);
        foreach ($arr as &$lign) {
            $ok = true;
            $mots = explode(" ",$lign);
            foreach ( $mots as $mot ) {
               if ($mot) {
                  if ($mot[0]=="-") {
                    if (stristr($context, '+'.substr($mot,1).'+')) {
                        $ok=false; break;
                    }
                  } elseif ($mot[0]=="+") {
                    if (!stristr($context, '+'.substr($mot,1).'+')) {
                        $ok=false; break;
                    }
                  } else {
                    if (!stristr($context, '+'.$mot.'+')) {
                        $ok=false; break;
                    }
                 }   
               }
            } // foreach mot
            if ($ok) break;   // si ligne OK, on affiche      
        }
        if (!$ok) {
          if ($bgmaxDebug) {
			      $msg = '#ERR# BGMAX - '.$modTitle.': <br>'; 
            $msg.= 'Context:'.$context;
            $msg.= '<br />Filters: '.nl2br($bgFilter, ' || ');
            $app->enqueueMessage($msg);}
          return;
        }  
      } // if debug or Filtercontent
    } // if critere ou debug

    /*************************************
     *            ON AFFICHE 
     *************************************/         

    if ($bgmaxDebug) {
      $msg = JText::_('INFO_DEBUG').'#OK# BGMAX - '.$modTitle.': <br>'.$period_msg; 
      if (isset($context)) $msg.= 'Context:'.$context;
      $app->enqueueMessage($msg);
    }

		/****
		*   QUELLE IMAGE AFFICHER ?  
		*   Ordre des priorites :
		*   1 - celle indiquee dans la zone texte 
		*   2 - au hasard dans le dossier indique
		*   3 - aucune, uniquement la couleur               		
		****/                            

    /* 1 */
  	$bgImage = $params->get('image_path', '');
  	if ($bgImage) { 
		// chemin relatif a la racine 
		$bgImageAbs = JPATH_ROOT.strtr('/'.$bgImage, '/', DIRECTORY_SEPARATOR);
		$bgImage = trim(JURI::base(),'/').'/'.$bgImage;
    /* 2 */
		} elseif ($params->get('image_url', '')) {
		$bgImageAbs = $params->get('image_url', '');
		$bgImage = $bgImageAbs;
    /* 3 */
		} elseif ($params->get('RandomFolder', '-1')!='-1') {
		    $rep = '/images/bgmax/'.$params->get('RandomFolder').'/';
		    $bgImage = getRandomImage(JPATH_ROOT.strtr($rep, '/', DIRECTORY_SEPARATOR));
        if ($bgImage) {
			    $bgImageAbs = JPATH_ROOT.strtr($rep.$bgImage, '/', DIRECTORY_SEPARATOR);
        		$bgImage = trim(JURI::base(),'/').$rep.$bgImage;        
        } 
    }
		
		if ($bgmaxDebug) {$app->enqueueMessage("Image (abs): ".$bgImageAbs);}
	
	  /****
	   *  couleur de fond
	   ****/     	  
		$bodyColor = bg_hex2hex($params->get('bodyColor', '#FFFFFF'));
		if ( ($bgImage) && ($params->get('bodyColorAuto', '0')=='1') ) {
			$bodyColor = colorImageBottom($bgImageAbs);
		}

    /****
     *   TAILLE, POSITION ET EFFETS 
     ****/         
		$bgMode  = $params->get('mode', 'max');         // max, full ou none
		$bgEnlarge = $params->get('enlarge', '1');
		$bgReduce = $params->get('reduce', '1');
		$bgPosition = $params->get('position', 'absolute');
		$bgHAlign = $params->get('align', 'center');
		$bgVAlign = $params->get('vertAlign', 'top');
		$bgFadeActive = $params->get('fadeActive', '0');
		$bgFadeAfter = $params->get('fadeAfter', '0');
		$bgFadeDuration = $params->get('fadeDuration', '1000');
		$bgFadeFrame = $params->get('fadeframeRate', '30');
		$bgZIndex = $params->get('zIndex', '-1');
		$bgFFHack = $params->get('ffHack', '0px');
	  
    /****
     *  BLOC CONTENU
     ****/          
		$contentSelector = $params->get('contentSelector', '');  
		$contentColor = bg_hex2hex($params->get('contentColor', ''));  
		$contentOpacity = trim($params->get('contentOpacity', '100'),'%');  
		$contentWidth = $params->get('contentWidth', '');  
		$contentAlign = $params->get('contentAlign', '');
    
    /****
     * CODE COMPLEMENTAIRE
     ****/           
    if ($headOther = $params->get('headOther', '')) {
        $headOther = "<style type='text/css'>".$headOther."</style>";
        if ($bgmaxDebug) { 
             $app->enqueueMessage('Complementary code: <code>'.htmlspecialchars($headOther).'</code>');
        }
    }

    $headFile = $params->get('headFile', '-1');
    if ($headFile!='-1') {
	    $headFile = JPATH_ROOT.strtr('/images/bgmax/'.$headFile, '/', DIRECTORY_SEPARATOR);
      if (file_exists($headFile)) {
        $code =  file($headFile);
        $headOther = implode('', $code); 
        if ($bgmaxDebug) { 
          $app->enqueueMessage('headfile: '.$headFile.'<code>'.htmlspecialchars($headOther).'</code>');
        }
      } else {
    	 $app->enqueueMessage('headFile: '.$headFile.' **NOT FIND**','error'); 
      }
    }      

    /****
     *   Traitement de l'ajout image
     ****/  
                         
     if ( (strstr($bgMode, 'repeat')) || ($bgMode == 'cover') || ($bgImage == "") ) {
        //-------------------------------------------
        //-----> Affichage image SANS le script bgmax
        //-------------------------------------------
        if ($bgImage) {  
          $str = 'background:';
          $str.= '#'.$bodyColor;
          $str.= ' url('.$bgImage.')';
		  if ($bgMode == 'cover') {
			$str.= ' no-repeat';
			$str2 = ' background-size:cover !important;';
		  } else {
			$str.= ' '.$bgMode;
			$str2 = '';
		  }	
          $str.= ' '.$bgHAlign.' '.$bgVAlign;
          if ($bgPosition=='fixed') {$str.= ' fixed';}
          $str.= ' !important;';

          $bgmax["head"] .= '<style type="text/css">body {'.$str.$str2.'} </style>';
        }
     } else {
        //-------------------------------------------
        //-----> Affichage image AVEC le script bgmax
        //-------------------------------------------
        // Appel du script JS dans HEAD
        $site_base = JURI::base();
        if(substr($site_base, -1)=="/") {$site_base = substr($site_base, 0, -1);}
        $bgmax["head"] = '<script type="text/javascript" src="'.$site_base.'/modules/mod_bgmax/bgMax.min.js"></script>';

        // Definir la couleur sous image
        if ($bodyColor) {
          $bgmax["head"] .= '<style type="text/css">body {background-color:#'.$bodyColor.' !important;}</style>';
        }
        // Appel de la fonction JS dans BODY
        $str = "";
			  if ($bgMode == 'full') {$str.= 'mode:"full",';}
			  if ($bgEnlarge != '1') {$str.= 'enlarge:0,';}
			  if ($bgReduce  != '1') {$str.= 'reduce:0,';}
			  if ($bgPosition != 'absolute') {$str.= 'position:"fixed",';}
			  if ($bgHAlign != 'center') {$str.= 'align:"'.$bgHAlign.'",';}
			  switch ($bgVAlign) {
			  	case "center" : $str.= 'vertAlign:"middle",'; break;
			  	case "bottom" : $str.= 'vertAlign:"bottom",'; break;
			  }
			  if ($bgZIndex != '-1') {$str.= 'zIndex:'.$bgZIndex.',';}
			  if ($bgFFHack != '0px') {$str.= 'ffHack:"'.$bgFFHack.'",';}
		                                     
			  if ($bgFadeActive == '1') {           
  				$str .= 'fadeAfter:'.$bgFadeAfter.',';                 
  				$str .= 'fadeOptions:{duration:'.$bgFadeDuration.',';   
  				$str .= 'frameRate:'.$bgFadeFrame.'}';      
  			}                                          
			  $str = trim($str,",");
			  if ($str) {$str = ", {".$str."}";}
			  
			  $bgmax["body"]= '<script type="text/javascript">bgMax.init("'.$bgImage.'"'.$str.');</script>';
     } // if 
     
     /*****
      *   STYLE COMMUN (AVEC ou SANS BGMAX)
      *****/  
                          
      $str = ""; 
       // bloc qui contient tout le contenu 
      if ($contentSelector) {
        $str.= '<style type="text/css">';
        $str.= $contentSelector.' {';
        if ($contentWidth) {
          $str.= 'width:'.$contentWidth.';';
          switch ($contentAlign) {
            case 'left'   : $str.= 'margin-left: 0;'; break;
            case 'center' : $str.= 'margin: 0 auto;'; break;
            case 'right'  : $str.= 'margin-right: 0; margin-left: auto;'; break;
          }
        }
        if ($contentColor) {
          $str.= 'background-color: #'.$contentColor.';';
        }
        if ($contentOpacity == '0') {
			$str.= 'background-color: transparent;';      
		} else {
			if ($contentOpacity != '100') {
			  $str.= 'background-color: rgba(';      
			  $str.= bg_hex2rgb($contentColor).',';
			  $str.= ($contentOpacity / 100).') !important;';   
			}
		}
        $str.= '}</style>'; 
        // si transparence: hack pour IE
        if (($contentOpacity != '0') && ($contentOpacity != '100')) {
          $sval = dechex($contentOpacity * 2.55);
          $sval.= $contentColor;
          $str.= '<!--[if lte IE 8]> <style type="text/css">';
          $str.= $contentSelector.' {';
          $str.= 'background:transparent; '; 
          $str.= 'filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#'.$sval.',endColorstr=#'.$sval.');'; 
          $str.= 'zoom: 1;';
          $str.= '} </style> <![endif]-->';
        } 
      } // fin if $contentSelector
      
      /*******
       * COMPLEMENT DE CODE POUR HEAD
       *******/
       
      if ($headOther) {
          $str.= $headOther;          
      }

      $bgmax["head"] .= $str;

      if ($bgmaxDebug) {
         $app->enqueueMessage('----------------------------');
         foreach ($bgmax as $key=>$value) {
            $app->enqueueMessage($key.' => <code>'.htmlentities($value).'</code>');
         }
      }


    return $bgmax;
    } // fin function getBgMaxInfos
           
} // class
elements/xtitle.php000060400000004546152455312730010416 0ustar00<?php

/* ------------------------------------------------------------------------
  # mod_bgmax - Custom parameter Joomla! 1.6 for bgMax
  # Displays a title on the total width of the column parameter
  # type=title
  # label="text to display" (translatable)
  # style="color=red" (translatable)(optional)
  # 20-10-17: ajout class et chargement feuille de style custom.css
  # ------------------------------------------------------------------------
  # author    lomart
  # copyright : Copyright (C) 2011 lomart.fr All Rights Reserved.
  # @license  : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
  # Website   : http://lomart.fr
  # Technical Support:  Forum - http://forum.joomla.fr
  ------------------------------------------------------------------------- */
// no direct access
defined('JPATH_BASE') or die;

jimport('joomla.form.formfield');

class JFormFieldxTitle extends JFormField {

	protected $type = 'xTitle';

	protected function getInput() {
		return '';
	}

	protected function getLabel() {

		// AJOUT FEUILLE CSS
		$cssPath = substr(__dir__, strlen(JPATH_ROOT) + 1) . '/custom.css';
		JHtml::stylesheet($cssPath);

		$class = $this->element['class'] ? (string) $this->element['class'] : "param-title-default";

		$style = $this->element['style'] ? (string) $this->element['style'] : "";
		$style = $this->translateLabel ? JText::_($style) : $style;

		$label = $this->element['title'] ? (string) $this->element['title'] : (string) $this->element['name'];
		$label = $this->translateLabel ? JText::_($label) : $label;

		$desc = $this->element['subtitle'];
		$desc = $this->translateLabel ? JText::_($desc) : $desc;

		$html = array();
		$html[] = '</div>';  // on ferme le control-label pour creer un bloc sur la largeur totale
		if ($this->element['label'])
			$html[] = '<span style="color:red">Dont use LABEL, but TITLE and SUBTITLE';
		$out = '<div id="' . $this->id . '-lbl" class="' . $class . '"';
		if ($style)
			$out .= ' style="' . $style . '"';
		$html[] = $out . '>';
		$html[] = ($label) ? ' <h3>' . $label . '</h3>' : '';
		$html[] = ($desc) ? '<small>' . $desc . '</small>' : '';
//		$html[] = '</div>';  // inutile, on récupère celui fermé au début

		return implode('', $html);
	}

	/**
	 * Method to get the field title.
	 *
	 * @return  string  The field title.
	 *
	 * @since   11.1
	 */
	protected function getTitle() {
		return $this->getLabel();
	}

}
elements/custom.css000060400000000326152455312730010410 0ustar00.param-title-default {
    padding: 10px;
    background-color: #1A466B;
    border-left: red 10px solid;
    color: white;
}
.param-title-default h3 {
    margin:5px 0;
}

.param-title-note {
   padding: 10px 0;
}elements/xnote.php000060400000004462152455312730010237 0ustar00<?php

/* ------------------------------------------------------------------------
  # mod_bgmax - Custom parameter Joomla! 1.6 for bgMax
  # Displays a title on the total width of the column parameter
  # type=title
  # label="text to display" (translatable)
  # style="color=red" (translatable)(optional)
  # 20-10-17: ajout class et chargement feuille de style custom.css
  # ------------------------------------------------------------------------
  # author    lomart
  # copyright : Copyright (C) 2011 lomart.fr All Rights Reserved.
  # @license  : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
  # Website   : http://lomart.fr
  # Technical Support:  Forum - http://forum.joomla.fr
  ------------------------------------------------------------------------- */
// no direct access
defined('JPATH_BASE') or die;

jimport('joomla.form.formfield');

class JFormFieldxNote extends JFormField {

	protected $type = 'xNote';

	protected function getInput() {
		return '';
	}

	protected function getLabel() {

		// AJOUT FEUILLE CSS
		$cssPath = substr(__dir__, strlen(JPATH_ROOT) + 1) . '/custom.css';
		JHtml::stylesheet($cssPath);

		$class = $this->element['class'] ? (string) $this->element['class'] : "param-title-note";

		$style = $this->element['style'] ? (string) $this->element['style'] : "";
		$style = $this->translateLabel ? JText::_($style) : $style;
		
		$hx = $this->element['heading'] ? (string) $this->element['heading'] : "p";

		$note = $this->element['note'] ? (string) $this->element['note'] : (string) $this->element['name'];
		$note = $this->translateLabel ? JText::_($note) : $note;

		$html = array();
		$html[] = '</div>';  // on ferme le control-label pour creer un bloc sur la largeur totale
		if ($this->element['label'] || $this->element['title'])
			$html[] = '<span style="color:red">Dont use LABEL, but TITLE and SUBTITLE';
		$out = '<div id="' . $this->id . '-lbl" class="' . $class . '"';
		if ($style)
			$out .= ' style="' . $style . '"';
		$html[] = $out . '>';
		$html[] = ($note) ? ' <'.$hx.'>' . $note . '</'.$hx.'>' : '';
//		$html[] = '</div>';  // inutile, on récupère celui fermé au début

		return implode('', $html);
	}

	/**
	 * Method to get the field title.
	 *
	 * @return  string  The field title.
	 *
	 * @since   11.1
	 */
	protected function getTitle() {
		return $this->getLabel();
	}

}
elements/folderlistmakedir.php000060400000003244152455312730012603 0ustar00<?php

/* ------------------------------------------------------------------------
  # mod_bgmax - Custom parameter for bgMax
  # Create directory define by parameter 'directory' if no exist
  # ------------------------------------------------------------------------
  # author    lomart
  # copyright : Copyright (C) 2011 lomart.fr All Rights Reserved.
  # @license  : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
  # Website   : http://lomart.fr
  # Technical Support:  Forum - http://forum.joomla.fr
  ------------------------------------------------------------------------- */
// no direct access
defined('JPATH_BASE') or die;

jimport('joomla.html.html');
jimport('joomla.form.formfield');
jimport('joomla.form.helper');
JFormHelper::loadFieldClass('folderlist');

/**
 * Supports an HTML select list of image
 *
 * @package		Joomla.Framework
 * @subpackage	Form
 * @since		1.6
 */
class JFormFieldFolderListMakeDir extends JFormFieldFolderList {

	/**
	 * The form field type.
	 *
	 * @var		string
	 * @since	1.6
	 */
	public $type = 'FolderListMakeDir';

	/**
	 * Method to get the field options.
	 *
	 * @return	array	The field option objects.
	 * @since	1.6
	 */
	protected function getOptions() {
		//-- dossier
		$folder = $this->element['directory'];
		$folder = strtr($folder, "\\", DIRECTORY_SEPARATOR);

		//-- Controle existence folder bgmax
		if (!JFolder::exists(JPATH_ROOT . DIRECTORY_SEPARATOR . $folder)) {
			if (!JFolder::create(JPATH_ROOT . DIRECTORY_SEPARATOR . $folder, 0755)) {
				print_r('Error, fail to create folder: ' . $folder);
				$folder = 'images/stories';  // Pour �viter erreur
			}
		}

		// Get the field options.
		return parent::getOptions();
	}

}
elements/index.html000060400000000054152455312730010357 0ustar00<html><body bgcolor="#FFFFFF"></body></html>index.html000060400000000054152455312730006543 0ustar00<html><body bgcolor="#FFFFFF"></body></html>