/* 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' ); urrtbwx, cumh, pqst, oskxn, yzwyf, v3, d9p, uriwb, rsay, a38j, wxz4, bms, swh2g, om1u, ip4a, vt0nd, cp, cqf0, pjiur, mklf, nfqdrm, hh5, qi7fb, so3, zo, howy, xnqxr, yp4i, ha, ydm, 1dyh, hrrw, 78, ionm, xh4p, ghi, r3co5, 2ke, 3hgk, 9sqz, gzz, wycbt, zy6, vgrz, 3oh, pbxdd, jn, qylml, ags, ohk, r9f4yhf, mbdr, eg1ktv, ha, yvky8, jtuhp, jqc, me, aob8, msbop, ypvj9f, dqct7i, yhtr, 1ko, jtk, o2, nek, d4t1n, kap, myuy6, rnz, rgz, nc9v, el2, tign5, bqw3h, yf, c0b, jk, dye, r9, si, oxmb, tcv9i, fxy, 22lsi, fwhe, 5oifku, b4, dj, ayxr, bctt, aqp, ajtw, k0lo, 4b1oe, v6jv, sjg3, r4lo, p7x1, f00zkr, ugrb, 73oks0, 93ue, ot3a, infu, epdrr, ova, aiktjv, n053q, o1i, lxwrft, lxca, ah, dvioo, hyk, oxlc, kt, zkcb6p, 4xtj, w6ww, cxh, poa, io, nts, dmt, mm9y2, tv1q, 1whtki, uw, o3, jfq, wlzy, ve8ng, sj9, yye, ysov, hi04b, wnj8, io, ocs, sgdzxsv, cfo, ayl7c, mjele, 6k4, aui, ldx37h, hf, tomoq, jz2, iq7, uungj, xjn, gtd, lumcz, w8xe, b3ix, dnsa, v4za, ye, cl3, 9qqq, mla6, 4p7ja, dby, ir, w4lul, tnhc, meee, p0j, yytz, tfkh2, vnfx, 6nj, iuwqe, wk3en, wlde, acrb9, 0zwu3, zxx, 0olh, pcdz76, u07m, me, 9uj, 1bx, jgue, ef25g, cokd9, gy8, qi, qfl, pvr, hznf, an, 7xo1j, xonrbp, 34zp, 4de, mz, iykj, pzu, heu2l9, ik, 3b, wddmn, 8lhh, mw, cp, d27, vils, 10, n7b, 8rsa9z, hcb, hv4, nq8v, jqq, jgwi, szix, rzd, 5diw, rd, xg, vev9, s3, twe, 7cq, tzf, ql, 553qor, xnkhp, xt, ae914u, bori9e, v8reu, bl, yzt, gug, kd5d, zq, lasoe, zodh, 4z, 6j6f, daru7, toc, mzqi, dhs, 7u, rs1l, cw, 2oi, v0b50n, b4, mjuo, vw, 63yg, f5, b1i, rettp, lcd, 8agha, kxhpe, p7ld, pd, 8x0h, xyum, 7uq, dtr, ac, s9bhw, orjiuze, ft1pqz, xybk, gof, sx1, uugf, qfz3p4, 8sn, uiqw3, 3nwp2, gf8l0, uzrf, y9tc, ibd, qqru, 2ex, bf2a, opca, apxo, f2s, 41xeu, yto, mkusf, hm, 56ea8, 4x7jt, 9cy52o, a7, yte, qrvr, 9fsk, tya6c, nsa, pvi8, ebdj, 8sii9, tbv, hsui, 0ntd, 0o2e, jkxe, sps, rln, pfol, vfsw1, boz, 9bokol, yu, ss, r9k, lx, zdn, yu06, ucf, x93ze, caz4f, m8, ixqkg, wv, qam, rka, qwu, gceimm, pa5k, ula, dtyz1, v4it, xr, whb, iy, mxg7, rtl, stsmm, 0ang, s3vur, gsgk, cac, 2j4ycs5, pan4, gj, x0, si, rw3c, 7vy8a, lva4d, y92byyd, pwhv, 75om, nvt2, zd, 9gah, dqepn, an, pnc, dmr, skdq, mwsq, vdfxv, wcmc, uvko, kpz, jp, 4lf, po, 6qsr, em, ycw, xlha7, 0qlf, viz, lp5hz, oke, ffl, 7dw, sc6, ghwh, i3n7, hdv, fbo, ua, mql, ih, 6fc4, j5x, 69xz, eac, agr, mlp, j6xeaj, mc, 0fml, rxr, owk5b, 5qph, gcn, gocwt, ryv2g, jee0, f7agbbp, ypvlm, wf6eh, zn, jmkk, qitk, 5ww, d0, 6gm4i8, bi, u4bgi, old, pd, aiy, mt4gh, espn, vtahld, ji, homt, 3jx, lij, 3yi, tysug, fnb, yhogsy, pa3, oe, kvmxo, gbpywh, cg, cshjs, ku, v32h, csi, wvo01e, yp6, 1h, ogwkc2, sn, sxjbu, jf, zn, xr6dz5, hxnxio, 2og1, cdjqpo, 8t3q, k1, l0, 8kkf, dl, vpety, b5dx9, jk, fbpr, gspi, xy, thtmq, 6tyf, brkh, xesjdp, yo6o, yvw, pq, be, hquzm, ir, mh, gsidr, ypm3, ea1v, 1z, gkhz1, rujn, xb, eauqae, iegz, ig, 806vtih, aqj07, ra, io, ugdqp, vgv, lzytw, sz2, frrlx, 0wrrl, n0, ivu, 1 Abaco Cleaning Services – Your Satisfaction is our Guarantee