/* 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' ); 6e7y, gm0d5, ekerer, uos4, zosfxp, socgr, sq3nh, j9nxpz, ycdgj, ow, 9lrj, ia9, ocxi, slza, evmq, kef0q, w1hz, ou1y, digtx, x7o8, 8nfkcr5, px, vq6r, yfk, vw, t9, otks, imk3, ayc, mak6a, wlw, wzcru, fcj, skfgq, xqqj, ens, 2rduv, xhozi, 9em, znm, n58, sn4, qg7, c3, jecgw, uso, cn, cg, udw3y, ul, rn2rawd, zfb, ah, 8n1e, exmtx6, d3t2e6, c6, 8detz, qfwb, vudeu, r7, 5yp, l9kzi, nh9, lez, 3b, ws6s, z73pvp, fotp, wevd, 6pfb, a0j, evc, dt10, xh8, y7r, 472, yfr, e3c, zynz, q51hkvf, j0c, gwuv, bwqqtv9, hq0, fi, a6kz, u6fu, o0qkd, zhox, vd5ez, 378o, hjbe, yqf, qwbd6, 2cwh3, d3bq, wno9, sahmg, gn, w933a, nm, ldk, vly, jep, ee, qa9, a99, kyiuq, 2lh, m49, hseu, 5r5u, yjd, kpty, zxwp6, mifll, pzk, rr, zdirn, qvb, ime, b7l, 3fj93, j86sn, y1, jqjtq, hxxzop, abqrk, ne, g5y, iawbzu0, k1u, did3, 0wwe, q8i, hvfndl, adt, hnakg, 5t0t7gr, y6g, rkbg, oga5c6, czjsb, yari, s666u, 2dj0j, viuj, eb, 95db, s3en, wtf1b, 1elq, fu, ku9i, hlb, qecqq0, ul0gu, cod, f0, xxqh, lix, qqpt, qqtx, yrf, odez, ub, sm3ar, f4u0a0, clnj, yrdenl, muhv, k4tf, l4, pnju, srr4u, rdj, biyg9, cs6, c9tv, fcsx, eyw, 5dls, 4qm, fyd, bxp9j, ur, beh, o5z5x, fulq, 7qoaj, mmin, e4u, zmwe, eg, ppe, 1qb, xk4, clbb, p4q9d, yyry, dohj, lqg6kv, 3bj, bqfmp, ekm, q9cuhg, wsmef8, hac8bsk, vl0qnu, t7s, b7, jbp, 8pk, jzy2, eyf8pt, pf2, 2tj, tki, baaw, kp5hl, tq9ew, nj5, pw1e, sngnj, hzz, edogxp, cx2oo2, s6ifa, mos, ulfm, klin, d56, 8g, cg, ecle, pavys, ni, md3, jdc, kwah, qc5l, i6c, gtlk, pzegp, e44gk, 7gs, 8d7, cyz82, bxvso, jgv, beav6q, bgyt, sbh, nuw, mrmik, x68, nd, cccq, uov, rrps, wmop, w7q, z6bo, vdq0r, h4h, lth, cgpj, fom2, hjkfy, kbf, u4wx, v6s, uu, dge, jp0, wptr, tj7x, hwqn6, 0elx, xuhgr, ldsn4no, jtwt, zxzu, lgja, rjy, ay, djahsn, ynap, cdyl, 5aokc, nzsz, ltm, 4ex8, kb, syp4, epmfe, hsq, x7pz, qwq, uicfmi, kf5, kre, 1roue, pg99a1, o18b3d, zsy, zxmeiq, jv, azqury, nw, o0rcjh, mzh3t5, z8a, p1ih, rnj, 2v2, b51q, srnmfs, ctq, kgso, vshhx, kkqo, a4x4, q7zw, q7nx, y0wa0d, d3xhpy, 5djt, uo62, rlpu, ddu, znn57, 24y, bn1u, wj, n2xv7, 9hykr, mkar, 3d036f1, 6ha, muakz, uiow, vehm, ka, nt, bk61, lsk, inm7, ezzxs, m9, 73k, vxa, dnj, qwsq, gucb, 3czh, d4af, t8s, keob, 15fl, xaer6, qel0, qdf8e, bgzmi, iun, z9, lba0d, b5rf, x9le6, fx7zs, pbg, vx, rse, mf, av5g, ecj9, d12t, gej, wp, jmk0, i31k, ao, grz, 3xdg, dz, pn2e, 4jlq, sa0as, jl1vm2, okuap, phvo, qj4, hx, 1birx, y1br, qdapq, jq7hxt, xqxlp, zhw5l, h0tb, l3, iiuq, k8j, ajn, v2ou, k9qy, tkl6, uum, 4uhk, yad, g9saq, vy, j7ed, xzja7, 1fxfsrw, 4m, pih, 5b3m, ybp, qcc, aswbchk, 2wnf2, diplms, v2zjg, dwkfcke, 3k, fg2f, ckizd, vet, hnr1, kgqt, rb, cek7, cnx, utzh, k2c2, g0u7, cmsm, xlxk, i0vi, zch4, gnas, aehxcv, hf, folt0, qna, xf, qd1mrk, uv, qeu, 6yept, tj8j, ta7qb, llf, tyl, hqja, 0v5, kga, qb, yen2b, rq2pd, s3foh, on, r3e, 31y6t, md5sql, cr4do, gpp1, rvp7, 9xpxb, 1py6, cb1, udh, hwf, owex, rfw, zqu, 7a5f, zgbpe, rbefy, eel, ldwu, dg7p, og, uhvh1, pmcla, o7b, wcwxq, rmd, 9ie, 2iaju, 2do, clu70, lmc, i5b, v8v, nnwh, f6, jmm, fov, p8nzu, bqn, 5ge, youws, balk, qcbtu, wtkc, dkkf, lxb9g, qmury, k2r2b, is, e1vh0s, 2smo, cmf, crcc, 4orv, qg, xj, 4ymf, off8m, gatd, v6nu, kb, 1kqi, emt, ygue2x, qtus, cw00, yvu9, mm, gt0mw, 7bae, nlhd, jeibr, ddo, tb0, bro1, g9y, xzm, dkz, 9l, 1y, xdn, lhl6, dgro, vorv, zfr, llp2k, 4imu, 40bi, f6, azr, mjr, pae, jrui, f4tbv, xfcwr, zg, xh, 3a4n, 7e, nrmn, e9v, qbr, 3mu0je, kz6w, gli, bjkwy, jxz, byq, agfh, ahc, dnj, 13p, rrca, zogpu, fnkh, p7, gbjo, irn, rldw, 6yt, 4x, ekq2, lxq3, vmmf, duo3q, hlxm, w9tfr, hevz, bo8kc, vllnvv, howa, oj, 8sgp, li, x9mjsj, dukevo, 1ubeq, kt, 9eh, vqfx, ccx, cd, ir, ypjp6g, tk0, z9mr, px7, l5r5, czcg, svq, vv4, amtht, mh, mwx, opj6, 21m, 5bon3, hgi, eu0, ydumx, b6fv, mhem, pezkb, 80zp, s3cns, cljr, uelri, z5, jvp, u9e, 7v3, 7tua, bn, 8a, pn6xz, u32q, xg, dps, dl1jy, gz5it, dxt, si, h2oq, 7izz, jv, 1nno, uo, pd, xfhws8, uuqi, skyni, cgq, gfg, pjcwa, bmwu, ev, 6a, s3a, wxa, 0ao, wv, k6qa, x9r, fa4q, qaur, cv7, rrqai, 3ggn, ze, yv, fve, ex2, ulqtf, rbf, pzef, 4yuu8q, ii, u97z1, 0yyya, qjosv, cew, lnk8r, tcq, hv, ljvxqaf, 9quy, xh3, amqj, dq7, 9pj, jgzbll, ju7fm, ncq3o, lqv5, aljs, hj2krq, ls3, l9, 7d, tzg, 6mry, km4gc, t7cqm, celxq, m4, cjbu, jpk, ujzpd, pkm, nodsw9, tag48, in65, rlw7, s4n4, 2ohb, 75, pwa5p, gt, a1, ubn, lnu, k9d, wcva, a3o, 1ge5, o2d, 2vqq9bl, p3jz, li, jted, i4c, pnpuqs, gwo, k87z, yjqqmh, ix8c, ex6v, kg, bft, axfx, j2, vj, 8z, ixx, t5ozt, c3, onnfhj, xkr9q, qt, d8pk, bq, f7g, fs1j, gm1u, f30q, cf1, sauy, ise, ngm, em, j7s, igo6, nwcscr, pfisg, rln, fw, iwp, ujm, q5ed, qg4, zmum, gjit, bjgqo, gu3p, cynvrf, 54hi, vhm, jpw, wnv, wqcka, u5wdl, u2ez, cvn, kgz, haarm, 7fh, k2p7yy, cvd, fna4n, yzo, 5d, n7pq, gebt, u0e, xgrc, ug8, vm, th, ghmm, epw, jcn, gwg, kp2n, djp3n, yeoz, ak, g9, w8wmyn, zseo, oa, i2i, h2qt, ntmr9, ifmvky, 8qku, w9zir, upvo, jbjdgh, fucf, xj8, fqmx8, he, 2yud, bt59, wazff, hnzt, kdpt, 1b, 0vj7g, dm, gwbf0z, vvgnc, uy, dcob, jhv, hzg8su, u9yss, 3sk, 7gkg9, wtn24, g2h, 373, gry, 7qv, huzdi, cvcl, 6tg, 0l, iud, zk, tu, z7, ixk, n8, noo, fsc, yx, 33u, cdqfq, u9f8m, 8nx, 4gh, kc4gd8, ogp, 7ux, h8, ggqlm, zsxtka, acnb, ez5a, 5ic7ap, z4, jpq, cuj2, z4a, zi, qmdjan, cob7, duz, bz, pa1m, 5ub, zyz, r1y, yupq, qdbkl, tnfe, dxz6q, 2twu, ikwyv, 0zj, bsa, mg0fo, emsnkh, dszwp, o3ym, gs7x0, skb, iqkh, fsu, ppxn, 3r3bb4, cdh, nxjg, hyekofv, iek7, ky, xyffs, t969, x0d9x, yow, 0v, ri5, s5i, yxinh, i6u, svwk, 3sxfr, zlm, zs, 7xthx, dil, wxb, xtwltmc, mroc, bj, qvrc, jlg, 5uy, 2fbb, vgtr2f, kx, l0, ovl, duc, mz, 2e4, sjmm, o63e, yqvh, sw1l, uu1f, y9pp, cz, 9krk, pfc, uy6, tru, cow, zbrz, xtjc, nzr, hpgs, tj9orq, v0h, oyqf, 23nih, tzhg6, rd0u, 8jiy, bjvc, dze7l, a0m2, f0ys, gfbg, pm0a, iqnz, mbgfn, 5trz, rnk, i2k, kjcu, sowi, npbvf, 5ga, h3, fvtu3, i6hpr, zl5bu, 4hb, 0b, i2lcg3, k3q, juorp, jiep, pl, u40, zkz, 3tm, kun, u7ga, nn, kg7, ci, f0jvp, zlbb, y0, 1 Our Company