Plugin Directory

Changeset 1463753


Ignore:
Timestamp:
07/30/2016 09:36:29 AM (10 years ago)
Author:
123teru321
Message:

v1.2.2

Location:
cfiltering/trunk
Files:
1 added
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • cfiltering/trunk/apis/related-post.php

    r1463732 r1463753  
    6868        }
    6969
     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 );
    7077        $html = $this->view( 'show-related-post', false, array(
    7178            "post" => $post,
    72             "data" => cf_get_jaccard( $post_id, 0, 0 )
     79            "data" => $data,
     80            "calculated" => $calculated,
     81            "threshold" => $threshold
    7382        ) );
    7483        return array(
  • cfiltering/trunk/collaborative-filtering.php

    r1463732 r1463753  
    55  Description: Recommendation plugin using collaborative filtering
    66  Author: 123teru321
    7   Version: 1.2.1
     7  Version: 1.2.2
    88  Author URI: http://technote.space/
    99  Text Domain: CollaborativeFiltering
     
    2727
    2828//plugin version
    29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.2.1' );
     29define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.2.2' );
    3030
    3131//plugin file name
  • cfiltering/trunk/languages/CollaborativeFiltering-ja.po

    r1463732 r1463753  
    33"Project-Id-Version: collaborative-filtering0.0.0.0.1\n"
    44"POT-Creation-Date: 2016-07-19 20:40+0900\n"
    5 "PO-Revision-Date: 2016-07-30 15:52+0900\n"
     5"PO-Revision-Date: 2016-07-30 17:23+0900\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    179179msgid "score"
    180180msgstr "スコア"
     181
     182msgid "data num"
     183msgstr "データ数"
  • cfiltering/trunk/lib/views/modal-script.php

    r1463732 r1463753  
    3232                cf_obj.set_modal_message(mes);
    3333            }
    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();
    4342        };
    4443        cf_obj.hide_modal = function () {
  • cfiltering/trunk/readme.txt

    r1463732 r1463753  
    2828
    29291. Settings.
     302. Show calculated data.
    3031
    3132== Changelog ==
     33
     34= 1.2.2 =
     35* 2016-07-30  Add information to calculate data window.
    3236
    3337= 1.2.1 =
  • cfiltering/trunk/update.json

    r1463732 r1463753  
    33  "slug": "cfiltering",
    44  "download_url": "https://github.com/123teru321/CFiltering/archive/master.zip",
    5   "version": "1.2.1",
     5  "version": "1.2.2",
    66  "tested": "4.5.3",
    77  "homepage": "https://technote.space/",
  • cfiltering/trunk/views/show-related-post.php

    r1463732 r1463753  
    66    #cf-modal-message .button-primary {
    77        float: right;
     8        margin-top: 10px;
     9    }
     10    .cf-calculated-status {
     11        text-align: right;
    812        margin-top: 10px;
    913    }
     
    3539    <?php endif; ?>
    3640</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>
    3748<input type="button" value="<?php _e( 'Close', COLLABORATIVE_FILTERING_TEXT_DOMAIN ); ?>" class="button-primary"
    3849       onclick="cf_obj.hide_modal(); return false;">
Note: See TracChangeset for help on using the changeset viewer.