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
| jQuery('.colorbox').each(function(){ | |
| var lnk = jQuery(this).attr('href'); | |
| jQuery(this).find('img').attr('src', lnk); | |
| jQuery(this).attr('data-fancybox', 'gallery'); | |
| }) |
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
| $tiny = array('ни', 'не', 'и', 'но', 'а', 'или', 'да', 'как', | |
| 'из-за', 'про', 'по', 'за', 'для', 'на', | |
| 'до', 'при', 'меж', 'о', 'у', 'в', 'во', | |
| 'с', 'со', 'от', 'ото', 'из', 'без', 'безо', | |
| 'к', 'ко', 'об', 'обо', 'под', 'подо', | |
| 'над', 'перед', 'передо'); | |
| $text = preg_replace('~(\s)«~', | |
| ' <span class="hpquote">«</span>', $text); | |
| $text = preg_replace('~[^>]«~', '<span class="hpquote">«</span>', $text); |
NewerOlder