Plugin Directory

Changeset 1373689


Ignore:
Timestamp:
03/18/2016 11:01:26 AM (10 years ago)
Author:
Friz
Message:

1.4.4

Location:
hal
Files:
40 added
3 edited

Legend:

Unmodified
Added
Removed
  • hal/trunk/constantes.php

    r1372175 r1373689  
    2929
    3030// Constante de Version USERAGENT
    31 define('version', '1.4.3');
     31define('version', '1.4.4');
  • hal/trunk/readme.txt

    r1372175 r1373689  
    44Requires at least: 4.0
    55Tested up to: 4.4.2
    6 Stable tag: 1.4.3
     6Stable tag: 1.4.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7070
    7171== Changelog ==
     72
     73= 1.4.4 =
     74*Release Date - 18 March 2016*
     75
     76Page :
     77
     78* **Important :** Fix bug Publications with DocType !
     79* Add class CSS for each DocType block (Example : grp-div-ART)
    7280
    7381= 1.4.3 =
  • hal/trunk/wp-hal.php

    r1372175 r1373689  
    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.3
     6 * Version: 1.4.4
    77 * Author: Baptiste Blondelle
    88 * Author URI: http://www.ccsd.cnrs.fr
     
    535535    <div class="display" id="publications">';
    536536            if (get_option('option_groupe') == 'grouper') {
    537                 $doctype = file_get_contents(__DIR__.'\json\doctype_'.lang.'.json');
     537                $doctype = file_get_contents(plugin_dir_path( __FILE__ ).'json\doctype_'.lang.'.json');
    538538                $jsontype = json_decode($doctype);
    539539
     
    547547                        if ($json->grouped->docType_s->groups[$d]->groupValue == $jsontype->response->result->doc[$i]->str[0]){
    548548                            $titre = $jsontype->response->result->doc[$i]->str[1];
    549                             $content .= '<li><div class="grp-div"><h3 class="wphal-titre-groupe">' . $titre . '<span class="wphal-nbmetadata" style="margin-left:10px;">' . $json->grouped->docType_s->groups[$d]->doclist->numFound . ' ' . _n('document', 'documents', $json->grouped->docType_s->groups[$d]->doclist->numFound, 'wp-hal') . '</span></h3>';
     549                            $content .= '<li><div class="grp-div-'. $jsontype->response->result->doc[$i]->str[0] .'"><h3 class="wphal-titre-groupe">' . $titre . '<span class="wphal-nbmetadata" style="margin-left:10px;">' . $json->grouped->docType_s->groups[$d]->doclist->numFound . ' ' . _n('document', 'documents', $json->grouped->docType_s->groups[$d]->doclist->numFound, 'wp-hal') . '</span></h3>';
    550550                            $content .= '<div class="grp-content">';
    551551                            $content .= '<ul>';
Note: See TracChangeset for help on using the changeset viewer.