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(){ | |
| $(document).on("contextmenu",function(e){ | |
| e.preventDefault(); | |
| }); | |
| }); |
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_filter('excerpt_more', function($more) { | |
| return '...'; | |
| }); |
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
| # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again | |
| вставляем свои дополнения к файлу htacces prestashop ниже этого комментария | |
| #Your entries go here e.g | |
| php_value max_input_vars 3000 |
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
| <?php | |
| $id = 7;// Обязательно передавать переменную | |
| $post = get_post($id); | |
| $content = $post->post_content; | |
| ?> |
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
| <? | |
| // для модуля регистрируем при установке | |
| public function install() { | |
| if !parent::install() || !$this->registerHook('leftColumn') || !$this->registerHook('myCustomHook')) | |
| return false; | |
| return true; | |
| } |
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
| input {outline: none;} | |
| input:-webkit-autofill { | |
| -webkit-box-shadow: inset 0 0 0 50px #fff !important; /* Цвет фона */ | |
| -webkit-text-fill-color: #999 !important; /* цвет текста */ | |
| color: #999 !important; /* цвет текста */ | |
| } |
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
| <link rel="apple-touch-icon" sizes="57x57" href="<?php echo get_template_directory_uri(); ?>/images/favicon/apple-icon-57x57.png"> | |
| <link rel="apple-touch-icon" sizes="60x60" href="<?php echo get_template_directory_uri(); ?>/images/favicon/apple-icon-60x60.png"> | |
| <link rel="apple-touch-icon" sizes="72x72" href="<?php echo get_template_directory_uri(); ?>/images/favicon/apple-icon-72x72.png"> | |
| <link rel="apple-touch-icon" sizes="76x76" href="<?php echo get_template_directory_uri(); ?>/images/favicon/apple-icon-76x76.png"> | |
| <link rel="apple-touch-icon" sizes="114x114" href="<?php echo get_template_directory_uri(); ?>/images/favicon/apple-icon-114x114.png"> | |
| <link rel="apple-touch-icon" sizes="120x120" href="<?php echo get_template_directory_uri(); ?>/images/favicon/apple-icon-120x120.png"> | |
| <link rel="apple-touch-icon" sizes="144x144" href="<?php echo get_template_directory_uri(); ?>/images/favicon/apple-icon-144x144.png"> | |
| <link rel="apple-touch-icon" sizes="152x152" href="<?php echo g |
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 getBoundingBox(element){ | |
| // Get the transformation matrix as a string | |
| var tm = element.css('transform'); | |
| // Transform the string to an array | |
| var regexp = /-?\d+[\.\d]*/g; | |
| tm = tm.match(regexp); | |
| // Get the size of the object and calculate the bounding box | |
| var h = element.height(); |
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
| Шаблон для single Wordpress. Нужен плагин WP Custom Post Template | |
| /** | |
| * WP Post Template: blog template | |
| */ |
NewerOlder