Changeset 1595710
- Timestamp:
- 02/14/2017 12:41:56 PM (9 years ago)
- Location:
- hal/trunk
- Files:
-
- 3 edited
-
constantes.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-hal.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hal/trunk/constantes.php
r1588070 r1595710 32 32 33 33 // Constante de Version USERAGENT 34 define('version', '2.0. 4');34 define('version', '2.0.5'); -
hal/trunk/readme.txt
r1588070 r1595710 3 3 Tags: publication, HAL, archive 4 4 Requires at least: 4.0 5 Tested up to: 4. 5.36 Stable tag: 2.0. 35 Tested up to: 4.7.2 6 Stable tag: 2.0.5 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 77 77 78 78 == Changelog == 79 80 = 2.0.5 = 81 *Release Date - 14 February 2017* 82 83 Code : 84 * Code modification 79 85 80 86 = 2.0.4 = -
hal/trunk/wp-hal.php
r1588070 r1595710 4 4 * Plugin URI: http://www.ccsd.cnrs.fr 5 5 * Description: Crée une page qui remonte les publications d'un auteur ou d'une structure en relation avec HAL et un widget des dernières publications d'un auteur ou d'une structure. 6 * Version: 2.0. 46 * Version: 2.0.5 7 7 * Author: Baptiste Blondelle 8 8 * Author URI: http://www.ccsd.cnrs.fr … … 142 142 $content .= '<li><a href="#filtres" onclick="return false;" style="font-size:18px; text-decoration: none; cursor:default;">' . __('Filtres', 'wp-hal') . '</a>'; 143 143 $content .= '<ul id="wphal-filtres">'; 144 if (get_option('option_choix')[1] == 'contact') { 145 $content .= '<li><a href="#contact" onclick="displayElem(\'wphal-contact\'); return false;" style="margin:1px; text-decoration: none;">' . __('Contact', 'wp-hal'); 146 $content .= '</a></li>'; 147 } 148 if (get_option('option_choix')[2] == 'disciplines') { 149 $content .= '<li><a href="#disciplines" onclick="displayElem(\'wphal-disciplines\'); return false;" style="margin:1px; text-decoration: none;">' . __('Disciplines', 'wp-hal'); 150 $content .= '</a></li>'; 151 } 152 if (get_option('option_choix')[3] == 'mots-clefs') { 153 $content .= '<li><a href="#keywords" onclick="displayElem(\'wphal-keywords\'); return false;" style="margin:1px; text-decoration: none;">' . __('Mots-clefs', 'wp-hal'); 154 $content .= '</a></li>'; 155 } 156 if (get_option('option_choix')[4] == 'auteurs') { 157 $content .= '<li><a href="#auteurs" onclick="displayElem(\'wphal-auteurs\'); return false;" style="margin:1px; text-decoration: none;">' . __('Auteurs', 'wp-hal'); 158 $content .= '</a></li>'; 159 } 160 if (get_option('option_choix')[5] == 'revues') { 161 $content .= '<li><a href="#revues" onclick="displayElem(\'wphal-revues\'); return false;" style="margin:1px; text-decoration: none;">' . __('Revues', 'wp-hal'); 162 $content .= '</a></li>'; 163 } 164 if (get_option('option_choix')[6] == 'annee') { 165 $content .= '<li><a href="#annees" onclick="displayElem(\'wphal-annees\'); return false;" style="margin:1px; text-decoration: none;">' . __('Année de production', 'wp-hal'); 166 $content .= '</a></li>'; 167 } 168 if (get_option('option_choix')[7] == 'institution') { 169 $content .= '<li><a href="#insts" onclick="displayElem(\'wphal-insts\'); return false;" style="margin:1px; text-decoration: none;">' . __('Institutions', 'wp-hal'); 170 $content .= '</a></li>'; 171 } 172 if (get_option('option_choix')[8] == 'laboratoire') { 173 $content .= '<li><a href="#labs" onclick="displayElem(\'wphal-labs\'); return false;" style="margin:1px; text-decoration: none;">' . __('Laboratoires', 'wp-hal'); 174 $content .= '</a></li>'; 175 } 176 if (get_option('option_choix')[9] == 'departement') { 177 $content .= '<li><a href="#depts" onclick="displayElem(\'wphal-depts\'); return false;" style="margin:1px; text-decoration: none;">' . __('Départements', 'wp-hal'); 178 $content .= '</a></li>'; 179 } 180 if (get_option('option_choix')[10] == 'equipe') { 181 $content .= '<li><a href="#equipes" onclick="displayElem(\'wphal-equipes\'); return false;" style="margin:1px; text-decoration: none;">' . __('Équipes de recherche', 'wp-hal'); 182 $content .= '</a></li>'; 144 foreach (get_option('option_choix') as $option) { 145 if ($option == 'contact') { 146 $content .= '<li><a href="#contact" onclick="displayElem(\'wphal-contact\'); return false;" style="margin:1px; text-decoration: none;">' . __('Contact', 'wp-hal'); 147 $content .= '</a></li>'; 148 } 149 if ($option == 'disciplines') { 150 $content .= '<li><a href="#disciplines" onclick="displayElem(\'wphal-disciplines\'); return false;" style="margin:1px; text-decoration: none;">' . __('Disciplines', 'wp-hal'); 151 $content .= '</a></li>'; 152 } 153 if ($option == 'mots-clefs') { 154 $content .= '<li><a href="#keywords" onclick="displayElem(\'wphal-keywords\'); return false;" style="margin:1px; text-decoration: none;">' . __('Mots-clefs', 'wp-hal'); 155 $content .= '</a></li>'; 156 } 157 if ($option == 'auteurs') { 158 $content .= '<li><a href="#auteurs" onclick="displayElem(\'wphal-auteurs\'); return false;" style="margin:1px; text-decoration: none;">' . __('Auteurs', 'wp-hal'); 159 $content .= '</a></li>'; 160 } 161 if ($option == 'revues') { 162 $content .= '<li><a href="#revues" onclick="displayElem(\'wphal-revues\'); return false;" style="margin:1px; text-decoration: none;">' . __('Revues', 'wp-hal'); 163 $content .= '</a></li>'; 164 } 165 if ($option == 'annee') { 166 $content .= '<li><a href="#annees" onclick="displayElem(\'wphal-annees\'); return false;" style="margin:1px; text-decoration: none;">' . __('Année de production', 'wp-hal'); 167 $content .= '</a></li>'; 168 } 169 if ($option == 'institution') { 170 $content .= '<li><a href="#insts" onclick="displayElem(\'wphal-insts\'); return false;" style="margin:1px; text-decoration: none;">' . __('Institutions', 'wp-hal'); 171 $content .= '</a></li>'; 172 } 173 if ($option == 'laboratoire') { 174 $content .= '<li><a href="#labs" onclick="displayElem(\'wphal-labs\'); return false;" style="margin:1px; text-decoration: none;">' . __('Laboratoires', 'wp-hal'); 175 $content .= '</a></li>'; 176 } 177 if ($option == 'departement') { 178 $content .= '<li><a href="#depts" onclick="displayElem(\'wphal-depts\'); return false;" style="margin:1px; text-decoration: none;">' . __('Départements', 'wp-hal'); 179 $content .= '</a></li>'; 180 } 181 if ($option == 'equipe') { 182 $content .= '<li><a href="#equipes" onclick="displayElem(\'wphal-equipes\'); return false;" style="margin:1px; text-decoration: none;">' . __('Équipes de recherche', 'wp-hal'); 183 $content .= '</a></li>'; 184 } 183 185 } 184 186 $content .= '</ul></li>';
Note: See TracChangeset
for help on using the changeset viewer.