Changeset 1463753
- Timestamp:
- 07/30/2016 09:36:29 AM (10 years ago)
- Location:
- cfiltering/trunk
- Files:
-
- 1 added
- 1 deleted
- 8 edited
-
apis/related-post.php (modified) (1 diff)
-
collaborative-filtering.php (modified) (2 diffs)
-
languages/CollaborativeFiltering-ja.mo (modified) (previous)
-
languages/CollaborativeFiltering-ja.po (modified) (2 diffs)
-
lib/views/modal-script.php (modified) (1 diff)
-
logs/cf.log (deleted)
-
readme.txt (modified) (1 diff)
-
screenshot-2.png (added)
-
update.json (modified) (1 diff)
-
views/show-related-post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cfiltering/trunk/apis/related-post.php
r1463732 r1463753 68 68 } 69 69 70 $data = cf_get_jaccard( $post_id, 0, 0 ); 71 if (count($data) > 0) { 72 $calculated = $data[0]['total']; 73 } else { 74 $calculated = 0; 75 } 76 $threshold = $this->apply_filters( 'jaccard_min_number', COLLABORATIVE_FILTERING_JACCARD_MIN_NUMBER ); 70 77 $html = $this->view( 'show-related-post', false, array( 71 78 "post" => $post, 72 "data" => cf_get_jaccard( $post_id, 0, 0 ) 79 "data" => $data, 80 "calculated" => $calculated, 81 "threshold" => $threshold 73 82 ) ); 74 83 return array( -
cfiltering/trunk/collaborative-filtering.php
r1463732 r1463753 5 5 Description: Recommendation plugin using collaborative filtering 6 6 Author: 123teru321 7 Version: 1.2. 17 Version: 1.2.2 8 8 Author URI: http://technote.space/ 9 9 Text Domain: CollaborativeFiltering … … 27 27 28 28 //plugin version 29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.2. 1' );29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.2.2' ); 30 30 31 31 //plugin file name -
cfiltering/trunk/languages/CollaborativeFiltering-ja.po
r1463732 r1463753 3 3 "Project-Id-Version: collaborative-filtering0.0.0.0.1\n" 4 4 "POT-Creation-Date: 2016-07-19 20:40+0900\n" 5 "PO-Revision-Date: 2016-07-30 1 5:52+0900\n"5 "PO-Revision-Date: 2016-07-30 17:23+0900\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 179 179 msgid "score" 180 180 msgstr "スコア" 181 182 msgid "data num" 183 msgstr "データ数" -
cfiltering/trunk/lib/views/modal-script.php
r1463732 r1463753 32 32 cf_obj.set_modal_message(mes); 33 33 } 34 $("#cf-modal-message-warp").fadeIn('normal', function () { 35 var check_resize = function () { 36 if ($("#cf-modal-message-warp").is(":visible")) { 37 cf_obj.set_modal_message_size(); 38 setTimeout(check_resize, 1000); 39 } 40 }; 41 check_resize(); 42 }); 34 $("#cf-modal-message-warp").show(); 35 var check_resize = function () { 36 if ($("#cf-modal-message-warp").is(":visible")) { 37 cf_obj.set_modal_message_size(); 38 setTimeout(check_resize, 1000); 39 } 40 }; 41 check_resize(); 43 42 }; 44 43 cf_obj.hide_modal = function () { -
cfiltering/trunk/readme.txt
r1463732 r1463753 28 28 29 29 1. Settings. 30 2. Show calculated data. 30 31 31 32 == Changelog == 33 34 = 1.2.2 = 35 * 2016-07-30 Add information to calculate data window. 32 36 33 37 = 1.2.1 = -
cfiltering/trunk/update.json
r1463732 r1463753 3 3 "slug": "cfiltering", 4 4 "download_url": "https://github.com/123teru321/CFiltering/archive/master.zip", 5 "version": "1.2. 1",5 "version": "1.2.2", 6 6 "tested": "4.5.3", 7 7 "homepage": "https://technote.space/", -
cfiltering/trunk/views/show-related-post.php
r1463732 r1463753 6 6 #cf-modal-message .button-primary { 7 7 float: right; 8 margin-top: 10px; 9 } 10 .cf-calculated-status { 11 text-align: right; 8 12 margin-top: 10px; 9 13 } … … 35 39 <?php endif; ?> 36 40 </table> 41 <div class="cf-calculated-status"> 42 <?php if ( $calculated >= $threshold ): ?> 43 (<?php _e('data num', COLLABORATIVE_FILTERING_TEXT_DOMAIN);?>: <span style="color: green;"><?php echo $calculated; ?> >= <?php echo $threshold; ?></span>) 44 <?php else: ?> 45 (<?php _e('data num', COLLABORATIVE_FILTERING_TEXT_DOMAIN);?>: <span style="color: orangered;"><?php echo $calculated; ?> < <?php echo $threshold; ?></span>) 46 <?php endif; ?> 47 </div> 37 48 <input type="button" value="<?php _e( 'Close', COLLABORATIVE_FILTERING_TEXT_DOMAIN ); ?>" class="button-primary" 38 49 onclick="cf_obj.hide_modal(); return false;">
Note: See TracChangeset
for help on using the changeset viewer.