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 ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<div id="post-<?php the_ID(); ?>" <?php post_class('clr'); ?>> | |
<?php the_title( '<h1>', '</h1>' ); ?> | |
<?php the_post_thumbnail(); ?> | |
<?php echo get_post_meta(get_the_ID(), 'meta_name', true); ?> | |
<?php the_content(); ?> | |
</div> | |
<?php endwhile; else: ?> |
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
sudo alsa force-reload |
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 calendarioPrezzi(element,calData,year) { | |
var year = year ? year : new Date().getUTCFullYear(); | |
var arrWeekdays = new Array('domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato'); | |
//change feb days for a leap year | |
var arrMonths = new Array(['gennaio', 31], ['febbraio', 28], ['marzo', 31], ['aprile', 30], ['maggio', 31], ['giugno', 30], ['luglio', 31], ['agosto', 31], ['settembre', 30], ['ottobre', 31], ['novembre', 30], ['dicembre', 31]); | |
//================ leap year | |
function isLeapYear(year) { |
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
.cControls { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
margin: 20px 0; | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; |
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
xfce4-panel -r |
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
.row { | |
display: grid; | |
grid-gap: var(--s11); | |
grid-template-columns: repeat(auto-fit, minmax(var(--s24), 1fr)); | |
} | |
@media screen and (max-width: 600px) { | |
.row { | |
grid-template-columns: none; | |
} |
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
.waves-effect { | |
position: relative; | |
overflow: hidden; | |
display: inline-block; | |
} | |
.ripple { | |
width: 0; | |
height: 0; | |
border-radius: 50%; | |
background: rgba(255, 255, 255, 0.4); |
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_filter('post_gallery','bp_custom_gallery_html',10,2); | |
function bp_custom_gallery_html($string,$attr){ | |
$uniqid = uniqid(); | |
$output = '<div class="bp_gallery_'.$uniqid.'">'; | |
$attachments = get_posts(array('include' => $attr['ids'],'post_type' => 'attachment')); | |
foreach($attachments as $key => $value){ | |
$output .= '<img src="'.wp_get_attachment_image_src($value->ID, 'large')[0].'" alt="Bottega Progetti Gallery Image"/>'; | |
} |
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 ajax_get_template_part() { | |
check_ajax_referer('ajax_get_template_part','nonce'); | |
$part = esc_attr($_POST['template_part']); | |
if (!$part) {return;} | |
get_template_part($part); | |
die(); | |
} | |
add_action( 'wp_ajax_nopriv_ajax_get_template_part', 'ajax_get_template_part' ); |
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 | |
// column post image | |
function add_thumb_column($cols) { | |
$cols['thumbnail'] = 'Image'; | |
return $cols; | |
} | |
function add_thumb_value($column_name, $post_id) { | |
$width = (int) 120; |
OlderNewer