Plugin Directory

Changeset 1365600


Ignore:
Timestamp:
03/07/2016 09:48:03 AM (10 years ago)
Author:
Friz
Message:

New version 1.4.2

Location:
hal/trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • hal/trunk/constantes.php

    r1354256 r1365600  
    2929
    3030// Constante de Version USERAGENT
    31 define('version', '1.4.1');
     31define('version', '1.4.2');
  • hal/trunk/readme.txt

    r1352669 r1365600  
    44Requires at least: 4.0
    55Tested up to: 4.4.2
    6 Stable tag: 1.4.1
     6Stable tag: 1.4.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7171== Changelog ==
    7272
     73= 1.4.2 =
     74*Release Date - 7 March 2016*
     75
     76Page :
     77
     78* Delete the curl request to the API for DocType
     79* Create new repository JSON with DocType => Improving performance
     80
    7381= 1.4.1 =
    7482*Release Date - 17 February 2016*
  • hal/trunk/wp-hal.php

    r1352727 r1365600  
    44 * Plugin URI: http://www.ccsd.cnrs.fr
    55 * 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.1
     6 * Version: 1.4.2
    77 * Author: Baptiste Blondelle
    88 * Author URI: http://www.ccsd.cnrs.fr
     
    259259                $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>';
    260260                $content .= '</span>';
    261                 $content .= '<ul class="wphal-auteurs" style="list-style-type: none;">';
     261                $content .= '<ul class="wphal-auteurs" style="list-style-type: none;">';
    262262                $content .= '<div id="wphal-aut">';
    263263                $r = 0;
     
    535535    <div class="display" id="publications">';
    536536            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);
    552539
    553540//LISTE DES DOCUMENTS PAR GROUPE
Note: See TracChangeset for help on using the changeset viewer.