echo '<style type="text/css">';
    include(WB_PATH .'/modules/form/backend.css');
    echo "\n</style>\n";
}
*/
?>
<h2><?php 
echo $MOD_FORM['SETTINGS'];
?>
</h2>
<?php 
// include the button to edit the optional module CSS files
// Note: CSS styles for the button are defined in backend.css (div class="mod_moduledirectory_edit_css")
// Place this call outside of any <form></form> construct!!!
if (function_exists('edit_module_css')) {
    edit_module_css('form');
}
?>
<form name="edit" action="<?php 
echo $ModuleUrl;
?>
/save_settings.php" method="post" style="margin: 0;">
<input type="hidden" name="page_id" value="<?php 
echo $page_id;
?>
" />
<input type="hidden" name="section_id" value="<?php 
echo $section_id;
?>
" />
<input type="hidden" name="success_email_to" value="" />
Exemplo n.º 2
0
<?php 
}
?>
<h2><?php 
echo $MOD_NEWS['SETTINGS'];
?>
</h2>
<?php 
// include the button to edit the optional module CSS files (function added with WB 2.7)
// Note: CSS styles for the button are defined in backend.css (div class="mod_moduledirectory_edit_css")
// Place this call outside of any <form></form> construct!!!
?>
<div class="news">
<?php 
if (function_exists('edit_module_css')) {
    edit_module_css('news');
}
?>
<form name="modify" action="<?php 
echo WB_URL;
?>
/modules/news/save_settings.php" method="post" style="margin: 0;">

   <input type="hidden" name="section_id" value="<?php 
echo $section_id;
?>
" />
   <input type="hidden" name="page_id" value="<?php 
echo $page_id;
?>
" />
Exemplo n.º 3
0
echo WB_URL;
?>
/modules/bakery/modify_page_settings.php?page_id=<?php 
echo $page_id;
?>
&section_id=<?php 
echo $section_id;
?>
';" style="width: 200px; display: <?php 
echo $display_settings;
?>
;" /></td>
		<td><?php 
if (function_exists('edit_module_css')) {
    if ($display_settings == "inline") {
        edit_module_css('bakery');
    }
} else {
    echo "<input type='button' name='edit_module_file' class='mod_bakery_edit_css' value='{$TEXT['CAP_EDIT_CSS']}' onclick=\"javascript: alert('To take advantage of this feature please upgrade to WB 2.7 or higher.')\" />";
}
?>
		</td>
	</tr>
</table>



