Created
November 29, 2013 09:50
-
-
Save pulla/7703581 to your computer and use it in GitHub Desktop.
foundation 4 reveal popup pass a variable?
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
I have an Archive and there is a reveal popup button for "see brief information" on each posts. it's from foundation 4. | |
When you click it shows the brief information of the post. so I need to pass $post_id to reveal popup. | |
How can I make it? | |
<li><a href="#" class="tiny button secondary" data-reveal-id="detail-reveal">Click to see Brief infomation</a></li> | |
when you click it, it shows brief reveal popup. | |
<div id="detail-reveal" class="small reveal-modal" data-reveal> | |
<?php if ($post_id) {?> | |
<h2><?php _e('Information', 'kcm_fr'); ?></h2> | |
<div class="row collapse"> | |
<?php // here I need to get the post id to use "get_post or wp-query.."; ?> | |
Breif information is coming soon! | |
</div><!-- row --> | |
<?php }else{ ?> | |
There is no post id! | |
<?php } ?> | |
<a class="close-reveal-modal">×</a> | |
</div><!-- reveal --> | |
How can I pass $post_id to reveal modal? | |
Thanks, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment