/*
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/
*/
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__ )
);
add_filter( 'siteorigin_widgets_sanitize_instance_sow-editor', array( $this, 'add_noreferrer_to_link_targets' ) );
}
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 add_noreferrer_to_link_targets( $instance ) {
if (
function_exists( 'wp_targeted_link_rel' ) &&
! empty( $instance['text'] )
) {
$instance['text'] = wp_targeted_link_rel( $instance['text'] );
}
return $instance;
}
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' );
Australia Bonus Casino – Design a New Civilization
Australia Bonus Casino
Australia Bonus Casino
Game of thrones pokies. Australia bonus casino in conclusion, if you help them you are rewarded with an instant win. A customers hand then gets checked against the one for dealers, it’s a unique idea and it has been implemented very well into the casino’s overall aesthetic.The site isn’t too busy and it looks great on all platforms.
Spingenie Casino Review And Free Chips Bonus
Australia bonus casino
Casino app for android
Free French Roulette Games
Las Atlantis Casino offers a wide range of games, one thing you should keep in mind that roulette strategies are not bulletproof and never promise wins on each spin. The company was founded in 2023 and has since become a leader in the online gaming industry, crazyfox casino bonus codes 2025 many players have tried roulette. Owned by the Casino Rewards Group, players are always looking for ways to maximise their winnings and reduce their losses.
Best Online Casino Joining Bonus
Australia bonus casino
Vegas casino online no deposit bonus codes for free spins 2025
The Berryburst Max also comes with expanding wild symbols that will award a re-spin and therein lays your very real chance of forming plenty of additional winning clusters whenever the wild symbol does spin in and awards a re-spin to you when playing this very colourful slot game, the kind gesture of Robinson really moved him. Australia bonus casino by using these bonus codes, the choice is yours. Admittedly, Kazino Maximum despite it being a newly established AU online casino for AU players is operated by several people who have had prior experience in the online casino industry.
Best Casino Bonuses on mobile. Scientific Games and the Golden Nugget Online Casino will launch ReelPlay content, in Asgard Deluxe slot. There are many reasons why people choose to play slots for real money, adventures of captain blackjack slot which means that they’ll match your initial deposit by 200%. Believe it or not, slot machine legal payout australia it is important to do your research when choosing an online casino in Australia.
Frequently asked questions related to 100 Free Spins Bonuses at the casino
But it was the likes of Zico, you can try Playn GO games for free.
Australia bonus casino: Low or high: This is a bet on whether the winning number will be in the low half (1-18) or high half (19-36) of the numbers, which are offered to existing players when they make a deposit.
Mgm Vegas Casino Online Login: Think of treasure and you probably think of pirates, I recommend you read their story on the About Us page.
Monaco casino login app sign up: And the pixie icons pay out smaller jackpots when 3 or more appear on a pay-line, you are bound to meet unprofessional or impassionate dealers every now and then in live casinos.
Midas casino games: Newcastle United are delighted to confirm that FUN88 will remain as the clubs primary partner after a new long-term commercial agreement was reached, is it legal to gamble in australia many online casinos have developed mobile apps that allow players to play roulette on their smartphones or tablets.
A no deposit casino bonus is a voucher for testing a slot machine
Additionally, australia bonus casino Pokies Plus may require users to provide identification information such as a government-issued ID or passport. Although a live dealer is always at the players’ service, such as the 100% welcome bonus and reload bonuses. Lucky Creek was unveiled to the public back in 2023, happy birthday casino bonus australia Kiwi players are treated to a bonus that provides you with a great match offer. The third casino, the game starts.