/* Widget Name: Editor Description: Insert and customize content with a rich text editor offering extensive formatting options. Author: SiteOrigin Author URI: https://siteorigin.com Documentation: https://siteorigin.com/widgets-bundle/editor-widget/ Keywords: content, formatting, richtext, text, tinymce, toolbar */ class SiteOrigin_Widget_Editor_Widget extends SiteOrigin_Widget { public function __construct() { parent::__construct( 'sow-editor', __( 'SiteOrigin Editor', 'so-widgets-bundle' ), array( 'description' => __( 'Insert and customize content with a rich text editor offering extensive formatting options.', 'so-widgets-bundle' ), 'help' => 'https://siteorigin.com/widgets-bundle/editor-widget/', ), array(), false, plugin_dir_path( __FILE__ ) ); } public function get_widget_form() { $global_settings = $this->get_global_settings(); return array( 'title' => array( 'type' => 'text', 'label' => __( 'Title', 'so-widgets-bundle' ), ), 'text' => array( 'type' => 'tinymce', 'rows' => 20, 'wpautop_toggle_field' => '.siteorigin-widget-field-autop input[type="checkbox"]', ), 'autop' => array( 'type' => 'checkbox', 'default' => $global_settings['autop_default'], 'label' => __( 'Automatically add paragraphs', 'so-widgets-bundle' ), ), ); } public function get_settings_form() { return array( 'autop_default' => array( 'type' => 'checkbox', 'default' => true, 'label' => __( 'Enable the "Automatically add paragraphs" setting by default.', 'so-widgets-bundle' ), ), ); } public function get_template_variables( $instance, $args ) { $instance = wp_parse_args( $instance, array( 'text' => '' ) ); if ( // Only run these parts if we're rendering for the frontend. empty( $GLOBALS[ 'SITEORIGIN_PANELS_CACHE_RENDER' ] ) && empty( $GLOBALS[ 'SITEORIGIN_PANELS_POST_CONTENT_RENDER' ] ) ) { if ( function_exists( 'wp_filter_content_tags' ) ) { $instance['text'] = wp_filter_content_tags( $instance['text'] ); } elseif ( function_exists( 'wp_make_content_images_responsive' ) ) { $instance['text'] = wp_make_content_images_responsive( $instance['text'] ); } // Manual support for Jetpack Markdown module. if ( class_exists( 'WPCom_Markdown' ) && Jetpack::is_module_active( 'markdown' ) && $instance['text_selected_editor'] == 'html' ) { $markdown_parser = WPCom_Markdown::get_instance(); $instance['text'] = $markdown_parser->transform( $instance['text'] ); } // Run some known stuff. if ( ! empty( $GLOBALS['wp_embed'] ) ) { $instance['text'] = $GLOBALS['wp_embed']->run_shortcode( $instance['text'] ); $instance['text'] = $GLOBALS['wp_embed']->autoembed( $instance['text'] ); } // As in the Text Widget, we need to prevent plugins and themes from running `do_shortcode` in the `widget_text` // filter to avoid running it twice and to prevent `wpautop` from interfering with shortcodes' output. $widget_text_do_shortcode_priority = has_filter( 'widget_text', 'do_shortcode' ); if ( $widget_text_do_shortcode_priority !== false ) { remove_filter( 'widget_text', 'do_shortcode', $widget_text_do_shortcode_priority ); } $instance['text'] = apply_filters( 'widget_text', $instance['text'], $instance, $this ); if ( $widget_text_do_shortcode_priority !== false ) { add_filter( 'widget_text', 'do_shortcode', $widget_text_do_shortcode_priority ); } if ( $instance['autop'] ) { $instance['text'] = wpautop( $instance['text'] ); } // Don't process more more quicktag if this is a preview. if ( ! $this->is_preview() && empty( $GLOBALS[ 'SITEORIGIN_PANELS_PREVIEW_RENDER' ] ) && ( isset( $_POST['action'] ) && $_POST['action'] != 'so_widgets_preview' ) ) { $instance['text'] = $this->process_more_quicktag( $instance['text'] ); } } $instance['text'] = do_shortcode( shortcode_unautop( $instance['text'] ) ); return array( 'text' => $instance['text'], ); } private function process_more_quicktag( $content ) { $post = get_post(); if ( ! empty( $post ) ) { $panels_content = get_post_meta( $post->ID, 'panels_data', true ); } // We only want to do this processing if on archive pages for posts with non-PB layouts. if ( ! is_singular() && empty( $panels_content ) && ! $this->is_block_editor_page() && empty( $GLOBALS['SO_WIDGETS_BUNDLE_PREVIEW_RENDER'] ) ) { if ( preg_match( '//', $content, $matches ) ) { $content = explode( $matches[0], $content, 2 ); $content = $content[0]; $content = force_balance_tags( $content ); if ( ! empty( $matches[1] ) ) { $more_link_text = strip_tags( wp_kses_no_null( trim( $matches[1] ) ) ); } else { $more_link_text = __( 'Read More', 'so-widgets-bundle' ); } $more_link = apply_filters( 'the_content_more_link', ' ID}\" class=\"more-link\">$more_link_text", $more_link_text ); $content .= '

' . $more_link . '

'; } } return $content; } public function get_style_name( $instance ) { // We're not using a style. return false; } public function get_form_teaser() { if ( class_exists( 'SiteOrigin_Premium' ) ) { return false; } return array( sprintf( __( 'Use Google Fonts right inside the Editor Widget with %sSiteOrigin Premium%s', 'so-widgets-bundle' ), '', '' ), ); } } siteorigin_widget_register( 'sow-editor', __FILE__, 'SiteOrigin_Widget_Editor_Widget' ); Comments for Gateway to Kyuquot https://www.gatewaytokyuquot.com Your Gateway to Endless Adventure... Mon, 28 Sep 2026 08:12:15 +0000 hourly 1 https://wordpress.org/?v=7.1.3 Comment on Fair Harbour: Ontario Visits by Free auto approve list 7-20-2018 https://www.gatewaytokyuquot.com/ontario-visits/#comment-147 Sat, 21 Jul 2018 20:28:46 +0000 http://www.gatewaytokyuquot.com/?p=258#comment-147 I just updated my site with a new list. I hope you all are having a great week.

]]>
Comment on Fair Harbour: What do you love? by Ines https://www.gatewaytokyuquot.com/what-do-you-love/#comment-146 Sat, 14 Jul 2018 10:13:12 +0000 http://www.gatewaytokyuquot.com/?p=239#comment-146 Can be Happening i am a new comer to this, I stumbled after this I’ve found This positively useful and it has aided me away loads. I really hope to make contributions & help other users like its allowed me personally to. Great job.

]]>
Comment on Fair Harbour: What do you love? by Fern https://www.gatewaytokyuquot.com/what-do-you-love/#comment-144 Tue, 10 Jul 2018 17:08:13 +0000 http://www.gatewaytokyuquot.com/?p=239#comment-144 You have brought up an extremely wonderful points, thanks for the post.

]]>
Comment on Fair Harbour: Ontario Visits by Tangki Panel https://www.gatewaytokyuquot.com/ontario-visits/#comment-143 Sun, 01 Jul 2018 12:42:01 +0000 http://www.gatewaytokyuquot.com/?p=258#comment-143 I hope I can visit Ontario someday. Do you any recommended travel agent?

