This file contains 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
<a href="tel:+38<?= preg_replace('![^0-9+]+!', '', get_field("telephone", "option")) ?>" "> <? the_field("telephone", "option") ?></a> |
This file contains 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
UPDATE wp_options SET option_value = replace(option_value, 'http://domain.ru', 'http://newdomain.ru') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://domain.ru','http://newdomain.ru'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://domain.ru', 'http://newdomain.ru'); |
This file contains 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
{ | |
"color_scheme": "Packages/Agila Theme/Agila Oceanic Next.tmTheme", | |
"font_face": "Verdana", | |
"font_size": 11, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"open_files_in_new_window": false, | |
"theme": "Agila.sublime-theme", |
This file contains 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
Node.js was installed at | |
/usr/local/bin/node | |
npm was installed at | |
/usr/local/bin/npm | |
Make sure that /usr/local/bin is in your $PATH. | |
(https://coolestguidesontheplanet.com/add-shell-path-osx/) |
This file contains 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
Дайте команду в терминале | |
$ git --version | |
И если вы увидите что то вроде этого | |
git version 1.9.3 (Apple Git-50) | |
то это статья для вас. Если вы видите версию 2.3.1 (на момент написания статьи) последняя была такая, то тогда у вас все хорошо. |
This file contains 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
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' | |
killall Dock |
This file contains 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
<div id="gallery" class="popup-gallery"> | |
<?php if( have_rows('new-model-gallery') ): ?> | |
<?php while( have_rows('new-model-gallery') ): the_row(); | |
// vars | |
$image = get_sub_field('gall-item-photo'); | |
$name = get_sub_field('gall-item-name'); | |
$info = get_sub_field('gall-item-info'); | |
?> | |
<div class="gallery-item-block"> | |
<div class="gallery-item-image"> |
This file contains 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
xcode-select --install | |
Ruby comes bundled in OSX | |
ruby -v | |
Your output should be similar to | |
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0] | |
Install Sass |
This file contains 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
/* ---------------------------------------------- /* | |
* Mouse animate icon | |
/* ---------------------------------------------- */ | |
.mouse-icon { | |
border: 2px solid #000; | |
border-radius: 16px; | |
height: 40px; | |
width: 24px; | |
display: block; | |
z-index: 10; |
This file contains 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
<div class="seo-text"> | |
<? | |
//get_post_meta( get_the_ID(), 'seo_text', true ); | |
$queried_object = get_queried_object(); | |
$taxonomy = $queried_object->taxonomy; | |
$term_id = $queried_object->term_id; | |
the_field('seo_text', $taxonomy . '_' . $term_id); | |
?> |
NewerOlder