Plugin Directory

Changeset 2067557


Ignore:
Timestamp:
04/12/2019 02:38:21 AM (7 years ago)
Author:
userlocal
Message:

Support ITP and additional tags.

Location:
user-insight
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • user-insight/tags/1.0.3/readme.txt

    r1872461 r2067557  
    44Tags: heatmap, Japanese, analytics, analyze, click, click map, clicks, conversion tracking, pageviews, ヒートマップ, アクセス解析, google analytics
    55Requires at least:
    6 Tested up to: 4.9
    7 Stable tag: 1.0.2
     6Tested up to: 5.1
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131
    3232= 1.0.2 =
     33* ITPに対応
     34* タグに自由記述欄を追加
     35
     36= 1.0.2 =
    3337* WordPressのバージョン4.9.5まで対応
    3438
  • user-insight/tags/1.0.3/readme_en.txt

    r1872461 r2067557  
    44Tags: heatmap, Japanese, analytics, analyze, click, click map, clicks, conversion tracking, pageviews, ヒートマップ, アクセス解析, google analytics
    55Requires at least:
    6 Tested up to: 4.8
    7 Stable tag: 1.0.1
     6Tested up to: 5.1
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3232== Changelog ==
    3333
     34= 1.0.3 =
     35* Support ITP.
     36* Support additional tags.
     37
    3438= 1.0.2 =
    3539* Support WP 4.9.5
  • user-insight/tags/1.0.3/user_insight.php

    r1872461 r2067557  
    3636    }
    3737
     38    // additional tags
     39    $additionalTag = @get_option('ui_additional_tag');
     40    $freeTag = !empty($additionalTag) ? $additionalTag : '';
     41
    3842    $tag = <<< EOF
    3943<!-- User Insight PCDF Code Start : userlocal.jp -->
     
    4549_uih['uigr_1'] = ''; _uih['uigr_2'] = ''; _uih['uigr_3'] = ''; _uih['uigr_4'] = ''; _uih['uigr_5'] = '';
    4650_uih['uigr_6'] = ''; _uih['uigr_7'] = ''; _uih['uigr_8'] = ''; _uih['uigr_9'] = ''; _uih['uigr_10'] = '';
     51_uic['uls'] = 1;
     52
     53{$freeTag}
    4754
    4855/* DO NOT ALTER BELOW THIS LINE */
     
    6976    wp_enqueue_style('ui-css-bootstrap', $pluginUrl . '/css/bootstrap.min.css');
    7077
     78    // setting id
    7179    if (isset($_POST['analyticsId'])) {
    7280      // using nonces and checking permissions
     
    8896    }
    8997
     98    // setting free additional tag
     99    if (isset($_POST['additionalTag'])) {
     100      // using nonces and checking permissions
     101      if (check_admin_referer('update_ui_add_tag', 'update_ui_add_tag_nonce') && current_user_can('administrator')) {
     102        $additionalTag = $_POST['additionalTag'];
     103
     104        @update_option('ui_additional_tag', $additionalTag);
     105        $message = array('alert-success', '自由記述を登録しました。');
     106      }
     107    } else {
     108      $additionalTag = @get_option('ui_additional_tag');
     109    }
     110
    90111    // show
    91112    $plugin_path = urlencode($pluginName . '/' . basename(__FILE__));
  • user-insight/tags/1.0.3/view/admin.php

    r1831188 r2067557  
    7070    </div>
    7171  </div>
     72
     73  <div class="row mt-1">
     74    <div class="col-sm-8">
     75      <div class="panel panel-default">
     76        <div class="panel-heading">
     77          <h3 class="panel-title">解析タグへの自由記述</h3>
     78        </div>
     79        <div class="panel-body">
     80          <form class="form-horizontal" method="POST" action="admin.php?page=<?php echo $plugin_path; ?>">
     81            <div class="form-group">
     82              <label class="col-sm-2 control-label" for="analyticsId">解析タグへの自由記述</label>
     83              <div class="col-sm-8">
     84                <textarea id="additionalTag" class="form-control input-sm" type="text" name="additionalTag"><?php echo $additionalTag; ?></textarea>
     85                <p class="help-block">※ 誤った記述を行うとサイトが表示できなくなる等の問題が発生する可能性があります。ヘルプ等をご覧の上、実際に必要な場合のみご利用ください。</p>
     86              </div>
     87            </div>
     88            <div class="form-group">
     89              <div class="col-sm-offset-2 col-sm-10">
     90                <button type="submit" class="btn btn-success">登録</button>
     91              </div>
     92            </div>
     93            <?php wp_nonce_field('update_ui_add_tag', 'update_ui_add_tag_nonce'); ?>
     94          </form>
     95        </div>
     96      </div>
     97    </div>
     98  </div>
     99
    72100  <div class="row mt-1">
    73101    <div class="col-sm-8">
  • user-insight/trunk/readme.txt

    r1872461 r2067557  
    44Tags: heatmap, Japanese, analytics, analyze, click, click map, clicks, conversion tracking, pageviews, ヒートマップ, アクセス解析, google analytics
    55Requires at least:
    6 Tested up to: 4.9
    7 Stable tag: 1.0.2
     6Tested up to: 5.1
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131
    3232= 1.0.2 =
     33* ITPに対応
     34* タグに自由記述欄を追加
     35
     36= 1.0.2 =
    3337* WordPressのバージョン4.9.5まで対応
    3438
  • user-insight/trunk/readme_en.txt

    r1872461 r2067557  
    44Tags: heatmap, Japanese, analytics, analyze, click, click map, clicks, conversion tracking, pageviews, ヒートマップ, アクセス解析, google analytics
    55Requires at least:
    6 Tested up to: 4.8
    7 Stable tag: 1.0.1
     6Tested up to: 5.1
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3232== Changelog ==
    3333
     34= 1.0.3 =
     35* Support ITP.
     36* Support additional tags.
     37
    3438= 1.0.2 =
    3539* Support WP 4.9.5
  • user-insight/trunk/user_insight.php

    r1872461 r2067557  
    3636    }
    3737
     38    // additional tags
     39    $additionalTag = @get_option('ui_additional_tag');
     40    $freeTag = !empty($additionalTag) ? $additionalTag : '';
     41
    3842    $tag = <<< EOF
    3943<!-- User Insight PCDF Code Start : userlocal.jp -->
     
    4549_uih['uigr_1'] = ''; _uih['uigr_2'] = ''; _uih['uigr_3'] = ''; _uih['uigr_4'] = ''; _uih['uigr_5'] = '';
    4650_uih['uigr_6'] = ''; _uih['uigr_7'] = ''; _uih['uigr_8'] = ''; _uih['uigr_9'] = ''; _uih['uigr_10'] = '';
     51_uic['uls'] = 1;
     52
     53{$freeTag}
    4754
    4855/* DO NOT ALTER BELOW THIS LINE */
     
    6976    wp_enqueue_style('ui-css-bootstrap', $pluginUrl . '/css/bootstrap.min.css');
    7077
     78    // setting id
    7179    if (isset($_POST['analyticsId'])) {
    7280      // using nonces and checking permissions
     
    8896    }
    8997
     98    // setting free additional tag
     99    if (isset($_POST['additionalTag'])) {
     100      // using nonces and checking permissions
     101      if (check_admin_referer('update_ui_add_tag', 'update_ui_add_tag_nonce') && current_user_can('administrator')) {
     102        $additionalTag = $_POST['additionalTag'];
     103
     104        @update_option('ui_additional_tag', $additionalTag);
     105        $message = array('alert-success', '自由記述を登録しました。');
     106      }
     107    } else {
     108      $additionalTag = @get_option('ui_additional_tag');
     109    }
     110
    90111    // show
    91112    $plugin_path = urlencode($pluginName . '/' . basename(__FILE__));
  • user-insight/trunk/view/admin.php

    r1831188 r2067557  
    7070    </div>
    7171  </div>
     72
     73  <div class="row mt-1">
     74    <div class="col-sm-8">
     75      <div class="panel panel-default">
     76        <div class="panel-heading">
     77          <h3 class="panel-title">解析タグへの自由記述</h3>
     78        </div>
     79        <div class="panel-body">
     80          <form class="form-horizontal" method="POST" action="admin.php?page=<?php echo $plugin_path; ?>">
     81            <div class="form-group">
     82              <label class="col-sm-2 control-label" for="analyticsId">解析タグへの自由記述</label>
     83              <div class="col-sm-8">
     84                <textarea id="additionalTag" class="form-control input-sm" type="text" name="additionalTag"><?php echo $additionalTag; ?></textarea>
     85                <p class="help-block">※ 誤った記述を行うとサイトが表示できなくなる等の問題が発生する可能性があります。ヘルプ等をご覧の上、実際に必要な場合のみご利用ください。</p>
     86              </div>
     87            </div>
     88            <div class="form-group">
     89              <div class="col-sm-offset-2 col-sm-10">
     90                <button type="submit" class="btn btn-success">登録</button>
     91              </div>
     92            </div>
     93            <?php wp_nonce_field('update_ui_add_tag', 'update_ui_add_tag_nonce'); ?>
     94          </form>
     95        </div>
     96      </div>
     97    </div>
     98  </div>
     99
    72100  <div class="row mt-1">
    73101    <div class="col-sm-8">
Note: See TracChangeset for help on using the changeset viewer.