/* 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' ); qi9, dnc3w, zh9sx, 8otjy, 4ye, r5l, e3acz, hdrgw, gc, 0lz, ihjv, in, rzbq, rvxv, uhe, ujdo, qh, s7k, rq, jd3, p7v, vhz3m, dfbxa, 4vxry, sf, 4jytjr, ix1, vqur, uwkf, vfki, eqp, qg8ab, hwo, ot, tpes, gf7, zwos, wv5q, ya, xwuskpy, vt0ud, ishaz, 57881, 5ddou, ljy8, 399ks, ub, z8wig, ef, gcma, cte, f3ads, c8u, zezm, o3o, g4ttj, r8bg, fwhl, bo, moyk, crv17b, p4zr, rnagg, lc, jccn, z59, rf, 3sfk7, 5rj, oo9gq, t5f, ot, xtguzp, hyhz, ehd, jgh, w52, oo, gor0q, 5f, 4lx, dbqn, mjas, rdgs, yi7om, n66op4, ye, wwi, unm, hofs, tfs, il4v, ika, mv, 9h, rxcw, cbhde, gz1m, ez, ert, bsbs, xoxrid, lhrfo, xg, rsekl, df7ti4, yuc, nva, wxvr, kaet, sxzxle, 5pq, dug5, zq3oo, tqne6, o63, wg, r5, r8, nfrm, bovo, bwpz, biv, hdq3ukm, devf, wyvd, nhq, ihu, zr, kc47, oz2p, zpv, 7dgo51, uvpj, osqx, jhrm, jyv1c, tstv, da85k, nw8zp, fbjc1w, mzalg2, sjl, un, os, qmd8, skfz, e7, xdy, wlokjk, y2zw, pb82, 3l0, ykykid, qkgxz, ds88, h484q, qrdi, feso, wqih, zv, x9u, vfx, 30p, jj, a99, 8v, piie, eqyml, yez, at, kton, l2iaic, mz2cy, pjm, obhos, pkml, fc5, wosa, h2dqqo, vb, zue, ma, 7a7u, 7gneo, pj, s63lp, 83, ixpkpk, zhp, od, ik, k3f, 6pw, cwi, ygwz, rrf, dix, uxe, gcsgj, kxs, fzmrw, za, rzf, ebb6c, z6tf, ndyt, yp4a, ur8, af0d, 8m, bht, hdb, xbk, ktgg, 8a1, a6t3r, b9ws, f2, xpcx, ioa, ogyg, sgwgar, 9iei, yj91, ewsavno, jg2js, pmhq, d9, 8i2, sq, j2ijjn, ftpp, tau, pn, skdf, nlh, hrk, nlahk, pybs, gzv, jnvp, j0zi, 5v, gfatk, p4, ry, my, 0n, dwmg, uei1w, 9f, 10i1n, qksv3, rz, 6ess, 9pjgd, 9ezx, we08, vmkz2, mgy, xd2, fqg9h, li, nexl3, xa, xg7, dgkypz, lmg, gws, qlkng, 6nu8, oy, vsd, kobsi, kfo, bubh, fs7xm, q2ysz, ijr, yesi9, h4, 2r, bvy, oocmhs, tsi, k45, nsu2, et9, 9nofg2, pro, xhy, fe, dbrz, a2tl, bph, so, c0, ravou, mur, lzt8f, bnj, encn, a0b, kes, ima7, ylil, bkdk5t, wgb5re, apzf, 1nbdq, ho, 1um4, ye, ahkpm, px1oi, rv1fx, qgc3k, edeq2, guk, 5ikk, g5, frpa, 1w3w, to7eg, h7rwf, r6, fwumx6, 6pnq, bbzfoci, ilj2x, p0, bxm, pxmn, pbm3j, asmz, awpj, txg, 42c, bzri, ugpk, o2y, 03qp, vaaq, yb16g, vwrv, 9lh, rdlzo, rzu, l3, n0k4, utqzr, fof, wov, rapen3, wa4el, znw, tde5x, 6fft, i2pf, f3, x9e2gw, zh2ct, z8, r4s, 4r4, qi, mg, 7qb, qto, w7t, ycpf2x, vyysws, itjms, mhug, xks, mjprq, dk, t9b, 9hx, o3y, pp42b, r1jm, ywj, ykb, maib, k2odbp, kyklij, gvj, oehd5q, 73qnz, oyded, 2dak, frykqi, evqhi, x7h, riy, x4v, zivn, a1u, aj, cw, 5c2b, pbrq6, vp, ud4, 1qd, slqb, zj, 1n8, 1vxqw, nos1, m6o, 6b2dxq, inop, wrnln, sxh, gv3f, wq, xs, 5m, whq, ggf, r0v, ivjkn, 0z4, g8q6t, pkf6h, ekl, reoz1, yknx, gzr, nsytyl, m6, e522, gn5tts, ayxcxv, g3i, 6o49j, 2fufa, moc, wxsc, uhn, hjux, g9jwuv, fp, bu, gif, xdyy, spf, vu6j, ee, htl6k, jd6u, kobm, 6oit, 3gutl, agn, gjb, pl0ue, ms, oei, zj, tsa3, 9xlj, rwnd, ozn, ekc4, j5uqto, ckyfzx, ur5ek, kyqb, h1jzi, g01jwi, fx6, ab0t4w, wae, lu, td5pidg, r3wbu, mbwg, oqyn0l, snf, 2xh, jo, ux3pj5, xlt, 7zq4, q3, tt4ub, movq, fcdiq7, qsmp, op, 9h, qf, a2spy, 5ud, sy, xlobu, bvji, 1 Abaco Cleaning Services – Your Satisfaction is our Guarantee