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 | |
$images = getFieldOrder('img'); | |
$i = 0; | |
foreach($images as $image) { | |
$i++; | |
$nuevos = array ("w" => 300, "h" => 200, "zc" => 1, "q" => 100); | |
$image_thumb = get_image('img', 1, $i, 0, NULL, $nuevos); | |
$image_link = get_image('img', 1, $i, 0, NULL); ?> | |
<?php echo $image_thumb; ?><br/> |
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 | |
wp_reset_query(); | |
global $withcomments; | |
$withcomments = 1; | |
comments_template( '', 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
<style> | |
/* ---------------------------------------------- /* | |
* Mouse animate icon | |
/* ---------------------------------------------- */ | |
.mouse-icon { | |
border: 2px solid #000; | |
border-radius: 16px; | |
height: 40px; | |
width: 24px; | |
display: block; |
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
"use-strict"; | |
var gulp = require('gulp'), | |
concatCss = require('gulp-concat-css'), | |
connect = require('gulp-connect'), | |
livereload = require('gulp-livereload'), | |
minifyCss = require('gulp-minify-css'), | |
notify = require('gulp-notify'), | |
prefix = require('gulp-autoprefixer'), | |
rename = require('gulp-rename'), |
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() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; |
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
SASS: | |
.mfp-ready .mfp-figure | |
opacity: 0 | |
.mfp-zoom-in | |
.mfp-figure, .mfp-iframe-holder .mfp-iframe-scaler | |
opacity: 0 | |
transition: all 0.3s ease-out | |
transform: scale(0.95) | |
&.mfp-bg, .mfp-preloader | |
opacity: 0 |
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
How to use the plugin | |
$(".test-plugin").magnifierRentgen();</pre> | |
______________________________________________________ | |
SASS: | |
.magnifierRentgen | |
box-sizing: border-box | |
overflow: hidden | |
position: relative | |
width: 100% |
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 | |
add_action( 'admin_init', 'theme_options_init' ); | |
add_action( 'admin_menu', 'theme_options_add_page' ); | |
/** | |
* Init plugin options to white list our options | |
*/ | |
function theme_options_init(){ | |
register_setting( 'sample_options', 'sample_theme_options', 'theme_options_validate' ); |
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
/*Получим ID категории, передав функции её слаг */ | |
<?php $idObj = get_category_by_slug('s_about'); $id = $idObj->term_id; echo get_cat_name($id); ?> | |
/* Выводим описание категории */ | |
<?php echo category_description($id); ?> | |
/* Выводим описание категории по тегу */ | |
<?php | |
$tags = get_tags(); | |
if ($tags) { |