Changeset 2240
- Timestamp:
- Mar 2, 2008, 1:29:27 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r2215 r2240 258 258 if (count($header_msgs) > 0) 259 259 { 260 $template->assign_block_vars('header_msgs',array()); 261 foreach ($header_msgs as $header_msg) 262 { 263 $template->assign_block_vars('header_msgs.header_msg', 264 array('HEADER_MSG'=>$header_msg)); 265 } 260 $template->assign('header_msgs', $header_msgs); 261 $header_msgs=array(); 266 262 } 267 263 -
trunk/include/page_header.php
r2239 r2240 5 5 // | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 // | branch : BSF (Best So Far)8 7 // | file : $Id$ 9 8 // | last update : $Date$ … … 33 32 trigger_action('loc_begin_page_header'); 34 33 35 $template->assign _vars(34 $template->assign( 36 35 array( 37 36 'GALLERY_TITLE' => … … 56 55 )); 57 56 58 // picture header infos59 if (isset($header_infos))60 {61 $template->assign_block_vars( 'header_meta', $header_infos);62 }63 57 64 58 // Header notes 65 if ( isset($header_notes) and count($header_notes)>0)59 if ( !empty($header_notes) ) 66 60 { 67 foreach ($header_notes as $header_note) 68 { 69 $template->assign_block_vars('header_notes.header_note', 70 array('HEADER_NOTE' => $header_note)); 71 } 61 $template->assign('header_notes',$header_notes); 72 62 } 73 63 74 64 if ( !empty($page['meta_robots']) ) 75 65 { 76 $template->assign_block_vars('head_element', 77 array( 78 'CONTENT' => 79 '<meta name="robots" content="' 80 .implode(',', array_keys($page['meta_robots'])) 81 .'">' 82 ) 66 $template->append('head_elements', 67 '<meta name="robots" content="' 68 .implode(',', array_keys($page['meta_robots'])) 69 .'">' 83 70 ); 84 71 } … … 88 75 and isset( $url_link ) and isset( $redirect_msg ) ) 89 76 { 90 $template->assign _vars(77 $template->assign( 91 78 array( 92 'U_REDIRECT_MSG' => $redirect_msg, 93 'REFRESH_TIME' => $refresh, 94 'U_REFRESH' => $url_link 79 'REDIRECT_MSG' => $redirect_msg, 80 'page_refresh' => array( 81 'TIME' => $refresh, 82 'U_REFRESH' => $url_link 83 ) 95 84 )); 96 $template->assign_block_vars('refresh', array());97 85 } 98 86 -
trunk/notification.php
r2029 r2240 72 72 $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); 73 73 74 $template->assign_block_vars('head_element', 75 array( 76 'CONTENT' => '<link rel="alternate" type="application/rss+xml" href="'.$feed_url.'">' 77 ) 74 $template->append('head_elements', 75 '<link rel="alternate" type="application/rss+xml" href="'.$feed_url.'">' 78 76 ); 79 77 -
trunk/plugins/admin_advices/main.inc.php
r1926 r2240 18 18 ) 19 19 {// This Plugin works only on the Admin page 20 $template->assign_block_vars( 21 'head_element', 22 array( 23 'CONTENT' => '<link rel="stylesheet" type="text/css" ' 24 . 'href="'.PHPWG_PLUGINS_PATH.'admin_advices/default-layout.css">', 25 ) 20 $template->append( 21 'head_elements', 22 '<link rel="stylesheet" type="text/css" ' 23 . 'href="'.PHPWG_PLUGINS_PATH.'admin_advices/default-layout.css">' 26 24 ); 27 25 add_event_handler('loc_begin_page_tail', 'set_admin_advice' ); … … 56 54 $query = ' 57 55 SELECT * 58 FROM '.IMAGES_TABLE.' 56 FROM '.IMAGES_TABLE.' 59 57 ORDER BY RAND(NOW()) 60 58 LIMIT 0, 1 … … 68 66 $url_check = get_themeconf('icon_dir').'/'; 69 67 $url_uncheck = $url_check . 'uncheck'; 70 $url_check .= 'check'; 71 $picture_id = $row['id']; 68 $url_check .= 'check'; 69 $picture_id = $row['id']; 72 70 $query = ' 73 SELECT * FROM '.IMAGE_TAG_TABLE.' 71 SELECT * FROM '.IMAGE_TAG_TABLE.' 74 72 WHERE image_id = ' . $picture_id .' 75 73 ;'; 76 $tag_count = mysql_num_rows(mysql_query($query)); 74 $tag_count = mysql_num_rows(mysql_query($query)); 77 75 $template->assign_block_vars( 78 76 'thumbnail', … … 94 92 $url_uncheck : $url_check, 95 93 'NUM_TAGS' => (string) $tag_count, 96 'U_MODIFY' => $url_modify, 94 'U_MODIFY' => $url_modify, 97 95 ) 98 96 ); -
trunk/plugins/admin_multi_view/is_admin.inc.php
r2223 r2240 43 43 </script>'; 44 44 45 $template->assign_block_vars( 'head_element', array( 46 'CONTENT' => $js 47 ) 48 ); 45 $template->append( 'head_elements', $js ); 49 46 } 50 47 ?> -
trunk/template/yoga/header.tpl
r2224 r2240 1 <!-- DEV TAG: not smarty migrated --> 1 {* $Id$ *} 2 2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 3 3 "http://www.w3.org/TR/html4/strict.dtd"> 4 <html lang="{ LANG}" dir="{DIR}">4 <html lang="{$LANG}" dir="{$DIR}"> 5 5 <head> 6 <meta http-equiv="Content-Type" content="text/html; charset={ CONTENT_ENCODING}">6 <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}"> 7 7 <meta name="generator" content="PhpWebGallery (aka PWG), see www.phpwebgallery.net"> 8 <!-- BEGIN header_meta --> 9 <meta name="author" content="{header_meta.INFO_AUTHOR}"> 10 <meta name="keywords" content="{header_meta.INFO_TAGS}"> 11 <meta name="description" content="{header_meta.COMMENT}"> 12 <!-- END header_meta --> 13 <title>{GALLERY_TITLE} :: {PAGE_TITLE}</title> 14 <link rel="shortcut icon" type="image/x-icon" href="{pwg_root}template-common/favicon.ico"> 15 <link rel="start" title="{lang:home}" href="{U_HOME}" > 16 <link rel="search" title="{lang:search}" href="{pwg_root}search.php" > 17 <!-- BEGIN first --> 18 <link rel="first" title="{lang:first_page}" href="{first.U_IMG}" > 19 <!-- END first --> 20 <!-- BEGIN previous --> 21 <link rel="prev" title="{lang:previous_page}" href="{previous.U_IMG}" > 22 <!-- END previous --> 23 <!-- BEGIN next --> 24 <link rel="next" title="{lang:next_page}" href="{next.U_IMG}" > 25 <!-- END next --> 26 <!-- BEGIN last --> 27 <link rel="last" title="{lang:last_page}" href="{last.U_IMG}" > 28 <!-- END last --> 29 <!-- BEGIN up --> 30 <link rel="up" title="{lang:thumbnails}" href="{up.U_URL}" > 31 <!-- END up --> 32 <link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/layout.css"> 33 <!-- the next css is used to fix khtml (Konqueror/Safari) issue 34 the "text/nonsense" prevents gecko based browsers to load it --> 35 <link rel="stylesheet" type="text/nonsense" href="{pwg_root}template/{themeconf:template}/fix-khtml.css"> 8 <title>{$GALLERY_TITLE} :: {$PAGE_TITLE}</title> 9 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico"> 10 11 <link rel="start" title="{'home'|@translate}" href="{$U_HOME}" > 12 <link rel="search" title="{'search'|@translate}" href="{$ROOT_URL}search.php" > 13 {if isset($first.U_IMG) }<link rel="first" title="{'first_page'|@translate}" href="{$first.U_IMG}" >{/if} 14 {if isset($previous.U_IMG)}<link rel="prev" title="{'previous_page'|@translate}" href="{$previous.U_IMG}" >{/if} 15 {if isset($next.U_IMG) }<link rel="next" title="{'next_page'|@translate}" href="{$next.U_IMG}" >{/if} 16 {if isset($last.U_IMG) }<link rel="last" title="{'last_page'|@translate}" href="{$last.U_IMG}" >{/if} 17 {if isset($U_UP) }<link rel="up" title="{'thumbnails'|@translate}" href="{$U_UP}" >{/if} 18 19 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/layout.css"> 20 {* the next css is used to fix khtml (Konqueror/Safari) issue the "text/nonsense" prevents gecko based browsers to load it *} 21 <link rel="stylesheet" type="text/nonsense" href="{$ROOT_URL}template/{$themeconf.template}/fix-khtml.css"> 36 22 <!--[if lt IE 7]> 37 <link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/fix-ie5-ie6.css">23 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie5-ie6.css"> 38 24 <![endif]--> 39 25 <!--[if gt IE 6]> 40 <link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/fix-ie7.css">26 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie7.css"> 41 27 <![endif]--> 42 28 <!--[if !IE]> <--> 43 <link rel="stylesheet" href="{pwg_root}template/{themeconf:template}/not-ie.css" type="text/css">29 <link rel="stylesheet" href="{$ROOT_URL}template/{$themeconf.template}/not-ie.css" type="text/css"> 44 30 <!--> <![endif]--> 45 <link rel="stylesheet" type="text/css" media="print" href="{pwg_root}template/{themeconf:template}/print.css"> 46 <link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/default-colors.css"> 47 <link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/theme.css"> 48 <!-- BEGIN slideshow --> 49 <link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/local-slideshow.css"> 50 <!-- END slideshow --> 51 {themeconf:local_head} 52 <!-- BEGIN prefetch --> 53 <link rel="prefetch" href="{prefetch.URL}"> 54 <!-- END prefetch --> 55 <!-- BEGIN refresh --> 56 <meta http-equiv="refresh" content="{REFRESH_TIME};url={U_REFRESH}"> 57 <!-- END refresh --> 58 <script type="text/javascript" src="{pwg_root}template-common/scripts.js"></script> 31 <link rel="stylesheet" type="text/css" media="print" href="{$ROOT_URL}template/{$themeconf.template}/print.css"> 32 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/default-colors.css"> 33 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css"> 34 {$themeconf.local_head} 35 {if isset($U_PREFETCH) }<link rel="prefetch" href="{$U_PREFETCH}">{/if} 36 37 {if not empty($page_refresh) }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if} 38 39 <script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script> 59 40 <!--[if lt IE 7]> 60 61 /* only because we need \{pwg_root\} otherwise use fix-ie5-ie6.css */ 62 BODY { behavior:url("{pwg_root}template-common/csshover.htc"); }63 A IMG, .button, .icon { 64 behavior:url("{pwg_root}template-common/tooltipfix.htc");65 66 FORM { behavior: url("{pwg_root}template-common/inputfix.htc"); }67 68 <script type="text/javascript" src="{pwg_root}template-common/pngfix.js"></script>41 <style> 42 {* only because we need {$ROOT_URL} otherwise use fix-ie5-ie6.css *} 43 BODY {ldelim} behavior:url("{$ROOT_URL}template-common/csshover.htc"); } 44 A IMG, .button, .icon {ldelim} 45 behavior:url("{$ROOT_URL}template-common/tooltipfix.htc"); 46 } 47 FORM {ldelim} behavior: url("{$ROOT_URL}template-common/inputfix.htc"); } 48 </style> 49 <script type="text/javascript" src="{$ROOT_URL}template-common/pngfix.js"></script> 69 50 <![endif]--> 70 <!-- BEGIN head_element --> 71 {head_element.CONTENT} 72 <!-- END head_element --> 51 52 {if not empty($head_elements)} 53 {foreach from=$head_elements item=elt}{$elt}{/foreach} 54 {/if} 55 73 56 </head> 74 57 75 <body id="{ BODY_ID}">58 <body id="{$BODY_ID}"> 76 59 <div id="the_page"> 77 <!-- BEGIN header_msgs --> 60 61 {if not empty($header_msgs)} 78 62 <div class="header_msgs"> 79 <!-- BEGIN header_msg --> 80 <P>{header_msgs.header_msg.HEADER_MSG}</p>81 <!-- END header_msg --> 63 {foreach from=$header_msgs item=elt} 64 <p>{$elt}</p> 65 {/foreach} 82 66 </div> 83 <!-- END header_msgs --> 84 <div id="theHeader">{PAGE_BANNER}</div> 85 <!-- BEGIN header_notes --> 67 {/if} 68 69 <div id="theHeader">{$PAGE_BANNER}</div> 70 71 {if not empty($header_notes)} 86 72 <div class="header_notes"> 87 <!-- BEGIN header_note --> 88 <P>{header_notes.header_note.HEADER_NOTE}</p>89 <!-- END header_note -->73 {foreach from=$header_notes item=elt} 74 <p>{$elt}</p> 75 {/foreach} 90 76 </div> 91 <!-- END header_notes --> 77 {/if}
Note: See TracChangeset
for help on using the changeset viewer.