$p_public_event_url[$lang] = util::formatAppPath($url, false, false); } if ($okt->error->isEmpty()) { $new_conf = array('enable_metas' => (bool) $p_enable_metas, 'enable_rte' => $p_enable_rte, 'enable_filters' => (bool) $p_enable_filters, 'fields' => array('color' => (int) $p_chp_color, 'disponibility' => (int) $p_chp_disponibility), 'images' => $aImagesConfig, 'files' => array('enable' => (bool) $p_enable_files, 'number' => (int) $p_number_files, 'allowed_exts' => $p_allowed_exts), 'name' => $p_name, 'name_seo' => $p_name_seo, 'title' => $p_title, 'meta_description' => $p_meta_description, 'meta_keywords' => $p_meta_keywords, 'public_list_url' => $p_public_list_url, 'public_event_url' => $p_public_event_url); try { $okt->diary->config->write($new_conf); $okt->redirect('module.php?m=diary&action=config&updated=1'); } catch (InvalidArgumentException $e) { $okt->error->set(__('c_c_error_writing_configuration')); $okt->error->set($e->getMessage()); } } } /* Affichage ----------------------------------------------------------*/ $aFieldChoices = util::getStatusFieldChoices(); # Titre de la page $okt->page->addGlobalTitle(__('Configuration')); # javascript $okt->page->tabs(); # Lang switcher if (!$okt->languages->unique) { $okt->page->langSwitcher('#tabered', '.lang-switcher-buttons'); } # Confirmations $okt->page->messages->success('updated', __('c_c_confirm_configuration_updated')); $okt->page->messages->success('minregenerated', __('c_c_confirm_thumb_regenerated')); $okt->page->messages->success('watermarkdeleted', __('c_c_confirm_watermark_deleted')); # En-tête require OKT_ADMIN_HEADER_FILE; ?>
} } /* Affichage ----------------------------------------------------------*/ # Titre de la page $okt->page->addGlobalTitle(__('c_a_menu_configuration')); # Lockable $okt->page->lockable(); # Tabs $okt->page->tabs(); # Lang switcher if (!$okt->languages->unique) { $okt->page->langSwitcher('#tabered', '.lang-switcher-buttons'); } $field_choice = util::getStatusFieldChoices(); $field_logo_choice = util::getStatusFieldChoices(false); # En-tête include OKT_ADMIN_HEADER_FILE; ?> <form action="module.php" method="post"> <div id="tabered"> <ul> <li><a href="#tab_general"><span><?php _e('m_partners_general'); ?> </span></a></li> <li><a href="#tab_fields"><span><?php _e('m_partners_fields'); ?> </span></a></li>
} } /* Affichage ----------------------------------------------------------*/ # Titre de la page $okt->page->addGlobalTitle(__('c_a_menu_configuration')); # Lockable $okt->page->lockable(); # Tabs $okt->page->tabs(); # Lang switcher if (!$okt->languages->unique) { $okt->page->langSwitcher('#tabered', '.lang-switcher-buttons'); } $aFieldChoices = util::getStatusFieldChoices(); $aLanguageFieldChoices = util::getStatusFieldChoices(false); # En-tête include OKT_ADMIN_HEADER_FILE; ?> <form action="module.php" method="post"> <div id="tabered"> <ul> <li><a href="#tab-fields"><?php _e('c_c_fields'); ?> </a></li> <li><a href="#tab-advanced"><?php _e('c_a_menu_advanced'); ?> </a></li>