load('com_ohanah'); $lang->load('com_ohanah', JPATH_ADMINISTRATOR); ?> get('enable_frontend')) { $str = 'OHANAH_ADDING_EVENTS_FROM_FRONTEND_DISABLED'; $trans = JText::_($str); $error = ($trans == $str) ? 'Adding events from the frontend is disabled' : $trans; } if ($error == "") { // frontend adding is enabled if ($event->id) { if (!$params->get('frontend_editing')) { $str = 'OHANAH_EDITING_EVENTS_FROM_FRONTEND_DISABLED'; $trans = JText::_($str); $error = ($trans == $str) ? 'Editing events from the frontend is disabled' : $trans; } if ($event->created_by != JFactory::getUser()->id) { $str = 'OHANAH_CANNOT_EDIT_EVENTS_CREATED_BY_OTHERS'; $trans = JText::_($str); $error = ($trans == $str) ? 'You cannot edit events created by others' : $trans; } } else { if ($params->get('frontend_editing')) { if (JFactory::getUser()->guest) { $str = 'OHANAH_ADDING_EVENTS_FROM_FRONTEND_DISABLED_FOR_GUESTS'; $trans = JText::_($str); $error = ($trans == $str) ? 'Adding events from the frontend is disabled for guests. You need to login.' : $trans; $displayLoginForm = true; } } } } ?> get('useStandardJoomlaEditor')) { $config = new KConfig(); $config->append(array( 'editor' => null, 'name' => 'description', 'width' => '100%', 'height' => '291', 'cols' => '100', 'rows' => '20', 'buttons' => true, 'options' => array() )); $editor = JFactory::getEditor($config->editor); $options = KConfig::unbox($config->options); if (version_compare(JVERSION, '1.6.0', 'ge')) { $editorResult = $editor->display($config->name, $event->{$config->name}, $config->width, $config->height, $config->cols, $config->rows, KConfig::unbox($config->buttons), $config->name, null, null, $options); } else { $editorResult = $editor->display($config->name, $event->{$config->name}, $config->width, $config->height, $config->cols, $config->rows, KConfig::unbox($config->buttons), $options); } } ?>