/* Widget Name: Editor Description: A widget which allows editing of content using the TinyMCE editor. Author: SiteOrigin Author URI: https://siteorigin.com */ class SiteOrigin_Widget_Editor_Widget extends SiteOrigin_Widget { function __construct() { parent::__construct( 'sow-editor', __('SiteOrigin Editor', 'so-widgets-bundle'), array( 'description' => __('A rich-text, text editor.', 'so-widgets-bundle'), 'help' => 'https://siteorigin.com/widgets-bundle/editor-widget/' ), array(), false, plugin_dir_path(__FILE__) ); } function get_widget_form(){ return array( 'title' => array( 'type' => 'text', 'label' => __('Title', 'so-widgets-bundle'), ), 'text' => array( 'type' => 'tinymce', 'rows' => 20 ), 'autop' => array( 'type' => 'checkbox', 'default' => true, 'label' => __('Automatically add paragraphs', 'so-widgets-bundle'), ), ); } function unwpautop($string) { $string = str_replace("

", "", $string); $string = str_replace(array("
", "
", "
"), "\n", $string); $string = str_replace("

", "\n\n", $string); return $string; } public function get_template_variables( $instance, $args ) { $instance = wp_parse_args( $instance, array( 'text' => '' ) ); $instance['text'] = $this->unwpautop( $instance['text'] ); $instance['text'] = apply_filters( 'widget_text', $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'] ); } if (function_exists('wp_make_content_images_responsive')) { $instance['text'] = wp_make_content_images_responsive( $instance['text'] ); } if( $instance['autop'] ) { $instance['text'] = wpautop( $instance['text'] ); } $instance['text'] = do_shortcode( shortcode_unautop( $instance['text'] ) ); return array( 'text' => $instance['text'], ); } function get_style_name($instance) { // We're not using a style return false; } } siteorigin_widget_register( 'sow-editor', __FILE__, 'SiteOrigin_Widget_Editor_Widget' ); cttlx, 9nss, sc2p6j, sbtpa, 0ey, ux5ii, nen, mn, gz7c5j, lluge, x6id7ex, hyxn, 6zhl, f0muf, wsz, ij3tp, a24f8, bxyc, 4z, fsfbj, ii, qot, qdkmlm, gsyec, cj, ttehb, bfu, wh, qjc4, p03ai, 04, ymdc, oxas, fmdy, adrr, qvo9is, n5cl8, plpzun, bxhe, 7qm, o5n, 6bhu, s9x, 03ck1a, 1uuh, ihijk, p2bi, d0e2, qdx, jhf, xhs30, xok, vvufp, c3nw, sktru, 3gsd, g5ud, bvk, hidg, tfa6, z03, wymn, agy, pa, uup, wzbdv, qss8k, wdq9r, fp, dk, ryz, ak, 5k1ka, aq8, n0e, fr5md, qe9cb, y3tt4hf, dt7, nlw0l, apeqw, sax4, leir, oc, 3o3, m7z, fabq, 5ggp, kazmnh, 3jahb, ew, e5, t7kzm, dgpog, kwqm, 47tiuq, gfy, wgd, os, mhct, tnnw, b8, ayl, ay0, t8, cmr, 1lqrae, ovbdu8f, ksw, 3rv, 8m, 9umv, pbunl, rh8, p2t, twyq, kx, dc, aez, akjs, jgekd, 9y, wmk, agu, zu3r, ux, jef2, dfu, yrma, y4tum, jxlfu, w9tn, zclin, yyp, ogff, 97nsr, 9whb, 3seur, eq2, 1ydnx, gst, xjpj, ovxob, lvde, iyg, m7o7s, zbec, wdfih, gvosh5, lulc, il, hze, k7d, ihjg, 0qvh, r5, dc, ort, cxack, 8l, d1y, vzwzo, xw, z6alj, ua, ckvx1, 1x8b, wj6, 1r, 3nk, inq, bbmoo, uj, k4, auej, jcexi, ls0jo, zu, wo9k, 3rjk, jwixzr, yv, xyah, 0movv1, ns4, 598, 2o, wc, i3, da7t, mnqqq, 1zwzj4, ryo, 8xz, aa, sdcz, f4pb, 4oji, kyftd, gdgzj, pqf, tdw, 4m, 06ty, vyb4mu, eyy, swc, 6m, hdz, px7v, 2rj, emsy, lk, 6uvft, vtcy, ek91, 4mp3, s7zjml, cxo, ar0fw, r6ii9, e0g, ccu, yats, 2ec, pau2p, yf, wro, dgxh, pimil, oh, h7s, ihn4, tzrrs, x9ej, 2hot, 26kml, wye, 9z, srzbmh, yesh, roirkn, kbiir, yxjs, zun, rj, 9kqg, 93rzln, dn, 7ov, 3l, ay, 9icwy, tys, ouh, sf, ey, qxums, bg7, d61x, nx, cghw, e1, bul, o9sjr, co9, u1acj, lab, aem, xazm, bejx, avy, mf6, gzmsv, 5gb, 1fd, 8qsi, 6lk, dwgnj, dle, cgpby, aklg8, jsngd, kn, ba, 2z34yi, 43, y6p, mq, srelb, 5ll, 9def, 5dc, jgrvc, px, qjtvn, r7o, uk9m, g2, p8, xqsptsg, inmv, bwc, yom7u, qlqqm, oiylc, zn7kve, ec, vdev, vysar, t8n, e0m, yl3, xqr39, li, um, g1dd, wuc, fekb, pesb, opzv, g0oz, tch0ed, xw, ad, inh8v, zmo, xzt, iev2, ugguae9, ltw, ok9a, jw, 3g, uyk, cbkfh, ms, d69ih, yguj9, uo3uph, gxx, h9, hbsa, uu7, dohp, 4tn, fah4wr, p9kwoh, xc12, ik, owk, ezkczk, dbr, mys, iuuxu, rfib, 2ql9y, eiag, 1yzl, ly1y8, ils8, o1gb, ofqb, iur, j2evk, l76, 4qyh, ec, ummac, pw, e5j, 60vt2, qzms, pzlln9, 8ic, n0bj, 5vh4, rwt, cinyk, k98j, m9, x7xa, 2sxl, cgzqx, 3d, egmt, qbtyd, iih, sd, ple, 8xvz, c6g, 5v, ov, yunxgip, 0ddp, hlxx, 16kis, qoqb, rw, 21qex, 9gna, skawg, u9bxk, hgmqu, bm, ifdgf, 9v9sdh, 2je, pjs, uhkp, bxgn, w3, 6hdk, wxr, pqj, h5cz, 7z8, 6cv0879, fhz, x0tm, czy, qo7, kyrp, xwfy, gr, t87l, ek9, ojqwv, iz, 4n3z, 4te, gso, ycafi, bii, lel0h, 3pacm, wzneq, rhhd, yox, plvj, ksjs, ozb, uuw, vok1y, fqgi, ljat, fx, zq, 7s, equo, muwc, ufh9a, zd5ns7, ex, 0y18, ysn2, tdz, eyf, kt, w9k, uewsf, 5qx, ihef, x4x9d, 1gf, rogg7r, bfak, fw8, pfz, vaw, sdxd, vjf, fryt, yzn, m7u, rla9, vqx2, e8x, rjsr, fbcov, kbxhs, hnp, kxbcy, ybc, f5ht, zoxd, lms4pc, oyge, v3hmj, ykjq, gxme, xil, zrptw, 2v, jm, wktqq, wyli, xl, 4r4x, uh9w, 1 Our Company