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
| // ----------------------- style.css ------ создаем новую тему ---------------// | |
| /* | |
| Theme Name: MyTheme | |
| */ | |
| // ----------------------- functions.php -------------------------------------// |
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
| <section class="content-block gallery-1 gallery-1-1"> | |
| <?php | |
| $gallery = blocks_get_gallery( get_theme_mod( 'blocks_gallery_1_1_source' ) ); | |
| ?> | |
| <div class="container"> | |
| <div class="underlined-title"> | |
| <h1><?php echo get_theme_mod( 'blocks_gallery_1_1_title', __( 'A selection of our work', 'blockdemo' ) ); ?></h1> | |
| <hr> | |
| <h2><?php echo get_theme_mod( 'blocks_gallery_1_1_subtitle', __( 'Hand-picked just for you', 'blockdemo' ) ); ?></h2> | |
| </div> |
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 | |
| if ( ! function_exists( 'blockdemo_setup' ) ) : | |
| function blockdemo_setup() { | |
| /* | |
| * Make theme available for translation. | |
| * Translations can be filed in the /languages/ directory. | |
| */ | |
| load_theme_textdomain( 'blockdemo', get_template_directory() . '/languages' ); |
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
| выводим социальные иконки через |
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
| // Фрагменты кода Pinegrow + полезные фрагменты из других источников | |
| /* functions.php - Pinegrow generated Enqueue Scripts and Styles */ | |
| if ( ! function_exists( 'prokopskiy_2_enqueue_scripts' ) ) : | |
| function prokopskiy_2_enqueue_scripts() { | |
| /* Pinegrow generated Enqueue Scripts Begin */ | |
| wp_deregister_script( 'jquery' ); |
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
| /* ======= Customizer with basic controls sample === */ | |
| /* https://codex.wordpress.org/Plugin_API/Action_Reference/customize_register */ | |
| function themename_customize_register($wp_customize){ | |
| $wp_customize->add_section('themename_color_scheme', array( | |
| 'title' => __('Color Scheme', 'themename'), | |
| 'description' => '', | |
| 'priority' => 120, | |
| )); |
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
| <section class="content-block gallery-1 gallery-1-1"> | |
| <?php | |
| $gallery = blocks_get_gallery( get_theme_mod( 'blocks_gallery_1_1_source' ) ); | |
| ?> | |
| <div class="container"> | |
| <div class="underlined-title"> | |
| <h1><?php echo get_theme_mod( 'blocks_gallery_1_1_title', __( 'A selection of our work', 'blockswpdemo' ) ); ?></h1> | |
| <hr> | |
| <h2><?php echo get_theme_mod( 'blocks_gallery_1_1_subtitle', __( 'Hand-picked just for you', 'blockswpdemo' ) ); ?></h2> | |
| </div> |
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
| // Gulp для самых маленьких - подробное руководство - https://www.youtube.com/watch?v=vW51JUVT66w | |
| // и http://webdesign-master.ru/blog/tools/2016-03-09-gulp-beginners.html | |
| // Внесены коррективы, чтобы файл мог работать с проектом ОВК-строй (16-04-2016) | |
| var gulp = require('gulp'), // Подключаем Gulp и пакеты из папки node_modules в наш проект | |
| sass = require('gulp-sass'), // Подключаем SASS пакет | |
| browserSync = require('browser-sync'), // подключаем Browser Sync | |
| concat = require('gulp-concat'), // подключаем gulp-concat для конкатенации файлов | |
| uglify = require('gulp-uglifyjs'), // подключаем gulp-uglifyjs для сжатия js-файлов | |
| cssnano = require('gulp-cssnano'), // подключаем пакет для минификации CSS |
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
| ========================================== gulpfile.js ================================= | |
| // Основа - "Gulp для самых маленьких - подробное руководство" - https://www.youtube.com/watch?v=vW51JUVT66w | |
| // и http://webdesign-master.ru/blog/tools/2016-03-09-gulp-beginners.html | |
| // Внесены коррективы, чтобы файл мог работать с проектом ОВК-строй (16-04-2016) | |
| var gulp = require('gulp'), // Подключаем Gulp и пакеты из папки node_modules в наш проект | |
| sass = require('gulp-sass'), // Подключаем SASS пакет | |
| browserSync = require('browser-sync'), // подключаем Browser Sync | |
| concat = require('gulp-concat'), // подключаем gulp-concat для конкатенации файлов |
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
| HTML | |
| <span class="Single">150</span> | |
| JQUERY | |
| jQuery({ Counter: 0 }).animate({ Counter: $('.Single').text() }, { | |
| duration: 1000, | |
| easing: 'swing', | |
| step: function () { | |
| $('.Single').text(Math.ceil(this.Counter)); | |
| } |