Changeset 2300116
- Timestamp:
- 05/07/2020 02:36:13 PM (6 years ago)
- Location:
- display-your-zenodo-community
- Files:
-
- 8 edited
- 8 copied
-
tags/1.0.0 (copied) (copied from display-your-zenodo-community/trunk)
-
tags/1.0.0/AUTHORS (copied) (copied from display-your-zenodo-community/trunk/AUTHORS)
-
tags/1.0.0/CHANGELOG.md (copied) (copied from display-your-zenodo-community/trunk/CHANGELOG.md) (1 diff)
-
tags/1.0.0/README.md (copied) (copied from display-your-zenodo-community/trunk/README.md)
-
tags/1.0.0/README.txt (copied) (copied from display-your-zenodo-community/trunk/README.txt) (2 diffs)
-
tags/1.0.0/admin (copied) (copied from display-your-zenodo-community/trunk/admin)
-
tags/1.0.0/includes (copied) (copied from display-your-zenodo-community/trunk/includes)
-
tags/1.0.0/includes/class-display-your-zenodo-community.php (modified) (1 diff)
-
tags/1.0.0/public (copied) (copied from display-your-zenodo-community/trunk/public)
-
tags/1.0.0/public/class-display-your-zenodo-community-public.php (modified) (2 diffs)
-
tags/1.0.0/zenodo-plugin.php (modified) (1 diff)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/class-display-your-zenodo-community.php (modified) (1 diff)
-
trunk/public/class-display-your-zenodo-community-public.php (modified) (2 diffs)
-
trunk/zenodo-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
display-your-zenodo-community/tags/1.0.0/CHANGELOG.md
r2294161 r2300116 6 6 7 7 ## [Unreleased] 8 9 ## [1.0.0] - 2020-05-07 8 10 ### Added 9 11 - First skeleton of the plugin 12 - Addition of document counter 13 14 ### Changed 15 - Fix page counter -
display-your-zenodo-community/tags/1.0.0/README.txt
r2294161 r2300116 6 6 Tested up to: 5.4 7 7 Requires PHP: 5.6.35 8 Stable tag: 0.0.18 Stable tag: 1.0.0 9 9 License: Apache License - 2.0 10 10 License URI: http://www.apache.org/licenses/LICENSE-2.0 … … 32 32 == Changelog == 33 33 34 = Unreleased=34 = 1.0.0 = 35 35 * First skeleton of the plugin 36 * Addition of document counter 37 * Fix page counter 36 38 37 39 == Upgrade Notice == -
display-your-zenodo-community/tags/1.0.0/includes/class-display-your-zenodo-community.php
r2294132 r2300116 54 54 $this->version = ZENODO_PLUGIN_VERSION; 55 55 } else { 56 $this->version = ' 0.0.1';56 $this->version = '1.0.0'; 57 57 } 58 58 $this->plugin_name = 'display-your-zenodo-community'; -
display-your-zenodo-community/tags/1.0.0/public/class-display-your-zenodo-community-public.php
r2294132 r2300116 101 101 } 102 102 $html = "<div id=\"display-your-zenodo-community\">"; 103 $result_api = $this->zp_retrieve_json( $page ); 104 $nb_pages = 1; 105 if( isset( $result_api->aggregations->access_right->buckets[0]->doc_count ) ) { 106 $nb_pages = ceil( $result_api->aggregations->access_right->buckets[0]->doc_count / 10 ); 107 $html .= "<hr>"; 108 $html .= "<div class=\"counter-doc\">"; 109 $html .= "<span class=\"wphal-nbtot\">"; 110 $html .= $result_api->aggregations->access_right->buckets[0]->doc_count; 111 $html .= "</span>" . " documents"; 112 $html .= "</div>"; 113 } 103 114 $html .= "<ul>"; 104 $result_api = $this->zp_retrieve_json( $page );105 $nb_in_results = 1;106 115 foreach ( $result_api->hits->hits as $hit ) { 107 116 $html .= "<li>"; … … 133 142 134 143 $html .= "<ul class='zenodo-pagination'>"; 135 $nb_pages = 1;136 if( isset( $result_api->aggregations->access_right->buckets[0]->doc_count ) ) {137 $nb_pages = floor( $result_api->aggregations->access_right->buckets[0]->doc_count / 10 );138 }139 144 //Taken away from HAL plugin to have the same usability! 140 145 if( $page == 1 ) { -
display-your-zenodo-community/tags/1.0.0/zenodo-plugin.php
r2294162 r2300116 17 17 * Plugin URI: https://github.com/dariah-eric/display-your-zenodo-community 18 18 * Description: This plugin allows user to view their community data from Zenodo on WordPress 19 * Version: 0.0.119 * Version: 1.0.0 20 20 * Author: Yoann 21 21 * Author URI: https://www.dariah.eu -
display-your-zenodo-community/trunk/CHANGELOG.md
r2294130 r2300116 6 6 7 7 ## [Unreleased] 8 9 ## [1.0.0] - 2020-05-07 8 10 ### Added 9 11 - First skeleton of the plugin 12 - Addition of document counter 13 14 ### Changed 15 - Fix page counter -
display-your-zenodo-community/trunk/README.txt
r2294130 r2300116 6 6 Tested up to: 5.4 7 7 Requires PHP: 5.6.35 8 Stable tag: 0.0.18 Stable tag: 1.0.0 9 9 License: Apache License - 2.0 10 10 License URI: http://www.apache.org/licenses/LICENSE-2.0 … … 32 32 == Changelog == 33 33 34 = Unreleased=34 = 1.0.0 = 35 35 * First skeleton of the plugin 36 * Addition of document counter 37 * Fix page counter 36 38 37 39 == Upgrade Notice == -
display-your-zenodo-community/trunk/includes/class-display-your-zenodo-community.php
r2294132 r2300116 54 54 $this->version = ZENODO_PLUGIN_VERSION; 55 55 } else { 56 $this->version = ' 0.0.1';56 $this->version = '1.0.0'; 57 57 } 58 58 $this->plugin_name = 'display-your-zenodo-community'; -
display-your-zenodo-community/trunk/public/class-display-your-zenodo-community-public.php
r2294132 r2300116 101 101 } 102 102 $html = "<div id=\"display-your-zenodo-community\">"; 103 $result_api = $this->zp_retrieve_json( $page ); 104 $nb_pages = 1; 105 if( isset( $result_api->aggregations->access_right->buckets[0]->doc_count ) ) { 106 $nb_pages = ceil( $result_api->aggregations->access_right->buckets[0]->doc_count / 10 ); 107 $html .= "<hr>"; 108 $html .= "<div class=\"counter-doc\">"; 109 $html .= "<span class=\"wphal-nbtot\">"; 110 $html .= $result_api->aggregations->access_right->buckets[0]->doc_count; 111 $html .= "</span>" . " documents"; 112 $html .= "</div>"; 113 } 103 114 $html .= "<ul>"; 104 $result_api = $this->zp_retrieve_json( $page );105 $nb_in_results = 1;106 115 foreach ( $result_api->hits->hits as $hit ) { 107 116 $html .= "<li>"; … … 133 142 134 143 $html .= "<ul class='zenodo-pagination'>"; 135 $nb_pages = 1;136 if( isset( $result_api->aggregations->access_right->buckets[0]->doc_count ) ) {137 $nb_pages = floor( $result_api->aggregations->access_right->buckets[0]->doc_count / 10 );138 }139 144 //Taken away from HAL plugin to have the same usability! 140 145 if( $page == 1 ) { -
display-your-zenodo-community/trunk/zenodo-plugin.php
r2294162 r2300116 17 17 * Plugin URI: https://github.com/dariah-eric/display-your-zenodo-community 18 18 * Description: This plugin allows user to view their community data from Zenodo on WordPress 19 * Version: 0.0.119 * Version: 1.0.0 20 20 * Author: Yoann 21 21 * Author URI: https://www.dariah.eu
Note: See TracChangeset
for help on using the changeset viewer.