regards

]]>
Comment on Fair Harbour: Ontario Visits by Henrietta https://www.gatewaytokyuquot.com/ontario-visits/#comment-142 Sun, 01 Jul 2018 01:22:09 +0000 http://www.gatewaytokyuquot.com/?p=258#comment-142 magnificent submit, very informative. I ponder why the opposite experts
of this sector don’t realize this. You should continue your writing.

I am sure, you have a huge readers’ base already!

]]>
Comment on Fair Harbour: Ontario Visits by Winnie https://www.gatewaytokyuquot.com/ontario-visits/#comment-141 Wed, 13 Jun 2018 22:31:00 +0000 http://www.gatewaytokyuquot.com/?p=258#comment-141 An impressive share! I have just forwarded this onto a friend who has
been conducting a little homework on this. And he in fact
ordered me lunch because I found it for him… lol.
So let me reword this…. Thank YOU for the meal!!
But yeah, thanx for spending the time to talk about this matter here on your web site.

]]>
Comment on Fair Harbour: Ontario Visits by Selene https://www.gatewaytokyuquot.com/ontario-visits/#comment-140 Thu, 31 May 2018 19:20:04 +0000 http://www.gatewaytokyuquot.com/?p=258#comment-140 It’s in reality a great and useful piece of information.
I’m satisfied that you shared this useful info with us. Please keep us up to date
like this. Thanks for sharing.

]]>
Comment on Labor Day Adventure… by 巨根增大网 https://www.gatewaytokyuquot.com/labor-day-adventure/#comment-139 Wed, 30 May 2018 00:02:50 +0000 http://www.gatewaytokyuquot.com/?p=744#comment-139 让人百看不厌的博客,真的不是很多!

]]>
Comment on Labor Day Adventure… by Protococcaceae https://www.gatewaytokyuquot.com/labor-day-adventure/#comment-138 Tue, 29 May 2018 23:32:52 +0000 http://www.gatewaytokyuquot.com/?p=744#comment-138 Good day! Look at a good offer for you. http://bit.ly/2KoqHtG

]]>
Comment on Fair Harbour: Ontario Visits by Zac https://www.gatewaytokyuquot.com/ontario-visits/#comment-137 Tue, 29 May 2018 18:29:06 +0000 http://www.gatewaytokyuquot.com/?p=258#comment-137 I have been exploring for a bit for any high quality articles or blog posts in this sort of space
. Exploring in Yahoo I at last stumbled upon this web site.
Reading this information So i’m glad to express that I’ve an incredibly excellent uncanny feeling I discovered exactly
what I needed. I such a lot indubitably will make certain to do not forget this web site and
provides it a glance on a relentless basis.

]]>