Changeset 3041
- Timestamp:
- Jan 3, 2009, 10:08:22 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/config_default.inc.php
r2859 r3041 155 155 $conf['show_version'] = true; 156 156 157 // meta_ref to reference multiple sets of incorporated pages or elements 158 // Set it false to avoid referencing in google, and other search engines. 159 $conf['meta_ref'] = true; 157 160 158 161 // links : list of external links to add in the menu. An example is the best -
trunk/include/page_header.php
r2651 r3041 57 57 } 58 58 59 // No referencing is required 60 if ( !$conf['meta_ref'] ) 61 { 62 $page['meta_robots']['noindex'] = 1; 63 $page['meta_robots']['nofollow'] = 1; 64 } 65 59 66 if ( !empty($page['meta_robots']) ) 60 67 { … … 64 71 .'">' 65 72 ); 73 } 74 if ( !isset($page['meta_robots']['noindex']) ) 75 { 76 $template->assign('meta_ref',1); 66 77 } 67 78 -
trunk/template/yoga/header.tpl
r2651 r3041 1 1 {* $Id$ *} 2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 3 "http://www.w3.org/TR/html4/strict.dtd"> 2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 4 3 <html lang="{$lang_info.code}" dir="{$lang_info.direction}"> 5 4 <head> 6 5 <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}"> 7 6 <meta name="generator" content="Piwigo (aka PWG), see piwigo.org"> 7 {if isset($meta_ref) } 8 {if isset($INFO_AUTHOR)} 9 <meta name="author" content="{$INFO_AUTHOR|replace:'"':' '}"> 10 {/if} 11 {if isset($related_tags)} 12 <meta name="keywords" content="{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}"> 13 {/if} 14 {if isset($COMMENT_IMG)} 15 <meta name="description" content="{$COMMENT_IMG|strip_tags:false|replace:'"':' '}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}"> 16 {else} 17 <meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}"> 18 {/if} 19 {/if} 20 8 21 <title>{$GALLERY_TITLE} :: {$PAGE_TITLE}</title> 9 22 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico"> … … 50 63 51 64 {if not empty($head_elements)} 52 {foreach from=$head_elements item=elt}{$elt}{/foreach} 65 {foreach from=$head_elements item=elt}{$elt} 66 {/foreach} 53 67 {/if} 54 68 -
trunk/template/yoga/picture_content.tpl
r3032 r3041 5 5 <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" 6 6 {if isset($COMMENT_IMG)} 7 title="{$COMMENT_IMG| replace:'"':' '}" {else} title="{$current.TITLE|replace:'"':' '} - {$ALT_IMG}"7 title="{$COMMENT_IMG|strip_tags:false|replace:'"':' '}" {else} title="{$current.TITLE|replace:'"':' '} - {$ALT_IMG}" 8 8 {/if}> 9 9 {if isset($high) }
Note: See TracChangeset
for help on using the changeset viewer.