Changeset 2830207
- Timestamp:
- 12/07/2022 06:06:14 PM (3 years ago)
- Location:
- rock-content
- Files:
-
- 85 added
- 5 edited
-
tags/3.0.1 (added)
-
tags/3.0.1/.distignore (added)
-
tags/3.0.1/.eslintrc (added)
-
tags/3.0.1/.gitignore (added)
-
tags/3.0.1/.jshintignore (added)
-
tags/3.0.1/.parcel-cache (added)
-
tags/3.0.1/.parcel-cache/006382683751cb2c (added)
-
tags/3.0.1/.parcel-cache/51ea8fb016c64eb8 (added)
-
tags/3.0.1/.parcel-cache/59a44251f22362ad (added)
-
tags/3.0.1/.parcel-cache/70c3d7e52fdd0976 (added)
-
tags/3.0.1/.parcel-cache/748e64b1ec39ac27.txt (added)
-
tags/3.0.1/.parcel-cache/data.mdb (added)
-
tags/3.0.1/.parcel-cache/lock.mdb (added)
-
tags/3.0.1/.parcelrc (added)
-
tags/3.0.1/.stylelintrc.json (added)
-
tags/3.0.1/.wordpress-org (added)
-
tags/3.0.1/.wordpress-org/banner-772x250.png (added)
-
tags/3.0.1/.wordpress-org/icon-128x128.png (added)
-
tags/3.0.1/README.md (added)
-
tags/3.0.1/README.txt (added)
-
tags/3.0.1/RockContent.php (added)
-
tags/3.0.1/assets (added)
-
tags/3.0.1/assets/admin (added)
-
tags/3.0.1/assets/admin.js (added)
-
tags/3.0.1/assets/admin/img (added)
-
tags/3.0.1/assets/admin/img/empty_state.png (added)
-
tags/3.0.1/assets/admin/img/logo-rockcontent-blue.png (added)
-
tags/3.0.1/assets/admin/img/rockcontent.png (added)
-
tags/3.0.1/assets/admin/img/stage_Illustration.png (added)
-
tags/3.0.1/assets/admin/scripts (added)
-
tags/3.0.1/assets/admin/scripts/index.js (added)
-
tags/3.0.1/assets/admin/scripts/notifications.js (added)
-
tags/3.0.1/assets/admin/scripts/rockAnalytics.js (added)
-
tags/3.0.1/assets/admin/styles (added)
-
tags/3.0.1/assets/admin/styles/index.scss (added)
-
tags/3.0.1/assets/admin/styles/style.scss (added)
-
tags/3.0.1/assets/admin/styles/variables.scss (added)
-
tags/3.0.1/composer.json (added)
-
tags/3.0.1/composer.lock (added)
-
tags/3.0.1/dist (added)
-
tags/3.0.1/dist/admin.css (added)
-
tags/3.0.1/dist/admin.css.map (added)
-
tags/3.0.1/dist/admin.js (added)
-
tags/3.0.1/dist/admin.js.map (added)
-
tags/3.0.1/inc (added)
-
tags/3.0.1/inc/Admin (added)
-
tags/3.0.1/inc/Admin/ModelNotification.php (added)
-
tags/3.0.1/inc/Admin/Notification.php (added)
-
tags/3.0.1/inc/Admin/NotificationAdmin.php (added)
-
tags/3.0.1/inc/Admin/PluginAdmin.php (added)
-
tags/3.0.1/inc/Admin/index.php (added)
-
tags/3.0.1/inc/Core (added)
-
tags/3.0.1/inc/Core/Activator.php (added)
-
tags/3.0.1/inc/Core/Deactivator.php (added)
-
tags/3.0.1/inc/Core/PluginInit.php (added)
-
tags/3.0.1/inc/Core/PluginLoader.php (added)
-
tags/3.0.1/inc/Core/Utils.php (added)
-
tags/3.0.1/inc/Core/index.php (added)
-
tags/3.0.1/inc/Integrations (added)
-
tags/3.0.1/inc/Integrations/APIStudio.php (added)
-
tags/3.0.1/inc/Integrations/Authentication.php (added)
-
tags/3.0.1/inc/Integrations/ContentException.php (added)
-
tags/3.0.1/inc/Integrations/Requirements.php (added)
-
tags/3.0.1/inc/Integrations/Response.php (added)
-
tags/3.0.1/inc/Integrations/RockAnalytics.php (added)
-
tags/3.0.1/inc/Integrations/index.php (added)
-
tags/3.0.1/inc/index.php (added)
-
tags/3.0.1/index.php (added)
-
tags/3.0.1/package.json (added)
-
tags/3.0.1/uninstall.php (added)
-
tags/3.0.1/vendor (added)
-
tags/3.0.1/vendor/autoload.php (added)
-
tags/3.0.1/vendor/composer (added)
-
tags/3.0.1/vendor/composer/ClassLoader.php (added)
-
tags/3.0.1/vendor/composer/InstalledVersions.php (added)
-
tags/3.0.1/vendor/composer/LICENSE (added)
-
tags/3.0.1/vendor/composer/autoload_classmap.php (added)
-
tags/3.0.1/vendor/composer/autoload_namespaces.php (added)
-
tags/3.0.1/vendor/composer/autoload_psr4.php (added)
-
tags/3.0.1/vendor/composer/autoload_real.php (added)
-
tags/3.0.1/vendor/composer/autoload_static.php (added)
-
tags/3.0.1/vendor/composer/installed.json (added)
-
tags/3.0.1/vendor/composer/installed.php (added)
-
tags/3.0.1/yarn.lock (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/RockContent.php (modified) (2 diffs)
-
trunk/assets/admin/scripts/rockAnalytics.js (added)
-
trunk/inc/Admin/PluginAdmin.php (modified) (1 diff)
-
trunk/inc/Core/PluginInit.php (modified) (1 diff)
-
trunk/inc/Integrations/RockAnalytics.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rock-content/trunk/README.txt
r2807937 r2830207 5 5 Requires at least: 3.5.0 6 6 Tested up to: 6.0.3 7 Stable tag: 3.0. 07 Stable tag: 3.0.1 8 8 9 9 Este fantástico plugin permite integrar o seu blog Wordpress com as plataformas de marketing de conteúdo da [Rock Content](https://rockcontent.com/). … … 79 79 * Inserção da aba de notificações que será utilizada para comunicação com clientes do Stage. 80 80 81 = 3.0.1 = 82 * Correção do endpoint do Rock Analytics. 83 81 84 == Upgrade Notice == 82 85 -
rock-content/trunk/RockContent.php
r2807937 r2830207 16 16 * Plugin URI: https://rockcontent.com/ 17 17 * Description: Este fantástico plugin permite integrar o seu blog WordPress com a plataforma Rock Content. 18 * Version: 3.0. 018 * Version: 3.0.1 19 19 * Author: Rock Content 20 20 * Author URI: https://rockcontent.com/ … … 34 34 define( 'RCP_NAME', 'rock-content' ); 35 35 36 define( 'RCP_VERSION', '3.0. 0' );36 define( 'RCP_VERSION', '3.0.1' ); 37 37 38 38 define( 'RCP_NAME_DIR', plugin_dir_path( __FILE__ ) ); -
rock-content/trunk/inc/Admin/PluginAdmin.php
r2807937 r2830207 271 271 'nonce' => wp_create_nonce( 'rock_content_notification_nonce' ), 272 272 ) 273 ); 274 } 275 276 /** 277 * Queue the css and js which will execute in front pages 278 * 279 * @return void 280 * 281 * @since 3.0.0 282 */ 283 public function enqueue_front_scripts() { 284 wp_enqueue_script( 285 'rcp_rock_analytics_script', 286 plugin_dir_url( __FILE__ ) . '../../assets/admin/scripts/rockAnalytics.js', 287 array( 'jquery' ), 288 RCP_VERSION 273 289 ); 274 290 } -
rock-content/trunk/inc/Core/PluginInit.php
r2807937 r2830207 136 136 $this->loader->add_action( 'admin_init', $plugin_integration, 'rcp_initialize_layout_options' ); 137 137 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_integration, 'enqueue_admin_scripts' ); 138 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_integration, 'enqueue_front_scripts' ); 138 139 $this->loader->add_action( 'wp_ajax_hide_notification', $model_notification, 'hide_notification_callback' ); 139 140 $this->loader->add_action( 'wp_ajax_nopriv_hide_notification', $model_notification, 'hide_notification_callback' ); -
rock-content/trunk/inc/Integrations/RockAnalytics.php
r2807937 r2830207 181 181 */ 182 182 public static function inject_analytics_default() { 183 $data = array(); 183 184 184 185 if ( ! get_option( 'rcp_rock_analytics_enabled' ) ) { … … 190 191 } 191 192 192 $blog_name = esc_js( get_bloginfo( 'name' ) ); 193 echo esc_js( 194 " 195 <script type='text/javascript'> 196 window.chorusAnalytics_blogName = '$blog_name'; 197 </script> 198 " 199 ); 193 $blog_name = get_bloginfo( 'name' ); 200 194 201 195 if ( is_single() ) { 202 196 $post = get_post(); 203 197 $data = self::get_post_analytics_data( $post ); 204 205 $script_tag = " 206 <script type='text/javascript'> 207 window.chorusAnalytics_postType = '{$data['post_type']}'; 208 window.chorusAnalytics_postDate = {$data['post_date']}; 209 window.chorusAnalytics_postAuthor = '{$data['post_author']}'; 210 window.chorusAnalytics_postCategories = '{$data['categories_json']}'; 211 window.chorusAnalytics_postTags = '{$data['tags_json']}'; 212 window.chorusAnalytics_postWordCount = {$data['word_count']}; 213 window.chorusAnalytics_postPublishedByStudio = {$data['published_by_studio']}; 214 </script> 215 "; 216 217 echo esc_js( $script_tag ); 218 } 219 220 echo esc_js( 221 " 222 <script type='text/javascript'> 223 window.onload = function () { 224 if (!window.chorusAnalytics_isLoaded) { 225 var rockAnalyticsScript = document.createElement('script'); 226 rockAnalyticsScript.type = 'text/javascript'; 227 rockAnalyticsScript.src = '" . ROCK_ANALYTICS_SCRIPT . "'; 228 rockAnalyticsScript.async = true; 229 document.body.appendChild(rockAnalyticsScript); 230 } 231 }; 232 </script> 233 " 198 } 199 200 wp_localize_script( 201 'rcp_rock_analytics_script', 202 'ajax_object', 203 array( 204 'blog_name' => $blog_name, 205 'data' => $data, 206 'rock_analytics_script' => ROCK_ANALYTICS_SCRIPT, 207 ) 234 208 ); 235 209
Note: See TracChangeset
for help on using the changeset viewer.