This file contains 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
<form action="#"> | |
<p> | |
<input type="radio" id="test1" name="radio-group" checked> | |
<label for="test1">Apple</label> | |
</p> | |
<p> | |
<input type="radio" id="test2" name="radio-group"> | |
<label for="test2">Peach</label> | |
</p> | |
<p> |
This file contains 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
.giveMeEllipsis { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
display: -webkit-box; | |
-webkit-box-orient: vertical; | |
-webkit-line-clamp: N; /* number of lines to show */ | |
line-height: X; /* fallback */ | |
max-height: X*N; /* fallback */ | |
} |
This file contains 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
$('#newsletter').load('content.html', function() { | |
var images = $('#newsletter img'); | |
var nimages = images.length; | |
images.load(function() { | |
nimages--; | |
if(nimages == 0) { | |
// images loaded. now execute Callback: | |
alert('all images loaded!'); | |
} | |
}); |
This file contains 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 id="project-gallery"> | |
<?php if( have_rows('gallery_repeater') ): ?> | |
<?php while ( have_rows('gallery_repeater') ) : the_row(); ?> | |
<?php | |
$projGalImgs = get_sub_field('gallery'); | |
$size = 'full'; | |
if( $projGalImgs ): ?> |
This file contains 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
var menuIcon = $("#menu-icon-container"); | |
var menu = $('#menu'); | |
$(document).mouseup(function(e) { | |
if (!menuIcon.is(e.target) && menuIcon.has(e.target).length === 0 && menuIcon.hasClass('visible')) | |
{ | |
menu.hide(); | |
$(menuIcon).removeClass('visible'); | |
} |
This file contains 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 auto_featured_image() { | |
global $post; | |
if (!has_post_thumbnail($post->ID)) { | |
$attached_image = get_children( "post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1" ); | |
if ($attached_image) { | |
foreach ($attached_image as $attachment_id => $attachment) { | |
set_post_thumbnail($post->ID, $attachment_id); | |
} |
This file contains 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="file-upload-field"> | |
<label class="form-label" for="form-attachment"> | |
<h4 class="form-titles">Attachments <span class="form-optional">(optional)</span></h4> | |
<span class="font-italic form-file-spec">(.zip, .jpg or .png - max 20MB)</span> | |
<div class="solid-btn-tiny solid-btn-alt mt-1 file-btn" | |
data-toggle="tooltip" |
This file contains 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="container-fluid"> | |
<div class="swiper-container"> | |
<div class="swiper-wrapper"> | |
<?php $the_query=new WP_Query( array( 'post_type'=> 'project' ) ); ?> | |
<?php if ( $the_query->have_posts() ) : ?> | |
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> | |
<?php $featured_img_url=get_the_post_thumbnail_url(get_the_ID(), 'full'); ?> | |
<div class="swiper-slide card"> |
This file contains 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="container"> | |
<div class="row justify-content-between"> | |
<?php $the_query=new WP_Query( array( 'post_type'=> 'project' ) ); ?> | |
<?php if ( $the_query->have_posts() ) : ?> | |
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> | |
<?php $featured_img_url=get_the_post_thumbnail_url(get_the_ID(), 'full'); ?> | |
<div class="col-lg-4"> | |
<div class="card mb-2"> | |
<img class="card-img-top" src="<?php echo $featured_img_url ?>" alt=""> | |
<div class="card-body"> |
NewerOlder