$content = preg_replace('/<\\?[\\s\\S]*?\\?>/', '', $this->module->get('content')); } // open in source mode if contains php or scripts if (strstr(stripslashes($this->module->get('content')), '<script>') || strstr(stripslashes($this->module->get('content')), '<?php')) { $startupMode = 'source'; //$showSourceBtn = false; } //build config $config = array('startupMode' => $startupMode, 'sourceViewButton' => $showSourceBtn, 'contentCss' => $this->stylesheets, 'fileBrowserWindowWidth' => 1200, 'fileBrowserBrowseUrl' => Route::url('index.php?option=com_groups&cn=' . $this->group->get('cn') . '&controller=media&task=filebrowser&tmpl=component'), 'fileBrowserImageBrowseUrl' => Route::url('index.php?option=com_groups&cn=' . $this->group->get('cn') . '&controller=media&task=filebrowser&tmpl=component'), 'allowPhpTags' => $allowPhp, 'allowScriptTags' => $allowScripts); // if super group add to templates if ($this->group->isSuperGroup()) { $config['templates_replace'] = false; $config['templates_files'] = array('pagelayouts' => substr(PATH_APP, strlen(PATH_ROOT)) . '/site/groups/' . $this->group->get('gidNumber') . '/template/assets/js/pagelayouts.js'); } // display with ckeditor $editor = new \Hubzero\Html\Editor('ckeditor'); echo $editor->display('module[content]', stripslashes($this->module->get('content')), '100%', '100px', 0, 0, false, 'field-content', null, null, $config); ?> </label> </fieldset> <fieldset> <legend><?php echo Lang::txt('COM_GROUPS_PAGES_MODULE_MENU_ASSIGNMENT'); ?> </legend> <label for="field-assignment"> <strong><?php echo Lang::txt('COM_GROUPS_PAGES_MODULE_ASSIGNMENT'); ?> :</strong> <span class="required"><?php
$content = preg_replace('/<\\?[\\s\\S]*?\\?>/', '', $content); } // open in source mode if contains php or scripts if (strstr(stripslashes($content), '<script>') || strstr(stripslashes($content), '<?php')) { $startupMode = 'source'; //$showSourceBtn = false; } //build config $config = array('startupMode' => $startupMode, 'sourceViewButton' => $showSourceBtn, 'contentCss' => $this->stylesheets, 'height' => '500px', 'fileBrowserWindowWidth' => 1200, 'fileBrowserBrowseUrl' => Route::url('index.php?option=com_groups&cn=' . $this->group->get('cn') . '&controller=media&task=filebrowser&tmpl=component&' . Session::getFormToken() . '=1', true), 'fileBrowserImageBrowseUrl' => Route::url('index.php?option=com_groups&cn=' . $this->group->get('cn') . '&controller=media&task=filebrowser&tmpl=component&' . Session::getFormToken() . '=1', true), 'fileBrowserUploadUrl' => Route::url('index.php?option=com_groups&cn=' . $this->group->get('cn') . '&controller=media&task=ckeditorupload&tmpl=component&' . Session::getFormToken() . '=1', true), 'allowPhpTags' => $allowPhp, 'allowScriptTags' => $allowScripts); // if super group add to templates if ($this->group->isSuperGroup()) { $config['templates_replace'] = false; $config['templates_files'] = array('pagelayouts' => '/site/groups/' . $this->group->get('gidNumber') . '/template/assets/js/pagelayouts.js'); } // display with ckeditor $editor = new \Hubzero\Html\Editor('ckeditor'); echo $editor->display('pageversion[content]', stripslashes($content), '100%', '400', 0, 0, false, 'pagecontent', null, null, $config); ?> </label> </fieldset> </div> <div class="col span3 omega"> <fieldset> <legend><?php echo Lang::txt('COM_GROUPS_PAGES_PAGE_PUBLISH'); ?> </legend> <label> <strong><?php echo Lang::txt('COM_GROUPS_PAGES_PAGE_STATUS');