Changeset 2916731
- Timestamp:
- 05/24/2023 09:47:30 AM (3 years ago)
- Location:
- mowomo-redes-sociales
- Files:
-
- 4 deleted
- 6 edited
- 1 copied
-
assets/banner-1544x500.jpg (deleted)
-
assets/banner-772x250.jpg (deleted)
-
assets/icon-128x128.jpg (deleted)
-
assets/icon-256x256.jpg (deleted)
-
tags/2.0.6 (copied) (copied from mowomo-redes-sociales/trunk)
-
tags/2.0.6/README.md (modified) (2 diffs)
-
tags/2.0.6/includes/frontend/class.mwm-rrss.php (modified) (3 diffs)
-
tags/2.0.6/mowomo-redessociales.php (modified) (2 diffs)
-
trunk/README.md (modified) (2 diffs)
-
trunk/includes/frontend/class.mwm-rrss.php (modified) (3 diffs)
-
trunk/mowomo-redessociales.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mowomo-redes-sociales/tags/2.0.6/README.md
r2668006 r2916731 3 3 Tags: buttons, icons, share, social media, social share, social buttons 4 4 Requires at least: 4.6 5 Tested up to: 5.96 Stable tag: 2.0. 55 Tested up to: 6.2.0 6 Stable tag: 2.0.6 7 7 Requires PHP: 5.2.4 8 8 License: GPLv2 or later … … 36 36 37 37 == Changelog == 38 = 2.0.6 = 39 40 - Updated code review with WordPress version 6.2 41 38 42 = 2.0.5 = 39 43 -
mowomo-redes-sociales/tags/2.0.6/includes/frontend/class.mwm-rrss.php
r2668006 r2916731 259 259 if (is_object($post)) { 260 260 // Twitter specific 261 echo '<meta name="twitter:card" content="summary_large_image" />';261 echo '<meta name="twitter:card" content="summary_large_image" />'; 262 262 263 263 // Meta tags for Open Graph 264 echo '<meta property="og:description" content="' . esc_attr( $this->get_descripcion_post() ) . '" />'; 265 echo '<meta property="og:type" content="article" />'; 266 echo '<meta property="og:image" content="' . esc_attr( $this->get_imagen_destacada_post() ) . '" />'; 264 echo '<meta property="og:title" content="' . esc_attr( $this->get_title_post() ) . '" />'; 265 echo '<meta property="og:url" content="' . esc_attr( $this->get_url_post() ) . '" />'; 266 echo '<meta property="og:description" content="' . esc_attr( $this->get_descripcion_post() ) . '" />'; 267 echo $this->get_imagen_destacada_post(); 268 echo '<meta property="og:type" content="article" />'; 267 269 268 270 // Do stuff if need it … … 271 273 } 272 274 275 /** 276 * Returns the title of the current post. 277 * 278 * @since 1.0.0 279 * 280 * @return string 281 */ 282 function get_title_post() 283 { 284 global $post; 285 286 if ( !empty( $post->post_title ) ) { 287 288 $post_title = $post->post_title; 289 290 } else { 291 292 $post_title = ''; 293 294 } 295 296 return apply_filters( 'mwm_rrss_get_title_post', $post_title, $post->ID ); 297 } 298 299 /** 300 * Returns the url of the current post. 301 * 302 * @since 1.0.0 303 * 304 * @return string 305 */ 306 function get_url_post() 307 { 308 global $post; 309 310 $post_url = get_post_permalink( $post ); 311 312 if ( empty( $post_url ) ) { 313 314 $post_url = ''; 315 316 } 317 318 return apply_filters( 'mwm_rrss_get_url_post', $post_url, $post->ID ); 319 } 320 273 321 /** 274 322 * Returns the description of the current post. … … 308 356 global $post; 309 357 358 $html = ''; 310 359 $post_thumbnail_id = get_post_thumbnail_id( $post->ID ); 311 312 $post_thumbnail_data = wp_get_attachment_image_src( $post_thumbnail_id, 'large' ); 360 $post_thumbnail_data = wp_get_attachment_image_src( $post_thumbnail_id, 'thumbnail' ); 313 361 314 362 if ( is_array( $post_thumbnail_data ) ) { 315 return apply_filters( 'mwm_rrss_get_imagen_destacada_post', $post_thumbnail_data[0], $post->ID ); 316 } else { 317 return ''; 363 364 $post_thumbnail_data_src = $post_thumbnail_data[0]; 365 $post_thumbnail_data_width = $post_thumbnail_data[1]; 366 $post_thumbnail_data_height = $post_thumbnail_data[2]; 367 $post_thumbnail_data_alt = get_post_meta( $post_thumbnail_id, '_wp_attachment_image_alt', true ); 368 $post_thumbnail_data_type = get_post_mime_type( $post_thumbnail_id ); 369 370 ob_start()?> 371 372 <meta property="og:image" content="<?php echo esc_attr( $post_thumbnail_data_src ); ?>" /> 373 <meta property="og:image_secure_url" content="<?php echo esc_attr( $post_thumbnail_data_src ); ?>" /> 374 <meta property="og:image:width" content="<?php echo esc_attr( $post_thumbnail_data_width ); ?>" /> 375 <meta property="og:image:height" content="<?php echo esc_attr( $post_thumbnail_data_height ); ?>" /> 376 <meta property="og:image:alt" content="<?php echo esc_attr( $post_thumbnail_data_alt ); ?>" /> 377 <meta property="og:image:type" content="<?php echo esc_attr( $post_thumbnail_data_type ); ?>" /> 378 379 <?php $html = ob_get_clean(); 380 381 apply_filters( 'mwm_rrss_get_imagen_destacada_post', $html, $post->ID ); 382 318 383 } 384 385 return $html; 319 386 } 320 387 } -
mowomo-redes-sociales/tags/2.0.6/mowomo-redessociales.php
r2668006 r2916731 5 5 * Description: Light and simple plugin for allowing the readers of your blog to share your entries on their social networks. If you only need to offer the possibility to your readers of sharing your blog entries... Why getting complicated? 6 6 * Author: mowomo 7 * Author URI: https://mowomo.com/ sobre-mowomo7 * Author URI: https://mowomo.com/ 8 8 * Text Domain: mowomo-redes-sociales 9 9 * Domain Path: /languages/ 10 * Version: 2.0. 510 * Version: 2.0.6 11 11 * License: GPLv2 or later. 12 12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 13 * WC requires at least: 4.6 14 * WC tested up to: 5.914 * WC tested up to: 6.2.0 15 15 */ 16 16 … … 32 32 return; 33 33 } else { 34 define('MWM_RRSS_VERSION', '2.0. 5');34 define('MWM_RRSS_VERSION', '2.0.6'); 35 35 } 36 36 if (!defined('MWM_RRSS_SLUG')) { -
mowomo-redes-sociales/trunk/README.md
r2668006 r2916731 3 3 Tags: buttons, icons, share, social media, social share, social buttons 4 4 Requires at least: 4.6 5 Tested up to: 5.96 Stable tag: 2.0. 55 Tested up to: 6.2.0 6 Stable tag: 2.0.6 7 7 Requires PHP: 5.2.4 8 8 License: GPLv2 or later … … 36 36 37 37 == Changelog == 38 = 2.0.6 = 39 40 - Updated code review with WordPress version 6.2 41 38 42 = 2.0.5 = 39 43 -
mowomo-redes-sociales/trunk/includes/frontend/class.mwm-rrss.php
r2668006 r2916731 259 259 if (is_object($post)) { 260 260 // Twitter specific 261 echo '<meta name="twitter:card" content="summary_large_image" />';261 echo '<meta name="twitter:card" content="summary_large_image" />'; 262 262 263 263 // Meta tags for Open Graph 264 echo '<meta property="og:description" content="' . esc_attr( $this->get_descripcion_post() ) . '" />'; 265 echo '<meta property="og:type" content="article" />'; 266 echo '<meta property="og:image" content="' . esc_attr( $this->get_imagen_destacada_post() ) . '" />'; 264 echo '<meta property="og:title" content="' . esc_attr( $this->get_title_post() ) . '" />'; 265 echo '<meta property="og:url" content="' . esc_attr( $this->get_url_post() ) . '" />'; 266 echo '<meta property="og:description" content="' . esc_attr( $this->get_descripcion_post() ) . '" />'; 267 echo $this->get_imagen_destacada_post(); 268 echo '<meta property="og:type" content="article" />'; 267 269 268 270 // Do stuff if need it … … 271 273 } 272 274 275 /** 276 * Returns the title of the current post. 277 * 278 * @since 1.0.0 279 * 280 * @return string 281 */ 282 function get_title_post() 283 { 284 global $post; 285 286 if ( !empty( $post->post_title ) ) { 287 288 $post_title = $post->post_title; 289 290 } else { 291 292 $post_title = ''; 293 294 } 295 296 return apply_filters( 'mwm_rrss_get_title_post', $post_title, $post->ID ); 297 } 298 299 /** 300 * Returns the url of the current post. 301 * 302 * @since 1.0.0 303 * 304 * @return string 305 */ 306 function get_url_post() 307 { 308 global $post; 309 310 $post_url = get_post_permalink( $post ); 311 312 if ( empty( $post_url ) ) { 313 314 $post_url = ''; 315 316 } 317 318 return apply_filters( 'mwm_rrss_get_url_post', $post_url, $post->ID ); 319 } 320 273 321 /** 274 322 * Returns the description of the current post. … … 308 356 global $post; 309 357 358 $html = ''; 310 359 $post_thumbnail_id = get_post_thumbnail_id( $post->ID ); 311 312 $post_thumbnail_data = wp_get_attachment_image_src( $post_thumbnail_id, 'large' ); 360 $post_thumbnail_data = wp_get_attachment_image_src( $post_thumbnail_id, 'thumbnail' ); 313 361 314 362 if ( is_array( $post_thumbnail_data ) ) { 315 return apply_filters( 'mwm_rrss_get_imagen_destacada_post', $post_thumbnail_data[0], $post->ID ); 316 } else { 317 return ''; 363 364 $post_thumbnail_data_src = $post_thumbnail_data[0]; 365 $post_thumbnail_data_width = $post_thumbnail_data[1]; 366 $post_thumbnail_data_height = $post_thumbnail_data[2]; 367 $post_thumbnail_data_alt = get_post_meta( $post_thumbnail_id, '_wp_attachment_image_alt', true ); 368 $post_thumbnail_data_type = get_post_mime_type( $post_thumbnail_id ); 369 370 ob_start()?> 371 372 <meta property="og:image" content="<?php echo esc_attr( $post_thumbnail_data_src ); ?>" /> 373 <meta property="og:image_secure_url" content="<?php echo esc_attr( $post_thumbnail_data_src ); ?>" /> 374 <meta property="og:image:width" content="<?php echo esc_attr( $post_thumbnail_data_width ); ?>" /> 375 <meta property="og:image:height" content="<?php echo esc_attr( $post_thumbnail_data_height ); ?>" /> 376 <meta property="og:image:alt" content="<?php echo esc_attr( $post_thumbnail_data_alt ); ?>" /> 377 <meta property="og:image:type" content="<?php echo esc_attr( $post_thumbnail_data_type ); ?>" /> 378 379 <?php $html = ob_get_clean(); 380 381 apply_filters( 'mwm_rrss_get_imagen_destacada_post', $html, $post->ID ); 382 318 383 } 384 385 return $html; 319 386 } 320 387 } -
mowomo-redes-sociales/trunk/mowomo-redessociales.php
r2668006 r2916731 5 5 * Description: Light and simple plugin for allowing the readers of your blog to share your entries on their social networks. If you only need to offer the possibility to your readers of sharing your blog entries... Why getting complicated? 6 6 * Author: mowomo 7 * Author URI: https://mowomo.com/ sobre-mowomo7 * Author URI: https://mowomo.com/ 8 8 * Text Domain: mowomo-redes-sociales 9 9 * Domain Path: /languages/ 10 * Version: 2.0. 510 * Version: 2.0.6 11 11 * License: GPLv2 or later. 12 12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 13 * WC requires at least: 4.6 14 * WC tested up to: 5.914 * WC tested up to: 6.2.0 15 15 */ 16 16 … … 32 32 return; 33 33 } else { 34 define('MWM_RRSS_VERSION', '2.0. 5');34 define('MWM_RRSS_VERSION', '2.0.6'); 35 35 } 36 36 if (!defined('MWM_RRSS_SLUG')) {
Note: See TracChangeset
for help on using the changeset viewer.