require_once 'contacts.php'; break; case 'donate': $page_title = 'Пожертвования'; require_once 'donate.php'; break; case 'error': if (isset($_GET['id'])) { switch ($_GET['id']) { case '403': $page_title = 'Ошибка 403'; $content = get_post_template('page_403'); break; case '404': $page_title = 'Ошибка 404'; $content = get_post_template('page_404'); break; default: $page_title = 'Ошибка 404'; $content = get_post_template('page_404'); } } else { $page_title = 'Ошибка 404'; $content = get_post_template('page_404'); } break; default: $page_title = 'Ошибка 404'; $content = get_post_template('page_404'); } require_once '_template.php';
function largo_floating_social_button_js() { $template = get_post_template(null); if (is_null($template)) { $template = of_get_option('single_template'); } $is_single_column = (bool) strstr($template, 'single-one-column') || $template == 'normal' || is_null($template); if (is_single() && of_get_option('single_floating_social_icons', '1') == '1' && $is_single_column) { ?> <script type="text/javascript" src="<?php $suffix = LARGO_DEBUG ? '' : '.min'; $version = largo_version(); echo get_template_directory_uri() . '/js/floating-social-buttons' . $suffix . '.js?ver=' . $version; ?> " async></script> <?php } }