Skip to content

Instantly share code, notes, and snippets.

View immdjani's full-sized avatar

MD JANI immdjani

View GitHub Profile
/*theme widget function.php*/
function jobair_widgets(){
register_sidebar(array(
'name' => __( 'Right Sidebar', 'theme-slug' ),
'id' => 'right_sidebar',
'description' => __( 'Right Sidebar.', 'theme-slug' ),
'before_widget' => '<div class="right_sidebar border">',
'after_widget' => '</div>',
'before_title' => '<h2>',
?php
global $post;
$args = array( 'posts_per_page' => 5, 'post_type'=> 'packege_information');
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<div class="packege_ifo">
<p><?php the_excerpt(); ?></p>
</div>
@immdjani
immdjani / CSS paper boat sailing in the rain.markdown
Last active August 29, 2015 14:26
CSS paper boat sailing in the rain

CSS paper boat sailing in the rain

Raining on the lake... full css paper boat, ripples, splashes, and drops. JS is only used to duplicate the ripples, remove them after a while and to handle the mouse down event. I'm new in css, any optimization is welcome.