| @@ -5,13 +5,13 @@ | ||
| 5 | 5 | Description: A plugin to manage ALL your tracking code and conversion pixels, simply. Compatible with Facebook Ads, Google Adwords and ALL kind of Saas tool. |
| 6 | 6 | Author: IntellyWP |
| 7 | 7 | Author URI: http://intellywp.com/ |
| 8 | 8 | Email: aleste@intellywp.com |
| 9 | -Version: 1.4 | |
| 9 | +Version: 1.5 | |
| 10 | 10 | */ |
| 11 | 11 | define('TCM_PLUGIN_FILE',__FILE__); |
| 12 | 12 | define('TCM_PLUGIN_NAME', 'tracking-code-manager'); |
| 13 | -define('TCM_PLUGIN_VERSION', '1.4'); | |
| 13 | +define('TCM_PLUGIN_VERSION', '1.5'); | |
| 14 | 14 | define('TCM_PLUGIN_AUTHOR', 'IntellyWP'); |
| 15 | 15 | define('TCM_PLUGIN_ROOT', dirname(__FILE__).'/'); |
| 16 | 16 | define('TCM_PLUGIN_IMAGES', plugins_url( 'assets/images/', __FILE__ )); |
| 17 | 17 | |
| @@ -121,10 +121,10 @@ | ||
| 121 | 121 | wp_enqueue_script('jquery-ui-autocomplete'); |
| 122 | 122 | |
| 123 | 123 | wp_enqueue_style('tcm-css', plugins_url('assets/css/style.css', __FILE__ )); |
| 124 | 124 | wp_enqueue_style('tcm-select2-css', plugins_url('assets/deps/select2-3.5.2/select2.css', __FILE__ )); |
| 125 | - //wp_enqueue_style('tcm-select2-css2', plugins_url('deps/select2/css/select2.custom.css', __FILE__ )); | |
| 126 | 125 | wp_enqueue_script('tcm-select2-js', plugins_url('assets/deps/select2-3.5.2/select2.min.js', __FILE__ )); |
| 126 | + wp_enqueue_script('tcm-starrr-js', plugins_url('assets/deps/starrr/starrr.js', __FILE__ )); | |
| 127 | 127 | |
| 128 | 128 | wp_register_script('tcm-autocomplete', plugins_url('assets/js/tcm-autocomplete.js', __FILE__ ), array('jquery', 'jquery-ui-autocomplete'), '1.0', FALSE); |
| 129 | 129 | wp_localize_script('tcm-autocomplete', 'TCMAutocomplete', array('url' => admin_url('admin-ajax.php') |
| 130 | 130 | )); |
| @@ -198,14 +198,41 @@ | ||
| 198 | 198 | function showTabs() { |
| 199 | 199 | global $tcm; |
| 200 | 200 | $tab=$tcm->Check->of('tab', TCM_TAB_MANAGER); |
| 201 | 201 | |
| 202 | - echo '<h2 class="nav-tab-wrapper">'; | |
| 203 | - foreach ($this->tabs as $k=>$v) { | |
| 204 | - $active = ($tab==$k ? 'nav-tab-active' : ''); | |
| 205 | - echo '<a class="nav-tab '.$active.'" href="?page='.TCM_PLUGIN_NAME.'&tab='.$k.'">'.$v.'</a>'; | |
| 206 | - } | |
| 207 | - echo '</h2>'; | |
| 208 | - } | |
| 209 | -}; | |
| 202 | + ?> | |
| 203 | + <h2 class="nav-tab-wrapper" style="float:left; width:97%;"> | |
| 204 | + <?php | |
| 205 | + foreach ($this->tabs as $k=>$v) { | |
| 206 | + $active = ($tab==$k ? 'nav-tab-active' : ''); | |
| 207 | + ?> | |
| 208 | + <a style="float:left" class="nav-tab <?php echo $active?>" href="?page=<?php echo TCM_PLUGIN_NAME?>&tab=<?php echo $k?>"><?php echo $v?></a> | |
| 209 | + <?php | |
| 210 | + } | |
| 211 | + ?> | |
| 212 | + <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css"> | |
| 213 | + <style> | |
| 214 | + .starrr {display:inline-block} | |
| 215 | + .starrr i{font-size:16px;padding:0 1px;cursor:pointer;color:#2ea2cc;} | |
| 216 | + </style> | |
| 217 | + <div style="float:right; display:none;" id="rate-box"> | |
| 218 | + <span style="font-weight:700; font-size:13px; color:#555;"><?php $tcm->Lang->P('Rate us')?></span> | |
| 219 | + <div id="tcm-rate" class="starrr" data-connected-input="tcm-rate-rank"></div> | |
| 220 | + <input type="hidden" id="tcm-rate-rank" name="tcm-rate-rank" value="5" /> | |
| 221 | + | |
| 222 | + </div> | |
| 223 | + <script> | |
| 224 | + jQuery(function() { | |
| 225 | + jQuery(".starrr").starrr(); | |
| 226 | + jQuery('#tcm-rate').on('starrr:change', function(e, value){ | |
| 227 | + var url='https://wordpress.org/support/view/plugin-reviews/tracking-code-manager?rate=5#postform'; | |
| 228 | + window.open(url); | |
| 229 | + }); | |
| 230 | + jQuery('#rate-box').show(); | |
| 231 | + }); | |
| 232 | + </script> | |
| 233 | + </h2> | |
| 234 | + <div style="clear:both;"></div> | |
| 235 | + <?php } | |
| 236 | +} | |
| 210 | 237 | |
| 211 | 238 | $tcmTabs=new TCM_Tabs(); |