";
+
+
+ // GET the DB informations
+ $MyListe = listeMyLdt($MyLdtLineTemplate);
+
+ // HTML table
+ $MyLdtOutPut = "
+
+
+
+
+
Auteur
+
Titre
+
Fond
+
+
+
+ ".$MyListe."
+
";
+
+ echo ($MyLdtOutPut);
+
+}
+
+function WP-ldt-downloader(){
+
+
+
+
+
+}
+
+# Display the list of movies
+function WP-ldt-listeMyLdt($template){
+
+ $MyLdtDataBase = "lignesIRI";
+ $MyLdtTable = "Lignes";
+ $MyLdtconnexion = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
+ $MyLdtListe = "";
+ //$WP_db_selected = mysql_select_db();
+
+ if (!$MyLdtconnexion) {
+ echo "Impossible de se connecter à la base de données : " . mysql_error();
+ exit;
+ }
+
+ if (!mysql_select_db($MyLdtDataBase)) {
+ echo "Impossible de sélectionner la base mydbname : " . mysql_error();
+ exit;
+ }
+
+ $MyLdtSql = "SELECT * FROM ".$MyLdtTable." WHERE `NomFichier` NOT LIKE ''";
+
+ $result = mysql_query($MyLdtSql);
+
+ if (!$result) {
+ echo "Impossible d'exécuter la requête ($MyLdtSql) dans la base : " . mysql_error();
+ exit;
+ }
+
+ if (mysql_num_rows($result) == 0) {
+ echo "Aucune ligne trouvée, rien à afficher.";
+ exit;
+ }
+
+ $MyLdtTable="";
+
+ while ($row = mysql_fetch_assoc($result)) {
+ $MyLdtLineTemplate = str_replace( "X_row['Auteur']_X", $row['Auteur'], $template );
+ $MyLdtLineTemplate = str_replace( "X_row['Auteur']_X", $row['Titre'], $MyLdtLineTemplate );
+ $MyLdtLineTemplate = str_replace( "X_row['Auteur']_X", $row['Fond'], $MyLdtLineTemplate );
+ $MyLdtLineTemplate = str_replace( "X_row['Auteur']_X", $row['NomFichier'], $MyLdtLineTemplate );
+ /*
+ "
+
".$row['Auteur']."
".$row['Titre']."
".$row['Fond']."
+
";
+ */
+ $MyLdtTable .= $MyLdtLineTemplate."\n";
+
+ }
+
+ return ($MyLdtTable);
+
+ mysql_free_result($result);
+ //mysql_select_db($WP_db_selected);
+}
+
+# Create the LDT's ZIP to download IT
+function WP-ldt-createMyLdtProject($fichierIRI){
+
+ $MyRoot = "/iridata/users/hurons/public_html/DOCUMENT/_LDT";
+ $MyRootRel = "non-classe/telecharger/?URL=DOCUMENT/_LDT";
+ $MyCache = "/CACHE";
+ $MyExemple = "/EXEMPLE_zip";
+ $MyPattern = "X_NOMPROJET_X";
+ $MyLdtName = "projet_".$MyPattern.".ldt";
+ $MyReadMeName="LISEZ_MOI_READ_ME.txt";
+ $MySoundExt = "_audio.xml";
+ $Return = "";
+
+ $end = strrpos($fichierIRI,".");
+ $FileName = substr($fichierIRI, 0, $end);
+ $ext = substr($fichierIRI, $end, strlen($FileName));
+
+
+ // cette fontion n'est utilisé que sur les .IRI
+ if ($ext==".iri"){
+
+ // Vérifie si le cache éxiste déja
+ if (file_exists($MyCache."/".$FileName.".zip")){
+ //echo ($MyCache.$FileName.".zip"." is in cache");
+ // ensuite envoyer vers la redirection.
+ redirectionDWL($MyRootRel.$MyCache."/".$FileName.".zip");
+
+ } else {
+
+ echo ("Le fichier ".$FileName.".zip est en cours de compression, veuillez patientez un instant.");
+
+ // Créer le .LDT à partir de l'exemple
+ $MyLdtExemple = implode(file($MyRoot.$MyExemple."/".$MyLdtName , FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES));
+ $MyFuturLdt = str_replace($MyPattern, $FileName, $MyLdtExemple);
+
+ // Créer le read me
+ $MyReadMeExemple = implode(file($MyRoot.$MyExemple."/".$MyPattern."/".$MyReadMeName , FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES));
+ $MyFuturReadMe = str_replace($MyPattern, $FileName, $MyReadMeExemple);
+
+ // ZIP l'ensemble est met dans le cache
+ $Zipfilename = $MyRoot.$MyCache."/".$FileName.".zip";
+ $zip = new ZipArchive();
+ if ($zip->open($Zipfilename, ZIPARCHIVE::CREATE)!==TRUE) {
+ exit("Impossible d'ouvrir <$filename>\n");
+ }
+ // ZIP - ajouter le .LDT
+ $MyLdtNewName = str_replace($MyPattern, $FileName, $MyLdtName);
+ $zip->addFromString($MyLdtNewName, $MyFuturLdt); //$zip->addFile($MyFuturLdtName, $FileName);
+ // ZIP - ajouter le .IRI
+ $zip->addFile($MyRoot."/".$fichierIRI, $FileName."/".$fichierIRI);
+ // ZIP - ajouter le ReadMe
+ $zip->addFromString($FileName."/".$MyReadMeName, $MyFuturReadMe); //$zip->addFile($MyRoot.$MyTemp."/".$FileName."/".$MyReadMeName, $FileName."/".$MyReadMeName);
+ // ZIP - ajouter le audio si il y a
+ $fileAudio = $MyRoot."/".$FileName.$MySoundExt ;
+ if (file_exists($fileAudio)){
+ $zip->addFile($fileAudio, $FileName."/".$FileName.$MySoundExt);
+ }
+ $zip->close();
+
+ // mettre a jour la bdd ? pour vider le cache quand c'est un nouveau fichier ?
+
+ // ensuite envoyer vers la redirection.
+ redirectionDWL($MyRootRel.$MyCache."/".$FileName.".zip");
+ }
+ }
+}
+
+# Javascript DWL redirection
+function WP-ldt-redirectionDWL ($url) {
+
+ $URL = get_bloginfo('url')."/".$url;
+
+ echo("Le téléchargement est en cours... \n
+ Si le téléchargement ne démarre pas automatiquement, veuillez cliquez ici. \n");
+
+ echo("\n");
+
+}
+
+
+//______________________
+
+
+
+function hello_dolly_get_lyric() {
+ /** These are the lyrics to Hello Dolly */
+ $lyrics = "Hello, Dolly
+Well, hello, Dolly
+It's so nice to have you back where you belong
+You're lookin' swell, Dolly
+I can tell, Dolly
+You're still glowin', you're still crowin'
+You're still goin' strong
+We feel the room swayin'
+While the band's playin'
+One of your old favourite songs from way back when
+So, take her wrap, fellas
+Find her an empty lap, fellas
+Dolly'll never go away again
+Hello, Dolly
+Well, hello, Dolly
+It's so nice to have you back where you belong
+You're lookin' swell, Dolly
+I can tell, Dolly
+You're still glowin', you're still crowin'
+You're still goin' strong
+We feel the room swayin'
+While the band's playin'
+One of your old favourite songs from way back when
+Golly, gee, fellas
+Find her a vacant knee, fellas
+Dolly'll never go away
+Dolly'll never go away
+Dolly'll never go away again";
+
+ // Here we split it into lines
+ $lyrics = explode("\n", $lyrics);
+
+ // And then randomly choose a line
+ return wptexturize( $lyrics[ mt_rand(0, count($lyrics) - 1) ] );
+}
+
+// This just echoes the chosen line, we'll position it later
+function hello_dolly() {
+ $chosen = hello_dolly_get_lyric();
+ echo "
$chosen
";
+}
+
+// Now we set that function up to execute when the admin_footer action is called
+add_action('admin_footer', 'hello_dolly');
+
+// We need some CSS to position the paragraph
+function dolly_css() {
+ // This makes sure that the posinioning is also good for right-to-left languages
+ $x = ( 'rtl' == get_bloginfo( 'text_direction' ) ) ? 'left' : 'right';
+
+ echo "
+
+ ";
+}
+
+add_action('admin_head', 'dolly_css');
+
+?>
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/G_CSE_look.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/IRI-Theme/G_CSE_look.xml Mon Feb 01 09:53:45 2010 +0000
@@ -0,0 +1,47 @@
+
+ ...
+ ...
+
+ ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/Thumbs.db
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/Thumbs.db has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_flat_75_ffffff_40x100.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_flat_75_ffffff_40x100.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_glass_55_fbf9ee_1x400.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_glass_55_fbf9ee_1x400.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_glass_65_ffffff_1x400.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_glass_65_ffffff_1x400.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_glass_75_dadada_1x400.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_glass_75_dadada_1x400.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_glass_75_e6e6e6_1x400.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_glass_75_e6e6e6_1x400.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_glass_95_fef1ec_1x400.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_glass_95_fef1ec_1x400.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-icons_222222_256x240.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-icons_222222_256x240.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-icons_2e83ff_256x240.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-icons_2e83ff_256x240.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-icons_454545_256x240.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-icons_454545_256x240.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-icons_888888_256x240.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-icons_888888_256x240.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-icons_cd0a0a_256x240.png
Binary file web/wp-content/themes/IRI-Theme/css/custom-theme/images/ui-icons_cd0a0a_256x240.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/custom-theme/jquery-ui-1.7.2.custom.css
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/IRI-Theme/css/custom-theme/jquery-ui-1.7.2.custom.css Mon Feb 01 09:53:45 2010 +0000
@@ -0,0 +1,113 @@
+/*
+* jQuery UI CSS Framework
+* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
+* --------------------------------------------------------------------------------- CUSTOMIZE BY SAM
+*/
+
+/* Layout helpers
+----------------------------------*/
+.ui-helper-hidden { display: none; }
+.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
+.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; list-style: none; }
+.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+.ui-helper-clearfix { display: inline-block; }
+/* required comment for clearfix to work in Opera \*/
+* html .ui-helper-clearfix { height:1%; }
+.ui-helper-clearfix { display:block; }
+/* end clearfix */
+.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
+
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-disabled { cursor: default !important; }
+
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Overlays */
+.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
+/* Accordion----------------------------------*/
+.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; font-size:12px; }
+.ui-accordion .ui-accordion-li-fix { display: inline; }
+.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
+.ui-accordion .ui-accordion-header a { display: block; padding: .2em .2em .2em 1em; }
+.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .2em; top: 50%; margin-top: -8px; }
+.ui-accordion .ui-accordion-content { padding: 0.5em 0.5em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; }
+.ui-accordion .ui-accordion-content-active { display: block; }
+
+/* Resizable----------------------------------*/
+.ui-resizable { position: relative;}
+.ui-resizable-handle { position: absolute; z-index: 99999; display: block;}
+.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
+.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0px; }
+.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0px; }
+.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0px; height: 100%; }
+.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0px; height: 100%; }
+.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
+.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
+.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
+.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}
+
+/*
+* jQuery UI CSS Framework
+* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
+* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=0px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
+*/
+
+
+/* Component containers
+----------------------------------*/
+.ui-widget {/* font-family: Verdana,Arial,sans-serif;*/ }
+.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif; }
+.ui-widget-content { border:none; border-bottom: 1px solid #EEE; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 25% 75% repeat-x; color: #222222; }
+.ui-widget-content a { color: #222222; }
+/*.ui-widget-header { border: 1px dotted #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }*/
+.ui-widget-header { border-bottom: 1px dotted #aaaaaa; background: #FFF color: #222222; font-weight: bold; }
+.ui-widget-header a { color: #222222; }
+
+/* Interaction states
+----------------------------------*/
+.ui-state-default, .ui-widget-content .ui-state-default { border: 1px solid #d3d3d3; font-weight: normal; color: #5FBCDE; outline: none; }
+.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; outline: none; }
+.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus { border: 1px solid #999999; background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; outline: none; }
+.ui-state-hover a, .ui-state-hover a:hover { color: #212121; text-decoration: none; outline: none; }
+.ui-state-active, .ui-widget-content .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff; font-weight: normal; color: #212121; outline: none; }
+.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; outline: none; text-decoration: none; }
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-highlight, .ui-widget-content .ui-state-highlight {/*border: 1px dotted #fcefa1;*/ background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; }
+.ui-state-highlight a, .ui-widget-content .ui-state-highlight a { color: #363636; }
+.ui-state-error, .ui-widget-content .ui-state-error {/*border: 1px solid #cd0a0a;*/ background: #fef1ec; color: #cd0a0a; }
+.ui-state-error a, .ui-widget-content .ui-state-error a { color: #cd0a0a; }
+.ui-state-error-text, .ui-widget-content .ui-state-error-text { color: #cd0a0a; }
+.ui-state-disabled, .ui-widget-content .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
+.ui-priority-primary, .ui-widget-content .ui-priority-primary { font-weight: bold; }
+.ui-priority-secondary, .ui-widget-content .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
+
+/* Misc visuals
+----------------------------------*/
+ Overlays
+.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
+
+
+.ui-tabs { padding: .1em; zoom: 1; }
+.ui-tabs .ui-tabs-nav { list-style: none; list-style-image:none; position: relative; padding: .1em .1em 0; }
+.ui-tabs .ui-tabs-nav li { list-style: none; list-style-image:none; position: relative; float: left; border-bottom-width: 0 !important; margin: 0 .1em -1px 0; padding: 0; }
+.ui-tabs .ui-tabs-nav li a { float: left; text-decoration: none; padding: .2em 1em; color:#5FBCDE;}
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 1px; border-bottom-width: 0; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; font-weight:bold; font-size:13px; }
+.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
+.ui-tabs .ui-tabs-panel { padding: 0.5em 1.2em; display: block; border-width: 0; background: none; }
+.ui-tabs .ui-tabs-hide { display: none !important; }
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/css/skinned-select.css
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/IRI-Theme/css/skinned-select.css Mon Feb 01 09:53:45 2010 +0000
@@ -0,0 +1,59 @@
+
+ /************************************************************\
+ *
+ * Skinned Select Box Copyright 2007 Derek Harvey
+ * www.lotsofcode.com
+ *
+ * This file is part of Skinned Select Box .
+ *
+ * Skinned Select Boxis free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Skinned Select Box is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Skinned Select Box; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ \************************************************************/
+
+/* skinned select */
+
+div.skinned-select {
+ background: url('images/select-skin.png') no-repeat scroll 0pt 100%;
+ float:right;
+}
+div.skinned-select select {
+ opacity: 0;
+ filter: alpha(opacity = 0);
+ moz-opacity: 0;
+ position: relative;
+ z-index: 100;
+}
+div.skinned-select .select-text {
+ position: absolute;
+ text-indent: 10px;
+ line-height: 19px;
+ width: 150px;
+ z-index: 1;
+}
+div.skinned-select .select-text,
+div.skinned-select select,
+div.skinned-select select option {
+ width: 150px;
+ font-size: 11px;
+ color: #316D89;
+}
+
+/* non javascript version select */
+
+.my-skinnable-select select {
+ width: 150px;
+ font-size: 11px;
+ border: 1px solid #D5E6EE;
+}
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/Thumbs.db
Binary file web/wp-content/themes/IRI-Theme/images/Thumbs.db has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/blank.png
Binary file web/wp-content/themes/IRI-Theme/images/blank.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/get.png
Binary file web/wp-content/themes/IRI-Theme/images/get.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/icons/Thumbs.db
Binary file web/wp-content/themes/IRI-Theme/images/icons/Thumbs.db has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/icons/delicious.png
Binary file web/wp-content/themes/IRI-Theme/images/icons/delicious.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/icons/facebook.png
Binary file web/wp-content/themes/IRI-Theme/images/icons/facebook.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/icons/flickr.gif
Binary file web/wp-content/themes/IRI-Theme/images/icons/flickr.gif has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/icons/search_grey_r.png
Binary file web/wp-content/themes/IRI-Theme/images/icons/search_grey_r.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/icons/twitter.png
Binary file web/wp-content/themes/IRI-Theme/images/icons/twitter.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/navigation_s.png
Binary file web/wp-content/themes/IRI-Theme/images/navigation_s.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/partenaires/Thumbs.db
Binary file web/wp-content/themes/IRI-Theme/images/partenaires/Thumbs.db has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/select-skin-h.png
Binary file web/wp-content/themes/IRI-Theme/images/select-skin-h.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/images/select-skin-p.png
Binary file web/wp-content/themes/IRI-Theme/images/select-skin-p.png has changed
diff -r 561aa6d282f6 -r 5cb854c0ff5a web/wp-content/themes/IRI-Theme/js/jquery.DOMWindow.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/IRI-Theme/js/jquery.DOMWindow.js Mon Feb 01 09:53:45 2010 +0000
@@ -0,0 +1,372 @@
+(function($){
+
+ //closeDOMWindow
+ $.fn.closeDOMWindow = function(settings){
+
+ if(!settings){settings={};}
+
+ var run = function(passingThis){
+
+ if(settings.anchoredClassName){
+ var $anchorClassName = $('.'+settings.anchoredClassName);
+ $anchorClassName.fadeOut('fast',function(){
+ if($.fn.draggable){
+ $anchorClassName.draggable('destory').trigger("unload").remove();
+ }else{
+ $anchorClassName.trigger("unload").remove();
+ }
+ });
+ if(settings.functionCallOnClose){settings.functionCallAfterClose();}
+ }else{
+ var $DOMWindowOverlay = $('#DOMWindowOverlay');
+ var $DOMWindow = $('#DOMWindow');
+ $DOMWindowOverlay.fadeOut('fast',function(){
+ $DOMWindowOverlay.trigger('unload').unbind().remove();
+ });
+ $DOMWindow.fadeOut('fast',function(){
+ if($.fn.draggable){
+ $DOMWindow.draggable("destroy").trigger("unload").remove();
+ }else{
+ $DOMWindow.trigger("unload").remove();
+ }
+ });
+
+ $(window).unbind('scroll.DOMWindow');
+ $(window).unbind('resize.DOMWindow');
+
+ if($.fn.openDOMWindow.isIE6){$('#DOMWindowIE6FixIframe').remove();}
+ if(settings.functionCallOnClose){settings.functionCallAfterClose();}
+ }
+ };
+
+ if(settings.eventType){//if used with $().
+ return this.each(function(index){
+ $(this).bind(settings.eventType, function(){
+ run(this);
+ return false;
+ });
+ });
+ }else{//else called as $.function
+ run();
+ }
+
+ };
+
+ //allow for public call, pass settings
+ $.closeDOMWindow = function(s){$.fn.closeDOMWindow(s);};
+
+ //openDOMWindow
+ $.fn.openDOMWindow = function(instanceSettings){
+
+ var shortcut = $.fn.openDOMWindow;
+
+ //default settings combined with callerSettings////////////////////////////////////////////////////////////////////////
+
+ shortcut.defaultsSettings = {
+ anchoredClassName:'',
+ anchoredSelector:'',
+ borderColor:'#ccc',
+ borderSize:'4',
+ draggable:0,
+ eventType:null, //click, blur, change, dblclick, error, focus, load, mousedown, mouseout, mouseup etc...
+ fixedWindowY:100,
+ functionCallOnOpen:null,
+ functionCallOnClose:null,
+ height:500,
+ loader:0,
+ loaderHeight:0,
+ loaderImagePath:'',
+ loaderWidth:0,
+ modal:0,
+ overlay:1,
+ overlayColor:'#000',
+ overlayOpacity:'85',
+ positionLeft:0,
+ positionTop:0,
+ positionType:'centered', // centered, anchored, absolute, fixed
+ width:500,
+ windowBGColor:'#fff',
+ windowBGImage:null, // http path
+ windowHTTPType:'get',
+ windowPadding:10,
+ windowSource:'inline', //inline, ajax, iframe
+ windowSourceID:'',
+ windowSourceURL:'',
+ windowSourceAttrURL:'href',
+ windowOverflow : 'auto',
+ ajaxParameters : {}
+ };
+
+ var settings = $.extend({}, $.fn.openDOMWindow.defaultsSettings , instanceSettings || {});
+
+ //Public functions
+
+ shortcut.viewPortHeight = function(){ return self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;};
+ shortcut.viewPortWidth = function(){ return self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;};
+ shortcut.scrollOffsetHeight = function(){ return self.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;};
+ shortcut.scrollOffsetWidth = function(){ return self.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft;};
+ shortcut.isIE6 = typeof document.body.style.maxHeight === "undefined";
+
+ //Private Functions/////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+ var sizeOverlay = function(){
+ var $DOMWindowOverlay = $('#DOMWindowOverlay');
+ if(shortcut.isIE6){//if IE 6
+ var overlayViewportHeight = document.documentElement.offsetHeight + document.documentElement.scrollTop - 4;
+ var overlayViewportWidth = document.documentElement.offsetWidth - 21;
+ $DOMWindowOverlay.css({'height':overlayViewportHeight +'px','width':overlayViewportWidth+'px'});
+ }else{//else Firefox, safari, opera, IE 7+
+ $DOMWindowOverlay.css({'height':'100%','width':'100%','position':'fixed'});
+ }
+ };
+
+ var sizeIE6Iframe = function(){
+ var overlayViewportHeight = document.documentElement.offsetHeight + document.documentElement.scrollTop - 4;
+ var overlayViewportWidth = document.documentElement.offsetWidth - 21;
+ $('#DOMWindowIE6FixIframe').css({'height':overlayViewportHeight +'px','width':overlayViewportWidth+'px'});
+ };
+
+ var centerDOMWindow = function() {
+ var $DOMWindow = $('#DOMWindow');
+ if(settings.height + 50 > shortcut.viewPortHeight()){//added 50 to be safe
+ $DOMWindow.css('left',Math.round(shortcut.viewPortWidth()/2) + shortcut.scrollOffsetWidth() - Math.round(($DOMWindow.outerWidth())/2));
+ }else{
+ $DOMWindow.css('left',Math.round(shortcut.viewPortWidth()/2) + shortcut.scrollOffsetWidth() - Math.round(($DOMWindow.outerWidth())/2));
+ $DOMWindow.css('top',Math.round(shortcut.viewPortHeight()/2) + shortcut.scrollOffsetHeight() - Math.round(($DOMWindow.outerHeight())/2));
+ }
+ };
+
+ var centerLoader = function() {
+ var $DOMWindowLoader = $('#DOMWindowLoader');
+ if(shortcut.isIE6){//if IE 6
+ $DOMWindowLoader.css({'left':Math.round(shortcut.viewPortWidth()/2) + shortcut.scrollOffsetWidth() - Math.round(($DOMWindowLoader.innerWidth())/2),'position':'absolute'});
+ $DOMWindowLoader.css({'top':Math.round(shortcut.viewPortHeight()/2) + shortcut.scrollOffsetHeight() - Math.round(($DOMWindowLoader.innerHeight())/2),'position':'absolute'});
+ }else{
+ $DOMWindowLoader.css({'left':'50%','top':'50%','position':'fixed'});
+ }
+
+ };
+
+ var fixedDOMWindow = function(){
+ var $DOMWindow = $('#DOMWindow');
+ $DOMWindow.css('left', settings.positionLeft + shortcut.scrollOffsetWidth());
+ $DOMWindow.css('top', + settings.positionTop + shortcut.scrollOffsetHeight());
+ };
+
+ var showDOMWindow = function(instance){
+ if(arguments[0]){
+ $('.'+instance+' #DOMWindowLoader').remove();
+ $('.'+instance+' #DOMWindowContent').fadeIn('fast',function(){if(settings.functionCallOnOpen){settings.functionCallOnOpen();}});
+ $('.'+instance+ '.closeDOMWindow').click(function(){
+ $.closeDOMWindow();
+ return false;
+ });
+ }else{
+ $('#DOMWindowLoader').remove();
+ $('#DOMWindow').fadeIn('fast',function(){if(settings.functionCallOnOpen){settings.functionCallOnOpen();}});
+ $('#DOMWindow .closeDOMWindow').click(function(){
+ $.closeDOMWindow();
+ return false;
+ });
+ }
+
+ };
+
+ var urlQueryToObject = function(s, q){
+ var query = typeof(q) != 'undefined' ? q : {};
+ s.replace(/b([^&=]*)=([^&=]*)b/g, function (m, a, d) {
+ if (typeof query[a] != 'undefined') {
+ query[a] += ',' + d;
+ } else {
+ query[a] = d;
+ }
+ });
+ return query;
+ };
+
+ //Run Routine ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
+ var run = function(passingThis){
+
+ //get values from element clicked, or assume its passed as an option
+ settings.windowSourceID = $(passingThis).attr('href') || settings.windowSourceID;
+ settings.windowSourceURL = $(passingThis).attr(settings.windowSourceAttrURL) || settings.windowSourceURL;
+ settings.windowBGImage = settings.windowBGImage ? 'background-image:url('+settings.windowBGImage+')' : '';
+ var urlOnly, urlQueryObject;
+
+ if(settings.positionType == 'anchored'){//anchored DOM window
+
+ var anchoredPositions = $(settings.anchoredSelector).position();
+ var anchoredPositionX = anchoredPositions.left + settings.positionLeft;
+ var anchoredPositionY = anchoredPositions.top + settings.positionTop;
+
+ $('body').append('