<?php
/* Smarty version 4.5.3, created on 2025-04-12 06:24:46
  from '/home/w/wmaster77/corp.site-77.ru/public_html/design/default/html/system/canonical.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_67f9dcfe431702_23421663',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'a3ce45862ce19203cf4cda15812ef639311233b4' => 
    array (
      0 => '/home/w/wmaster77/corp.site-77.ru/public_html/design/default/html/system/canonical.tpl',
      1 => 1744393409,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_67f9dcfe431702_23421663 (Smarty_Internal_Template $_smarty_tpl) {
if (!empty($_smarty_tpl->tpl_vars['canonical']->value)) {?>
    <link rel="canonical" href="<?php echo $_smarty_tpl->tpl_vars['config']->value->root_url;
echo $_smarty_tpl->tpl_vars['canonical']->value;?>
">
<?php } elseif (stristr($_SERVER['REQUEST_URI'],'?')) {?>
    <link rel="canonical" href="<?php echo $_smarty_tpl->tpl_vars['config']->value->root_url;?>
/<?php echo $_smarty_tpl->tpl_vars['routes']->value->full_path;?>
">
<?php } elseif (substr((string) $_SERVER['REQUEST_URI'], (int) '-1') == '/' && !empty($_smarty_tpl->tpl_vars['routes']->value->first)) {?>
    <link rel="canonical" href="<?php echo $_smarty_tpl->tpl_vars['config']->value->root_url;?>
/<?php echo $_smarty_tpl->tpl_vars['routes']->value->full_path;?>
">
<?php }
}
}