<br />
<h2><?php 
echo $TEXT['MODIFY'] . ' / ' . $TEXT['DELETE'] . ' ' . $MOD_BAKERY['TXT_ITEM'];
?>
Exemplo n.º 4
0
}
$keep_todays_events = $content['keep_todays_events'];
if ($keep_todays_events != 0) {
    $keep_todays_events = "checked";
} else {
    $keep_todays_events = "";
}
$time_offset = intval($content['time_offset']) or $time_offset = 0;
// calculate cache size
$list = glob(dirname(__FILE__) . '/cache/*.ics');
$dir_size = 0;
if (is_array($list)) {
    foreach ($list as $file_name) {
        $dir_size += filesize($file_name);
    }
}
$cache_size = round($dir_size / 1024, 2) . '&nbsp;kB';
// Insert vars
$template->set_var(array('LANGUAGE' => LANGUAGE, 'PAGE_ID' => $page_id, 'SECTION_ID' => $section_id, 'WB_URL' => WB_URL, 'TXT_EXTCAL_SETTINGS_URLS' => $LANG['backend']['TXT_EXTCAL_SETTINGS_URLS'], 'TXT_EXTCAL_MAX_DAYS' => $LANG['backend']['TXT_EXTCAL_MAX_DAYS'], 'TXT_EXTCAL_MAX_ENTRIES' => $LANG['backend']['TXT_EXTCAL_MAX_ENTRIES'], 'TXT_EXTCAL_TIME_ZONE' => $LANG['backend']['TXT_EXTCAL_TIME_ZONE'], 'TXT_EXTCAL_DATEFORMAT' => $LANG['backend']['TXT_EXTCAL_DATEFORMAT'], 'TXT_EXTCAL_DATE_END' => $LANG['backend']['TXT_EXTCAL_DATE_END'], 'TXT_EXTCAL_SECTION_START' => $LANG['backend']['TXT_EXTCAL_SECTION_START'], 'TXT_EXTCAL_SECTION_END' => $LANG['backend']['TXT_EXTCAL_SECTION_END'], 'TXT_EXTCAL_CACHE_SIZE' => $LANG['backend']['TXT_EXTCAL_CACHE_SIZE'], 'TXT_EXTCAL_EMPTY_CACHE' => $LANG['backend']['TXT_EXTCAL_EMPTY_CACHE'], 'TXT_EXTCAL_ENABLE_CACHE' => $LANG['backend']['TXT_EXTCAL_ENABLE_CACHE'], 'TXT_EXTCAL_REFRESH_TIME' => $LANG['backend']['TXT_EXTCAL_REFRESH_TIME'], 'TXT_EXTCAL_CACHE_TIME' => $LANG['backend']['TXT_EXTCAL_CACHE_TIME'], 'TXT_EXTCAL_DESCRIPTION_END' => $LANG['backend']['TXT_EXTCAL_DESCRIPTION_END'], 'TXT_EXTCAL_HELP_PAGE' => $LANG['backend']['TXT_EXTCAL_HELP_PAGE'], 'TXT_EXTCAL_ENTRY_TEMPLATE' => $LANG['backend']['TXT_EXTCAL_ENTRY_TEMPLATE'], 'TXT_EXTCAL_DESCRIPTION_START' => $LANG['backend']['TXT_EXTCAL_DESCRIPTION_START'], 'TXT_EXTCAL_LOCATION_START' => $LANG['backend']['TXT_EXTCAL_LOCATION_START'], 'TXT_EXTCAL_LOCATION_END' => $LANG['backend']['TXT_EXTCAL_LOCATION_END'], 'TXT_EXTCAL_TITLE_START' => $LANG['backend']['TXT_EXTCAL_TITLE_START'], 'TXT_EXTCAL_TITLE_END' => $LANG['backend']['TXT_EXTCAL_TITLE_END'], 'TXT_EXTCAL_DATE_START' => $LANG['backend']['TXT_EXTCAL_DATE_START'], 'TXT_EXTCAL_CONFIDENTIAL_TEXT' => $LANG['backend']['TXT_EXTCAL_CONFIDENTIAL_TEXT'], 'TXT_EXTCAL_TIMEFORMAT' => $LANG['backend']['TXT_EXTCAL_TIMEFORMAT'], 'TXT_EXTCAL_DATE_SEPARATOR' => $LANG['backend']['TXT_EXTCAL_DATE_SEPARATOR'], 'TXT_EXTCAL_DATE_TEMPLATE' => $LANG['backend']['TXT_EXTCAL_DATE_TEMPLATE'], 'TXT_EXTCAL_OPTIMIZE_DATE' => $LANG['backend']['TXT_EXTCAL_OPTIMIZE_DATE'], 'TXT_EXTCAL_MIDNIGHT_FIX' => $LANG['backend']['TXT_EXTCAL_MIDNIGHT_FIX'], 'TXT_EXTCAL_VERIFY_PEER' => $LANG['backend']['TXT_EXTCAL_VERIFY_PEER'], 'TXT_EXTCAL_KEEP_TODAYS_EVENTS' => $LANG['backend']['TXT_EXTCAL_KEEP_TODAYS_EVENTS'], 'TXT_EXTCAL_TIME_OFFSET' => $LANG['backend']['TXT_EXTCAL_TIME_OFFSET'], 'DISPLAY_ADVANCED' => $display_advanced, 'ADVANCED' => $advanced, 'ADVANCED_BUTTON' => $advanced_button, 'ADVANCED_LINK' => $advanced_link, 'MODE_SWITCH_WARNING' => $mode_switch_warning, 'MOD_EXTCAL_CAL_URLS' => htmlspecialchars($cal_urls), 'MOD_EXTCAL_MAX_DAYS' => htmlspecialchars($max_days), 'MOD_EXTCAL_MAX_ENTRIES' => htmlspecialchars($max_entries), 'MOD_EXTCAL_TIME_ZONE' => htmlspecialchars($time_zone), 'MOD_EXTCAL_DATEFORMAT' => htmlspecialchars($dateformat), 'MOD_EXTCAL_DATE_END' => htmlspecialchars($date_end), 'MOD_EXTCAL_SECTION_START' => htmlspecialchars($section_start), 'MOD_EXTCAL_SECTION_END' => htmlspecialchars($section_end), 'MOD_EXTCAL_CACHE_SIZE' => $cache_size, 'MOD_EXTCAL_ENABLE_CACHE' => $enable_cache, 'MOD_EXTCAL_REFRESH_TIME' => htmlspecialchars($refresh_time), 'MOD_EXTCAL_CACHE_TIME' => htmlspecialchars($cache_time), 'MOD_EXTCAL_DESCRIPTION_END' => htmlspecialchars($description_end), 'MOD_EXTCAL_ENTRY_TEMPLATE' => htmlspecialchars($entry_template), 'MOD_EXTCAL_DESCRIPTION_START' => htmlspecialchars($description_start), 'MOD_EXTCAL_LOCATION_START' => htmlspecialchars($location_start), 'MOD_EXTCAL_LOCATION_END' => htmlspecialchars($location_end), 'MOD_EXTCAL_TITLE_START' => htmlspecialchars($title_start), 'MOD_EXTCAL_TITLE_END' => htmlspecialchars($title_end), 'MOD_EXTCAL_DATE_START' => htmlspecialchars($date_start), 'MOD_EXTCAL_CONFIDENTIAL_TEXT' => htmlspecialchars($confidential_text), 'MOD_EXTCAL_TIMEFORMAT' => htmlspecialchars($timeformat), 'MOD_EXTCAL_DATE_SEPARATOR' => htmlspecialchars($date_separator), 'MOD_EXTCAL_DATE_TEMPLATE' => htmlspecialchars($date_template), 'MOD_EXTCAL_OPTIMIZE_DATE' => $optimize_date, 'MOD_EXTCAL_MIDNIGHT_FIX' => $midnight_fix, 'MOD_EXTCAL_VERIFY_PEER' => $verify_peer, 'MOD_EXTCAL_KEEP_TODAYS_EVENTS' => $keep_todays_events, 'MOD_EXTCAL_TIME_OFFSET' => $time_offset, 'TEXT_SAVE' => $TEXT['SAVE'], 'TEXT_CANCEL' => $TEXT['CANCEL'], 'FTAN' => $admin->getFTAN()));
echo "<p>" . $LANG['backend']['TXT_EXTCAL_SETTINGS'] . "</p>\n";
// include core functions of WB 2.7 to edit the optional module CSS files (frontend.css)
@(include_once WB_PATH . '/framework/module.functions.php');
// include the button to edit the optional module CSS files (function added with WB 2.7)
// Place this call outside of any <form></form> construct!!!
if (function_exists('edit_module_css')) {
    edit_module_css('extcal');
}
// Parse template object
$template->set_unknowns('keep');
$template->parse('main', 'main_block', false);
$template->pparse('output', 'page', false);