Changeset 1365600
- Timestamp:
- 03/07/2016 09:48:03 AM (10 years ago)
- Location:
- hal/trunk
- Files:
-
- 3 added
- 3 edited
-
constantes.php (modified) (1 diff)
-
json (added)
-
json/doctype_en.json (added)
-
json/doctype_fr.json (added)
-
readme.txt (modified) (2 diffs)
-
wp-hal.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hal/trunk/constantes.php
r1354256 r1365600 29 29 30 30 // Constante de Version USERAGENT 31 define('version', '1.4. 1');31 define('version', '1.4.2'); -
hal/trunk/readme.txt
r1352669 r1365600 4 4 Requires at least: 4.0 5 5 Tested up to: 4.4.2 6 Stable tag: 1.4. 16 Stable tag: 1.4.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 71 71 == Changelog == 72 72 73 = 1.4.2 = 74 *Release Date - 7 March 2016* 75 76 Page : 77 78 * Delete the curl request to the API for DocType 79 * Create new repository JSON with DocType => Improving performance 80 73 81 = 1.4.1 = 74 82 *Release Date - 17 February 2016* -
hal/trunk/wp-hal.php
r1352727 r1365600 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: 1.4. 16 * Version: 1.4.2 7 7 * Author: Baptiste Blondelle 8 8 * Author URI: http://www.ccsd.cnrs.fr … … 259 259 $content .= '<button type="button" class="trioc" href="" id="trinbaut" onclick="toggleSort(this, false, \'wphal-aut\', \'auteursuite\', \'trinbaut\'); return false;" style="font-size:16px; text-decoration: none;">Tri Occurrence</button>'; 260 260 $content .= '</span>'; 261 $content .= '<ul class="wphal-auteurs" style="list-style-type: none;">';261 $content .= '<ul class="wphal-auteurs" style="list-style-type: none;">'; 262 262 $content .= '<div id="wphal-aut">'; 263 263 $r = 0; … … 535 535 <div class="display" id="publications">'; 536 536 if (get_option('option_groupe') == 'grouper') { 537 //cURL sur l'API doctype pour récupérer les labels des docType 538 $chtype = curl_init(urltype.'/lang/'.lang); 539 // Options 540 $options = array( 541 CURLOPT_RETURNTRANSFER => true, 542 CURLOPT_HTTPHEADER => array('Content-type: application/json'), 543 CURLOPT_TIMEOUT => 10, 544 CURLOPT_USERAGENT => "HAL Plugin Wordpress " . version 545 ); 546 547 // Bind des options et de l'objet cURL que l'on va utiliser 548 curl_setopt_array($chtype, $options); 549 // Récupération du résultat JSON 550 $jsontype = json_decode(curl_exec($chtype)); 551 curl_close($chtype); 537 $doctype = file_get_contents(__DIR__.'\json\doctype_'.lang.'.json'); 538 $jsontype = json_decode($doctype); 552 539 553 540 //LISTE DES DOCUMENTS PAR GROUPE
Note: See TracChangeset
for help on using the changeset viewer.