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 | |
$trenutnovrijeme = strtotime('now'); | |
query_posts( array( | |
'post_type' => 'javna-nadmetanja', | |
'orderby' => 'wpcf-datum-objave', | |
'meta_key' =>'wpcf-datum-zatvaranja', | |
'meta_compare'=>'>' , | |
'meta_value' => $trenutnovrijeme, | |
'order' => DESC, | |
'showposts' => 10, |
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 | |
global $more; | |
$more = 0; | |
the_content(''); | |
?> |
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
tar -cvzf backup.tar * //packing | |
tar zxvf file_name.tar.gz * //unpacking |
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 | |
function add_category_automatically1($post_ID) { | |
global $wpdb; | |
if(in_category(7)){ | |
$cat = array(10); | |
wp_set_object_terms($post_ID, $cat, 'category', true); | |
} | |
} | |
add_action('publish_post', 'add_category_automatically1'); |
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
@-moz-document url-prefix() { | |
ul.nav li a { | |
padding:0 15px 2px 15px; | |
} | |
} |
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
To fix this, please perform the following: | |
Open Preferences > Browse Packages… | |
Navigate into the SFTP/ folder and open SFTP.py in Sublime. | |
Without making any modifications, save the file. Sublime SFTP should now be fully functional again. |
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
Just add this to: | |
Preferences > Package Setteings > Settings - User | |
{ | |
"auto_upgrade_last_run": 1331660912, | |
"repository_channels": [ | |
"http://sublime.wbond.net/repositories.json" | |
] | |
} |
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 (jQuery) { | |
// VERTICALLY ALIGN FUNCTION | |
jQuery.fn.vAlign = function() { | |
return this.each(function(i){ | |
var ah = jQuery(this).height(); | |
var ph = jQuery(this).parent().height(); | |
var mh = Math.ceil((ph-ah) / 2); | |
jQuery(this).css('padding-top', mh); | |
}); | |
}; |
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 | |
//Just put it in functions.php | |
/* Number of columns in Woocommerce Loop */ | |
global $woocommerce_loop; | |
$woocommerce_loop['columns'] = 2; |
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 | |
// Just add it to functions.php | |
// Add currency / symbol | |
add_filter( 'woocommerce_currencies', 'add_rand_currency' ); | |
add_filter( 'woocommerce_currency_symbol', 'add_rand_currency_symbol' ); | |
function add_rand_currency( $currencies ) { | |
$currencies['HRK'] = __( 'Hrvatska kuna (Kn)', 'woothemes' ); |