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
$(".goToCategory").change( function() { | |
if ( this.options[this.selectedIndex].value !== 0 ) { | |
location.href = this.options[this.selectedIndex].getAttribute('data-permalink'); | |
} | |
}); |
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
/** | |
* Returns a cached json object with forecast info of a city | |
* forecast info from openweathermap.org api | |
* you need and API key | |
* | |
* @param $city string with city name | |
* @return mixed|string json object with forecast info | |
*/ | |
function get_city_weather( $city ) { | |
/** |
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
/** | |
* Retrieve a post's terms as a list with specified format. | |
* | |
* @since 2.5.0 | |
* | |
* @param int $id Post ID. | |
* @param string $taxonomy Taxonomy name. | |
* @param string $before Optional. Before list. | |
* @param string $sep Optional. Separate items using this. | |
* @param string $after Optional. After list. |
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('icl_get_languages')):?> | |
<?php | |
$languages = icl_get_languages('skip_missing=N'); | |
$active = $languages[ICL_LANGUAGE_CODE]; | |
echo '<li class="has-dropdown"><a href="#">'. | |
'<i class="icon-'.ICL_LANGUAGE_CODE.' flag"></i>'. | |
'</a>'; | |
if(!empty($languages)){ | |
echo '<ul class="dropdown">'; |
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
<div class="table container"> | |
<div class="table-cell"> | |
<code>display: table-cell;</code> | |
</div> | |
</div> | |
<div class="wrapper container"> | |
<div class="inline-block"> | |
<code>display: inline-block;</code> | |
</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
<div class="table container"> | |
<div class="table-cell"> | |
<code>display: table-cell;</code> | |
</div> | |
</div> | |
<div class="wrapper container"> | |
<div class="inline-block"> | |
<code>display: inline-block;</code> | |
</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
msgid "" | |
msgstr "" | |
"Project-Id-Version: THEME\n" | |
"Report-Msgid-Bugs-To: \n" | |
"POT-Creation-Date: 2014-06-26 17:38+0100\n" | |
"PO-Revision-Date: \n" | |
"Language-Team: TEAM <[email protected]>\n" | |
"Language: en\n" | |
"MIME-Version: 1.0\n" | |
"Content-Type: text/plain; charset=UTF-8\n" |
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
/************************************************************************************** | |
* CUSTOM ADMIN FILTER | |
* Add taxonomy filter to wp-admin posts listing | |
**************************************************************************************/ | |
add_action( 'restrict_manage_posts', 'my_restrict_manage_posts' ); | |
function my_restrict_manage_posts() { | |
global $typenow; |
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, body, main{ | |
-webkit-backface-visibility: visible; | |
height: 100%; | |
} | |
// off-canvas fix | |
.off-canvas-wrap, .inner-wrap{ | |
-webkit-backface-visibility: visible; | |
} |