/** * Writes the basic JS of the editor to $hjs. No editors are actually created. * Multiple calls are allowed; all but the first should be ignored. * This is called from init_EDITOR() automatically, but not from EDITOR_replace(). * * @global string $hjs * @return void */ function include_tinymce() { global $adm, $pth, $h, $u, $l, $sn, $hjs; static $again = FALSE; if ($again) { return; } $again = TRUE; if ($adm) { include_once $pth['folder']['plugins'] . 'tinymce/' . 'links.php'; $imageList = 'var myImageList = new Array(' . get_images($pth['folder']['images']) . ');'; $linkList = 'var myLinkList = new Array(' . get_internal_links($h, $u, $l, $sn, $pth['folder']['downloads']) . ');'; } else { $imageList = $linkList = ''; } $hjs .= ' <script language="javascript" type="text/javascript" src="' . $pth['folder']['plugins'] . 'tinymce/' . 'tiny_mce/tiny_mce.js"></script> <script type="text/javascript" src="' . $pth['folder']['plugins'] . 'tinymce/init.js"></script> <script type="text/javascript"> /* <![CDATA[ */ ' . tinymce_filebrowser() . ' ' . $imageList . ' ' . $linkList . ' /* ]]> */ </script> '; }
<div class="formContainer"> <?php if (isset($_GET['send']) && $_GET['send'] == true) { get_form_success(); } else { get_form('contactForm', $this->rootLevelId, get_elementId(true)); } ?> </div> <?php get_text_blocks('220x', true, true, '660x'); ?> <?php get_internal_links(); ?> <?php get_video('540', '304'); ?> <?php get_image_gallery(8, '140x140', true, true, '660x'); ?> <?php get_documents(); ?> </div> <div class="sidebar">
/** * Writes the basic JS of the editor to $hjs. No editors are actually created. * Multiple calls are allowed; all but the first should be ignored. * This is called from init_EDITOR() automatically, but not from EDITOR_replace(). * * @global string $hjs * @return void */ function include_tinymce4() { global $edit, $pth, $h, $u, $l, $hjs, $plugin_cf; static $again = false; if ($again) { return; } $again = true; if (TINYMCE4_VARIANT == 'CDN') { $tiny_src = $plugin_cf['tinymce4']['CDN_src']; } else { $tiny_src = $pth['folder']['plugins'] . 'tinymce4/' . 'tinymce/tinymce.min.js'; } if (XH_ADM && $edit) { include_once $pth['folder']['plugins'] . 'tinymce4/' . 'links.php'; $imageList = 'myImageList = ' . get_images($pth['folder']['images']) . ';'; $linkList = 'var myLinkList = ' . get_internal_links($h, $u, $l, $pth['folder']['downloads']) . ';'; } else { $imageList = $linkList = ''; } $hjs .= ' <script language="javascript" type="text/javascript" src="' . $tiny_src . '"></script> <script type="text/javascript"> /* <![CDATA[ */ ' . tinymce4_filebrowser() . ' var myImageList; ' . $imageList . ' var myLinkList; ' . $linkList . ' /* ]]> */ </script> <style type="text/css"> div.mce-fullscreen {z-index: 999;} /*fullscreen overlays admin toolbar */ </style> '; }