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
<script type="text/javascript"> | |
var clipboard = new Clipboard('.btn'); | |
</script> |
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="clipboard"> | |
<p>Your Text to be copied</p> | |
</div> | |
<button class="btn" data-clipborad-action="copy" data-clipboard-target="#clipboard">Copy to Clipboard</button> | |
</div> |
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
//* Enqueue Scripts | |
add_action( 'wp_enqueue_scripts', 'load_responsive_javascript' ); | |
function load_responsive_javascript() { | |
wp_enqueue_script( 'clipboard', get_stylesheet_directory_uri() . '/js/clipboard.js', array( 'jquery' ), '1.0.0' ); | |
} |
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
<ul class="faq-list"> | |
<li><a href="#" class="question">Question One</a> | |
<div class="answer"> | |
<p>Answer to Question One.</p> | |
</div> | |
</li> | |
<li><a href="#" class="question">Question Two</a> | |
<div class="answer"> | |
<p>Answer to Question Two.</p> | |
</div> |
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
//* Enqueue Scripts | |
add_action( 'wp_enqueue_scripts', 'load_toggle_javascript' ); | |
function load_toggle_javascript() { | |
wp_enqueue_style( 'dashicons' ); | |
wp_enqueue_script( 'toggle', get_stylesheet_directory_uri() . '/js/toggle.js', array( 'jquery' ), '1.0.0' ); | |
} |
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
/* # FAQ | |
--------------------------------------------- */ | |
.entry-content .faq-list, | |
.entry-content .faq-list li { | |
list-style: none; | |
margin: 0; | |
padding: 0; | |
} |
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
jQuery(function( $ ){ | |
$('.faq-list .question').click( function(){ | |
$(this).parent().find('.answer').slideToggle('fast'); | |
$(this).toggleClass('on'); | |
return false; | |
}); | |
}); |
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
<?php | |
/** | |
* Metaboxes | |
* | |
* This file registers any custom metaboxes | |
* | |
* @package Core_Functionality | |
* @since 1.0.0 | |
* @link https://github.com/billerickson/Core-Functionality | |
* @author Bill Erickson <bill@billerickson.net> |
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
/** Loop for Projects **/ | |
$loop = new WP_Query( $args ); | |
if( $loop->have_posts() ): | |
echo '<div id="container">'; | |
while( $loop->have_posts() ): $loop->the_post(); | |
echo '<div class="projects one-third '.genesis_get_custom_field('program') . ' ' .genesis_get_custom_field('project_type') . ' ' .genesis_get_custom_field('country') . '">'; | |
echo '<h2><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>'; | |
echo '<a href="' . get_permalink() . '">' . get_the_post_thumbnail( $post_id, 'project' ). '</a>'; | |
echo '<h3 class="mmi-country ' . genesis_get_custom_field('country') . '">' . genesis_get_custom_field('country') . '</h3>'; |
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
add_action( 'genesis_before_entry_content', 'mmi_sing_project_top'); | |
function mmi_sing_project_top() { | |
global $post; | |
$begindate = genesis_get_custom_field('startdate'); | |
$enddate = genesis_get_custom_field('finishdate'); | |
echo '<div class="sing-project">'; | |
. . . . | |
NewerOlder