This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- BREADCRUMBS --> | |
| <?php | |
| if( function_exists('kama_breadcrumbs') ) kama_breadcrumbs('', array(), | |
| array( | |
| 'on_front_page' => false, | |
| ) | |
| ); | |
| ?> | |
| <!-- BREADCRUMBS --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //SmoothScroll | |
| SmoothScroll({ | |
| stepSize: 60, | |
| animationTime: 500, | |
| }); | |
| //SmoothScroll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.open-popup-link').magnificPopup({ | |
| type:'inline', | |
| removalDelay: 300, | |
| mainClass: "mfp-fade", | |
| fixedContentPos: true, | |
| fixedBgPos: true, | |
| overflowY: 'scroll', | |
| callbacks: { | |
| open: function() { | |
| $('.scroll-to-top').hide(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //DEBUG | |
| $whitelist = array( | |
| '127.0.0.1', | |
| ); | |
| if(in_array($_SERVER['REMOTE_ADDR'], $whitelist)){ | |
| function vardump($var) { | |
| echo '<pre>'; | |
| var_dump($var); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Какой используется файл шаблона? | |
| add_action('wp_head', 'show_template'); // перед шапкой | |
| // add_action('wp_footer', 'show_template'); // в подвале | |
| function show_template(){ | |
| global $template; | |
| echo $template; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function true_wp_posts_nofollow_callback($matches){ | |
| $a = $matches[0]; | |
| $site_url = site_url(); | |
| if (strpos($a, 'rel') === false){ | |
| $a = preg_replace("%(href=\S(?!$site_url))%i", 'rel="noopener noreferrer nofollow" $1', $a); | |
| } elseif (preg_match("%href=\S(?!$site_url)%i", $a)){ | |
| $a = preg_replace('/rel=S(?!nofollow)\S*/i', 'rel="noopener noreferrer nofollow"', $a); | |
| } | |
| return $a; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| User-agent: * | |
| Disallow: /cgi-bin # классика... | |
| Disallow: /? # все параметры запроса на главной | |
| Disallow: /wp- # все файлы WP: /wp-json/, /wp-includes, /wp-content/plugins | |
| Disallow: *?s= # поиск | |
| Disallow: *&s= # поиск | |
| Disallow: /search # поиск | |
| Disallow: /author/ # архив автора | |
| Disallow: *?attachment_id= # страница вложения. Вообще-то на ней редирект... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Options All -ExecCGI -Indexes -Includes +FollowSymLinks | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteBase / | |
| RewriteCond %{HTTP_HOST} ^black-web | |
| RewriteRule (.*) http://www.black-web.ru/$1 [R=301,L] | |
| RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ | |
| RewriteRule ^index\.php$ http://www.black-web.ru/ [R=301,L] | |
| </IfModule> |
NewerOlder