Forked from Sharifur/gist:f1de7eed0a63739f91e009a1e2cf2c5c
Created
October 15, 2018 14:18
-
-
Save bulbul84/3af61b1aeb63f8c1726e41416fc09be1 to your computer and use it in GitHub Desktop.
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 | |
//loop er bahire | |
$a = 0; | |
$active_class = ''; | |
loop er bitore | |
while (condition goes here): | |
if(0 == $a){ | |
$active_class = 'active'; | |
} | |
<div class='some class <?php echo esc_attr($active_class)?>'> | |
markup goes here | |
</div> | |
$a++; | |
endwhile; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment