<?php
/* Smarty version 4.3.1, created on 2023-11-29 02:13:48
  from '/Users/nikolaimv/Sites/it-academy.loc/themes/template-ru/modules/meta.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.1',
  'unifunc' => 'content_6566580cc2d296_01132105',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '4a91566bce83f19c68cad69b75df77f8e511bf9b' => 
    array (
      0 => '/Users/nikolaimv/Sites/it-academy.loc/themes/template-ru/modules/meta.tpl',
      1 => 1701204340,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6566580cc2d296_01132105 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.replace.php','function'=>'smarty_modifier_replace',),1=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.regex_replace.php','function'=>'smarty_modifier_regex_replace',),2=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.truncate.php','function'=>'smarty_modifier_truncate',),));
?>
	<title><?php if ((isset($_smarty_tpl->tpl_vars['title']->value))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8', true);?>
 - <?php }
if ((isset($_smarty_tpl->tpl_vars['config']->value['website_name']))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['website_name'], ENT_QUOTES, 'UTF-8', true);
}?></title>

	<meta charset="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['charset'], ENT_QUOTES, 'UTF-8', true);?>
">

    <?php if ($_smarty_tpl->tpl_vars['description']->value) {?><meta name="description" content="<?php echo $_smarty_tpl->tpl_vars['description']->value;?>
"><?php }?>
    <?php if ($_smarty_tpl->tpl_vars['keywords']->value) {?><meta name="keywords" content="<?php echo $_smarty_tpl->tpl_vars['keywords']->value;?>
"><?php }?>

	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta name="robots" content="index,follow">

	<meta property="og:locale" content="ru_RU">
	<meta property="og:site_name" content="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['website_name'], ENT_QUOTES, 'UTF-8', true);?>
">
	<meta property="og:type" content="website">
	<meta property="twitter:card" content="summary_large_image">

    <?php if ((isset($_smarty_tpl->tpl_vars['article']->value)) && !empty($_smarty_tpl->tpl_vars['article']->value)) {?>
		<meta property="og:url" content="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
">
		<meta property="og:title" content="<?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
">
        <?php if ((isset($_smarty_tpl->tpl_vars['description']->value)) && !empty($_smarty_tpl->tpl_vars['description']->value)) {?>
			<meta property="og:description" content="<?php echo $_smarty_tpl->tpl_vars['description']->value;?>
">
        <?php } elseif ($_smarty_tpl->tpl_vars['article']->value) {?>
			<meta property="og:description" content="<?php echo smarty_modifier_truncate(smarty_modifier_regex_replace(smarty_modifier_regex_replace(smarty_modifier_replace(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['article']->value['content'] ?: ''),'&nbsp;',''),"!\s+!"," "),"/[\r\n]*/",''),300);?>
">
        <?php }?>
		<meta property="og:image" content="<?php if ((isset($_smarty_tpl->tpl_vars['article']->value['image']['large']))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['image']['large'], ENT_QUOTES, 'UTF-8', true);
} else {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uploads/og-image.jpg<?php }?>">
		<link rel="image_src"  href="<?php if ((isset($_smarty_tpl->tpl_vars['article']->value['image']['large']))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['image']['large'], ENT_QUOTES, 'UTF-8', true);
} else {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uploads/og-image.jpg<?php }?>">

		<meta property="twitter:url" content="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
">
		<meta property="twitter:title" content="<?php echo $_smarty_tpl->tpl_vars['title']->value;?>
">
		<meta property="twitter:description" content="<?php if ((isset($_smarty_tpl->tpl_vars['description']->value))) {
echo $_smarty_tpl->tpl_vars['description']->value;
}?>">
		<meta property="twitter:image" content="<?php if ((isset($_smarty_tpl->tpl_vars['article']->value['image']['large']))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['article']->value['image']['large'], ENT_QUOTES, 'UTF-8', true);
} else {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uploads/og-image.jpg<?php }?>">
	<?php } else { ?>
		<meta property="og:url" content="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
">
		<meta property="og:title" content="<?php echo $_smarty_tpl->tpl_vars['title']->value;?>
">
	    <meta property="og:description" content="<?php if ((isset($_smarty_tpl->tpl_vars['description']->value))) {
echo $_smarty_tpl->tpl_vars['description']->value;
}?>">
		<meta property="og:image" content="<?php if ((isset($_smarty_tpl->tpl_vars['section']->value['image']['large']))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['section']->value['image']['large'], ENT_QUOTES, 'UTF-8', true);
} else {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uploads/og-image.jpg<?php }?>">
		<link rel="image_src"  href="<?php if ((isset($_smarty_tpl->tpl_vars['section']->value['image']['large']))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['section']->value['image']['large'], ENT_QUOTES, 'UTF-8', true);
} else {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uploads/og-image.jpg<?php }?>">

		<meta property="twitter:url" content="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
">
		<meta property="twitter:title" content="<?php echo $_smarty_tpl->tpl_vars['title']->value;?>
">
	    <meta property="twitter:description" content="<?php if ((isset($_smarty_tpl->tpl_vars['description']->value))) {
echo $_smarty_tpl->tpl_vars['description']->value;
}?>">
		<meta property="twitter:image" content="<?php if ((isset($_smarty_tpl->tpl_vars['section']->value['image']['large']))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['section']->value['image']['large'], ENT_QUOTES, 'UTF-8', true);
} else {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/uploads/og-image.jpg<?php }?>">
    <?php }?>

<?php }
}
