Every block
should be in separated file named as block.
Filename: rating-star.scss
.rating-star {
$font-size: 0.5em;
display: inline-block; // `display` style may be set freely
<?php | |
wp_reset_query(); | |
global $withcomments; | |
$withcomments = 1; | |
comments_template( '', true ); |
{ | |
"name": "foo", | |
"version": "1.0.0", | |
"description": "foo project", | |
"main": "index.js", | |
"scripts": { | |
"start": "npm run serve | npm run watch-css", | |
"serve": "./node_modules/.bin/http-server -p 8080", | |
"build-css": "./node_modules/node-sass/bin/node-sass app/sass/style.scss -o app/css/ && ./node_modules/postcss-cli/bin/postcss --use autoprefixer app/css/style.css -d app/css/", | |
"watch-css": "nodemon -e scss -x 'npm run build-css'" |
<?php $url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large' ); $url = $url['0']; ?> |
$("img").on("dragstart", function(event) { event.preventDefault(); }); |
<!-- Google Map API --> | |
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOU-API-KEY&sensor=false"></script> |
//Easy Form Validator | |
//Example: $("form").evalid("Error message"); | |
//Author URL: http://webdesign-master.ru | |
(function($) { | |
$.fn.evalid = function(req_text) { | |
$(this).find("input[type], textarea").each(function() { | |
$(this).after("<p class='form_error_message'>" + req_text + "").next().hide(); | |
}); |
<?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/> |
/* @include font-face(SourceSansPro, '/fonts/Source_Sans_Pro/SourceSansPro-Regular'); */ | |
@font-face { | |
font-family: SourceSansPro; | |
font-weight: normal; | |
font-style: normal; | |
src: url(/assets/Source_Sans_Pro/SourceSansPro-Regular.eot); | |
src: url(/assets/Source_Sans_Pro/SourceSansPro-Regular.eot?#iefix) format("embedded-opentype"), | |
url(/assets/Source_Sans_Pro/SourceSansPro-Regular.woff) format("woff"), | |
url(/assets/Source_Sans_Pro/SourceSansPro-Regular.ttf) format("truetype"), |
<?php | |
$custom_fields = get_post_custom($post->ID); | |
foreach ( $custom_fields as $field_key => $field_values ) { | |
if(!isset($field_values[0])) continue; | |
if(in_array($field_key,array("_edit_lock", "_edit_last", "_thumbnail_id"))) continue; | |
echo "<strong>$field_key:</strong> $field_values[0] <br>"; | |
} |