diff --git a/phpgwapi/templates/literati/css.tpl b/phpgwapi/templates/literati/css.tpl new file mode 100755 index 0000000000..526d17dd12 --- /dev/null +++ b/phpgwapi/templates/literati/css.tpl @@ -0,0 +1,9 @@ + +{css_file} \ No newline at end of file diff --git a/phpgwapi/templates/literati/doc/CHANGELOG b/phpgwapi/templates/literati/doc/CHANGELOG new file mode 100644 index 0000000000..8aa53942b4 --- /dev/null +++ b/phpgwapi/templates/literati/doc/CHANGELOG @@ -0,0 +1,16 @@ +Fri Apr 18 01:51:00 CEST 2003 +- resize icons to 32x32 +- renamed css file for better compatibility +- removed unneccesary files in calender and email template directory +- merged changed from Ralf Becker +- remade the logo +- changed gif to png where possible (create_tabs in class.common.inc.php only uses gifs!!!) +- moved tree to 0.9.16 branch + +Wed Apr 16 23:07:54 CEST 2003 +- Get app titles from new array without using the lang() call +- Moved 'Homelink' from navbar to sidebox +- Use preference setting 'icons', 'icons and text' +- sidebox menu's can be hooked now (see template hook-files in phpgwapi/templates/idots/doc/hook_templates/ +- replaces correct gimpsource file for navbar icons: phpgwapi/templates/idots/source/navbar.xcf +- additional information in the README diff --git a/phpgwapi/templates/literati/doc/README b/phpgwapi/templates/literati/doc/README new file mode 100644 index 0000000000..7954429c58 --- /dev/null +++ b/phpgwapi/templates/literati/doc/README @@ -0,0 +1,41 @@ ++++++++++++++++++++++++++++++++++++++++++++++++++++ + + IDOTS TEMPLATE SET FOR PHPGROUPWARE + ++++++++++++++++++++++++++++++++++++++++++++++++++++ + +The template set idots, formaly known as MYiDOTS is +havely based on the Crystal Icon theme from +Everaldo. + + APPLICATION ICONS +=================================================== +Because of a bug in Internet Explorer which causes +it to display transpancy in PNG's as black I gave +all icons a background. + +Everybody is encouraged to make more icons for the +idots template set. Please don't use gif as Image +type because this filetype in not an open standard + +The source Gimp-files can be found in +phpgwapi/templates/idots/source/ + +The logo source file can also be found in the above +directory. + + APPLICATION HOOKS +=================================================== +In the hook_file, hook_sidebox_menu.inc.php, +developers can define the sidebox menu's for their +applications template hook files can be found in +phpgwapi/templates/idots/hook_templates/ + + +Hope you enjoy this template set, +Pim Snel + + + + + diff --git a/phpgwapi/templates/literati/doc/TODO b/phpgwapi/templates/literati/doc/TODO new file mode 100644 index 0000000000..4c6d96c761 --- /dev/null +++ b/phpgwapi/templates/literati/doc/TODO @@ -0,0 +1,5 @@ +- validate css and make valid CSS +- validate html and make valid html 4.01 +- remove phpBB.org code etc... +- a lot of icons +- some sort of template-set configuration (maybe create a fake app???) diff --git a/phpgwapi/templates/literati/footer.tpl b/phpgwapi/templates/literati/footer.tpl new file mode 100755 index 0000000000..f00b246852 --- /dev/null +++ b/phpgwapi/templates/literati/footer.tpl @@ -0,0 +1,11 @@ + + + +
+ + + + + + + diff --git a/phpgwapi/templates/literati/head.inc.php b/phpgwapi/templates/literati/head.inc.php new file mode 100644 index 0000000000..793d9133ff --- /dev/null +++ b/phpgwapi/templates/literati/head.inc.php @@ -0,0 +1,49 @@ +set_unknowns('remove'); + $tpl->set_file(array('head' => 'head.tpl')); + + $app = $GLOBALS['phpgw_info']['flags']['currentapp']; + $app = $app ? ' ['.(isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app)).']':''; + + $var = Array ( + 'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico', + 'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico', + 'charset' => $GLOBALS['phpgw']->translation->charset(), + 'font_family' => $GLOBALS['phpgw_info']['theme']['font'], + 'website_title' => $GLOBALS['phpgw_info']['server']['site_title'].$app, + 'body_tags' => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(), + 'theme_css' => $theme_css, + 'css' => $GLOBALS['phpgw']->common->get_css(), + 'java_script' => $GLOBALS['phpgw']->common->get_java_script(), + ); + $tpl->set_var($var); + $tpl->pfp('out','head'); + unset($tpl); +?> diff --git a/phpgwapi/templates/literati/head.tpl b/phpgwapi/templates/literati/head.tpl new file mode 100644 index 0000000000..0cae93d7fe --- /dev/null +++ b/phpgwapi/templates/literati/head.tpl @@ -0,0 +1,18 @@ + + + + + + + + + + + + +{css} +{website_title} +{java_script} + + + diff --git a/phpgwapi/templates/literati/login.tpl b/phpgwapi/templates/literati/login.tpl new file mode 100755 index 0000000000..d725d61d46 --- /dev/null +++ b/phpgwapi/templates/literati/login.tpl @@ -0,0 +1,86 @@ + + + + + + + + +{website_title} - Login + + +
+{logo_title} +
{lang_message}
+

 

