Created
October 15, 2018 09:52
-
-
Save Sharifur/f1de7eed0a63739f91e009a1e2cf2c5c 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