diff --git a/assets/img/PFC-icon.png b/assets/img/PFC-icon.png new file mode 100644 index 0000000..7b287a7 Binary files /dev/null and b/assets/img/PFC-icon.png differ diff --git a/hangar-wp-plugin.php b/hangar-wp-plugin.php index b706593..e7253b9 100644 --- a/hangar-wp-plugin.php +++ b/hangar-wp-plugin.php @@ -44,7 +44,9 @@ define( 'HANGAR_WPPLUGIN_VERSION', '1.0.0' ); * define Plugin path * https://developer.wordpress.org/reference/functions/plugin_dir_path/#comment-1113 * * * * * * * * * * * * * * * * * * */ -define( 'HANGAR_WPPLUGIN_PATH', plugin_dir_path( __FILE__ ) ); +define( 'HANGAR_WPPLUGIN_PATH', plugin_dir_path( __FILE__ ) ); //in server + +define( 'HANGAR_WPPLUGIN_URL', plugin_dir_url( __FILE__ ) ); //public include( HANGAR_WPPLUGIN_PATH . 'includes/hangar-init-textdomain.php'); diff --git a/includes/hangar-extracontent-in-postpage.php b/includes/hangar-extracontent-in-postpage.php index c487bad..70b625d 100644 --- a/includes/hangar-extracontent-in-postpage.php +++ b/includes/hangar-extracontent-in-postpage.php @@ -64,8 +64,8 @@ if ( ! function_exists( 'hangar_extra_content_callback' ) ) : $hangar_extra_content_stored_meta = get_post_meta( $post->ID ); ?>

- - [shortcode] que genera el icono PFC que ves en la barra de edición de texto.', 'hangar-wpplugin-textdomain' )?> + entrada o página de la web.', 'hangar-wpplugin-textdomain' )?> + [shortcode] que genera el icono PFC icon que ves en la barra de edición de texto.', 'hangar-wpplugin-textdomain' )?>

@@ -79,7 +79,7 @@ if ( ! function_exists( 'hangar_extra_content_callback' ) ) : $settings = array( 'textarea_name' => 'hangar_extra_content_wysiwyg_summary', 'media_buttons' => true, - 'textarea_rows' => 3, + 'textarea_rows' => 10, // https://www.kevinleary.net/customizing-tinymce-wysiwyg-editor-wordpress/ // 'tinymce' => array( // 'toolbar1' => 'formatselect,bold,italic,link,unlink,charmap,removeformat,wp_more', @@ -133,8 +133,9 @@ if ( ! function_exists( 'hangar_show_extra_content' ) ) : $meta_value = get_post_meta( get_the_ID(), 'hangar_extra_content_wysiwyg_summary', true ); // Checks and displays the retrieved value if( !empty( $meta_value ) ) { - echo '
'; - echo $meta_value; + echo '
'; + // to do shortcodes: https://developer.wordpress.org/reference/functions/apply_filters/ + echo apply_filters( 'the_content', $meta_value); echo '
'; } }