Skip to content
Permalink
Browse files
feature 2368 : added link rel canonical on picture page
git-svn-id: http://piwigo.org/svn/trunk@13048 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
modus75 committed Feb 7, 2012
1 parent 366e0a9 commit 6da9041c7f2f4714b931fc8553537d7fd59505ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
@@ -947,6 +947,7 @@ function default_picture_content($content, $element_info)
$template->assign('U_PREFETCH', $picture['next']['derivatives'][pwg_get_session_var('picture_deriv', IMG_LARGE)]->get_url() );
}

$template->assign('U_CANONICAL', make_picture_url( array('image_id'=>$picture['current']['id'], 'image_file'=>$picture['current']['file']) ) );

// +-----------------------------------------------------------------------+
// | sub pages |
@@ -39,7 +39,8 @@
{/foreach}


{if isset($U_PREFETCH) }<link rel="prefetch" href="{$U_PREFETCH}">{/if}
{if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
{if isset($U_CANONICAL)}<link rel="canonical" href="{$U_CANONICAL}">{/if}

{if not empty($page_refresh) }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}

0 comments on commit 6da9041

Please sign in to comment.