+
+ + + + + + + + +
+ +
+Valid HTML 4.01 +Valid CSS +
+
+eGroupWare {version}
+ + diff --git a/phpgwapi/templates/literati/login_denylogin.tpl b/phpgwapi/templates/literati/login_denylogin.tpl new file mode 100755 index 0000000000..d678da7e46 --- /dev/null +++ b/phpgwapi/templates/literati/login_denylogin.tpl @@ -0,0 +1,14 @@ + + + +phpGroupWare + + + + + +
+ Opps! You caught us in the middle of a system upgrade.
Please, check back with us shortly. +
+ + diff --git a/phpgwapi/templates/literati/login_selectdomain.tpl b/phpgwapi/templates/literati/login_selectdomain.tpl new file mode 100755 index 0000000000..f1c63ab75e --- /dev/null +++ b/phpgwapi/templates/literati/login_selectdomain.tpl @@ -0,0 +1,70 @@ + + + + + + + + +{website_title} - Login + + +
+{logo_title} +
{lang_message}
+

 

+ + + + + + + + +
+Valid HTML 4.01 +Valid CSS +
+
+eGroupWare {version}
+ + diff --git a/phpgwapi/templates/literati/navbar.inc.php b/phpgwapi/templates/literati/navbar.inc.php new file mode 100644 index 0000000000..c80773ee7c --- /dev/null +++ b/phpgwapi/templates/literati/navbar.inc.php @@ -0,0 +1,199 @@ +set_file( + array( + 'navbar' => 'navbar.tpl' + ) + ); + + $GLOBALS['idots_tpl']->set_block('navbar','navbar_header','navbar_header'); + $GLOBALS['idots_tpl']->set_block('navbar','extra_blocks_header','extra_block_header'); + $GLOBALS['idots_tpl']->set_block('navbar','extra_block_row','extra_block_row'); + $GLOBALS['idots_tpl']->set_block('navbar','extra_block_spacer','extra_block_spacer'); + $GLOBALS['idots_tpl']->set_block('navbar','extra_blocks_footer','extra_blocks_footer'); + $GLOBALS['idots_tpl']->set_block('navbar','navbar_footer','navbar_footer'); + + $var['img_root'] = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/literati/images'; + $var['table_bg_color'] = $GLOBALS['phpgw_info']['theme']['navbar_bg']; + + $applications = ''; + // == 'icons_and_text') + foreach($GLOBALS['phpgw_info']['navbar'] as $app => $app_data) + { + if ($app != 'home' && $app != 'preferences' && $app != 'about' && $app != 'logout') + { + $title = $GLOBALS['phpgw_info']['apps'][$app]['title']; + + $icon = '' . $title . 
+					''; + + $app_icons .= ''; + + $app_titles .= ''; + + unset($icon); + unset($title); + } + } + + $var['app_icons'] = $app_icons; + if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='icons') + { + $var['app_titles'] = $app_titles; + } + if (isset($GLOBALS['phpgw_info']['flags']['app_header'])) + { + $var['current_app_title'] = $GLOBALS['phpgw_info']['flags']['app_header']; + } + else + { + $var['current_app_title']=$GLOBALS['phpgw_info']['navbar'][$GLOBALS['phpgw_info']['flags']['currentapp']]['title']; + } + + if (isset($GLOBALS['phpgw_info']['navbar']['admin']) && $GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers']) + { + $var['current_users'] = '' + . lang('Current users') . ': ' . $GLOBALS['phpgw']->session->total() . ''; + } + $now = time(); + $var['user_info'] = ''.$GLOBALS['phpgw']->common->display_fullname() .''. ' - ' + . lang($GLOBALS['phpgw']->common->show_date($now,'l')) . ' ' + . $GLOBALS['phpgw']->common->show_date($now,$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']); + + if ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == 0) + { + $api_messages = lang('You are required to change your password during your first login') + . '
Click this image on the navbar: '; + } + else if ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*30)) + { + $api_messages = lang('it has been more then %1 days since you changed your password',30); + } + + // This is gonna change + if (isset($cd)) + { + $var['messages'] = $api_messages . '
' . checkcode($cd); + } + + $var['logo_file'] = $GLOBALS['phpgw']->common->image('phpgwapi',$GLOBALS['phpgw_info']['server']['login_logo_file']?$GLOBALS['phpgw_info']['server']['login_logo_file']:'logo'); + $var['logo_url'] = $GLOBALS['phpgw_info']['server']['login_logo_url']?$GLOBALS['phpgw_info']['server']['login_logo_url']:'http://www.eGroupWare.org'; + $var['logo_title'] = $GLOBALS['phpgw_info']['server']['login_logo_title']?$GLOBALS['phpgw_info']['server']['login_logo_title']:'www.eGroupWare.org'; + + $GLOBALS['idots_tpl']->set_var($var); + $GLOBALS['idots_tpl']->pfp('out','navbar_header'); + + $menu_title = lang('General Menu'); + + $file['Home'] = $GLOBALS['phpgw_info']['navbar']['home']['url']; + if ($GLOBALS['phpgw_info']['user']['apps']['preferences']) + { + $file['Preferences'] = $GLOBALS['phpgw_info']['navbar']['preferences']['url']; + } + $file += array( + 'About %1'=>$GLOBALS['phpgw_info']['navbar']['about']['url'], + 'Logout'=>$GLOBALS['phpgw_info']['navbar']['logout']['url'] + ); + + display_sidebox('',$menu_title,$file); + + $GLOBALS['phpgw']->hooks->single('sidebox_menu',$GLOBALS['phpgw_info']['flags']['currentapp']); + + $GLOBALS['idots_tpl']->pparse('out','navbar_footer'); + + // If the application has a header include, we now include it + if (!@$GLOBALS['phpgw_info']['flags']['noappheader'] && @isset($GLOBALS['HTTP_GET_VARS']['menuaction'])) + { + list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']); + if (is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header']) + { + $GLOBALS[$class]->header(); + } + } + $GLOBALS['phpgw']->hooks->process('after_navbar'); + return; + } + + function display_sidebox($appname,$menu_title,$file) + { + + if(!$appname || ($appname==$GLOBALS['phpgw_info']['flags']['currentapp'] && $file)) + { + $var['lang_title']=$menu_title;//$appname.' '.lang('Menu'); + $GLOBALS['idots_tpl']->set_var($var); + $GLOBALS['idots_tpl']->pfp('out','extra_blocks_header'); + + while(list($text,$url) = each($file)) + { + sidebox_menu_item($url,$text); + } + + $GLOBALS['idots_tpl']->pparse('out','extra_blocks_footer'); + } + } + + function sidebox_menu_item($item_link='',$item_text='') + { + if($item_text == '_NewLine_' || $item_link == '_NewLine_') + { + $GLOBALS['idots_tpl']->pparse('out','extra_block_spacer'); + } + else + { + $var['icon_or_star']='*'; + $var['lang_item']=lang($item_text); + $var['item_link']=$item_link; + $GLOBALS['idots_tpl']->set_var($var); + $GLOBALS['idots_tpl']->pparse('out','extra_block_row'); + } + } + + function parse_navbar_end() + { + $GLOBALS['idots_tpl'] = createobject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); + + $GLOBALS['idots_tpl']->set_file( + array( + 'footer' => 'footer.tpl' + ) + ); + $var = Array( + 'img_root' => $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/images', + 'table_bg_color' => $GLOBALS['phpgw_info']['theme']['navbar_bg'], + 'version' => $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] + ); + $GLOBALS['phpgw']->hooks->process('navbar_end'); + + $var['powered_by'] = lang('Powered by phpGroupWare version %1',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']); + $GLOBALS['idots_tpl']->set_var($var); + $GLOBALS['idots_tpl']->pfp('out','footer'); + } diff --git a/phpgwapi/templates/literati/navbar.tpl b/phpgwapi/templates/literati/navbar.tpl new file mode 100644 index 0000000000..1d22f46566 --- /dev/null +++ b/phpgwapi/templates/literati/navbar.tpl @@ -0,0 +1,87 @@ + + + +
+ + + + + + + + + + +
+ + + + + {app_icons} + + + + + + {app_titles} + + +
{user_info}{current_users}
+ + + + + + +{output} + + + + + + + + + + {link_field_data} +
+ + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + diff --git a/phpgwapi/templates/literati/navbar_app.tpl b/phpgwapi/templates/literati/navbar_app.tpl new file mode 100755 index 0000000000..940d3e2edd --- /dev/null +++ b/phpgwapi/templates/literati/navbar_app.tpl @@ -0,0 +1,3 @@ + + + diff --git a/phpgwapi/templates/literati/nextmatchs.tpl b/phpgwapi/templates/literati/nextmatchs.tpl new file mode 100755 index 0000000000..5d365d3183 --- /dev/null +++ b/phpgwapi/templates/literati/nextmatchs.tpl @@ -0,0 +1,102 @@ + +
{current_app_title}
+ + + + + + + + + + + + +
+ + + + + +
{icon_or_star} {lang_item}
+ {left} + {right} + +
{cats_search_filter_data}
+ +
+ + + + + +
+{select} + +
+ {hidden} + + + + +
+ +
+
 {_link} + + + + +
+ {label} +
+
+  {searchby} + + {lang_category}   + +
+ + + + + + + + {search}{filter} + + +
 
+ + + + + + + + + + + + {cats}{search}{filter} + + +
   
+ + diff --git a/phpgwapi/templates/literati/portal.tpl b/phpgwapi/templates/literati/portal.tpl new file mode 100755 index 0000000000..2ccf71667a --- /dev/null +++ b/phpgwapi/templates/literati/portal.tpl @@ -0,0 +1,40 @@ + +
+

+ + + {portal_controls} + + + + +
 {title}
+ + {row} +
+
+

+ + +
+ + {control_link} +