/** * FVP Shortcode help tab. */ public function shortcode() { $screen = get_current_screen(); $title = esc_html__('Featured Video Plus: Shortcode', 'featured-video-plus'); $content = array(); // Tab Headline $content[] = FVP_HTML::html('h3', $title); $content[] = FVP_HTML::unordered_list(array('<code>[featured-video-plus]</code><br />' . '<span>' . esc_html__('Displays the video in its default size.', 'featured-video-plus') . '</span>', '<code>[featured-video-plus width=560]</code><br />' . '<span>' . esc_html__('Displays the video with a width of 300 pixel. Height will be fitted such that the aspect ratio is preserved.', 'featured-video-plus') . '</span>', '<code>[featured-video-plus width=560 height=315]</code><br />' . '<span>' . esc_html__('Displays the video with a fixed width and height.', 'featured-video-plus') . '</span>')); // Register tab. $screen->add_help_tab(array('id' => 'fvp_help_shortcode', 'title' => $title, 'content' => implode('', $content))); }
/** * Message about support forums, rating and donating. * * @since 1.0 */ public function message() { echo FVP_HTML::html('p', sprintf(esc_html__('If you have found a bug or think a specific feature is missing, %slet me know%s in the support forum. Like this plugin? %sRate it%s or %sbuy me a cookie%s!', 'featured-video-plus'), '<a href="https://wordpress.org/support/plugin/featured-video-plus#plugin-title" title="Featured Video Plus Support Forum on WordPress.org" target="_blank" style="font-weight: bold;">', '</a>', '<a href="https://wordpress.org/support/view/plugin-reviews/featured-video-plus#plugin-title" title="Rate Featured Video Plus on WordPress.org" target="_blank" style="font-weight: bold;">', '</a>', '<a href="https://paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AD8UKMQW2DMM6" title="Gift to the developer!" target="_blank" style="font-weight: bold;">', '</a>')); }