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
function smoothScrollSectionID() { | |
$('.main-nav li > a').on('click', function (event) { | |
var target = $(this.getAttribute('href')); | |
if (target.length) { | |
event.preventDefault(); | |
$('html, body').stop().animate({ | |
scrollTop: target.offset().top - 80 | |
}, 1000); | |
} | |
}); |
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
<?php | |
$servername = "localhost"; | |
$username = "dbuser"; | |
$password = "dbpassword"; | |
$dbname = "dbname"; | |
$conn = new mysqli($servername, $username, $password, $dbname); | |
if ($conn->connect_error) { | |
die("Connection failed: " . $conn->connect_error); | |
} |
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
git config --global user.name "prosantomazumder" | |
git config --global user.email "[email protected]" | |
$ git init | |
$ git ls | |
$ git status | |
$ git add * | |
$ git commit -m "version 1.0.1" | |
$ git status | |
$ git push | |
$ git remote add origin "Git Repository URL here" |
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
<div class="row"> | |
<div class="col-lg-12"> | |
<div class="row form"> | |
<div class="col-lg-12 form-head"> | |
<h3>PERSONAL & CONTACT INFORMATION</h3> | |
</div> | |
<div class="col-lg-12 col-sm-12"> | |
[text* student_name class:form-control placeholder "Student Name*"] | |
</div> | |
<div class="col-lg-6 col-sm-6"> |
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
<div class="col-sm-12"> | |
<div class="theme-pagination"> | |
<ul class="list-inline text-center"> | |
<?php // if need post next previous | |
$prev_post = get_previous_post(); | |
$id = $prev_post->ID ; | |
$permalink = get_permalink( $id ); | |
?> | |
<?php |
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
<div class="sidebar-tags"> | |
<?php | |
$categories = get_the_category( $post->ID ); | |
foreach ( $categories as $category ): | |
?> | |
<a href="<?php echo esc_url( get_category_link( $category->term_id ) ); ?>"><?php echo esc_html( $category->name ); ?></a>'; | |
<?php endforeach; ?> | |
</div> |
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
<?php | |
$default_avatar = 'http://zacvineyard.com/blog/wp-content/themes/zac/images/default-avatar.png'; | |
?> | |
<a id="comments"></a> | |
<h2>Comments</h2> | |
<?php if($comments) : ?> | |
<ol class="comments"> | |
<?php foreach($comments as $comment) : ?> | |
<li id="comment-<?php comment_ID(); ?>" class="<?php if ($comment->user_id == 1) echo "authcomment";?>"> | |
<?php if ($comment->comment_approved == '0') : ?> |
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
NO NEED | |
wp-content\themes\veera\framework\classes\class-admin.php | |
------------------------------------------------------- | |
<li class="filter active" data-filter="all">Show All</li> | |
<?php | |
$topics = get_terms( array( | |
'hide_empty' => 0, | |
'taxonomy' => 'portfolio_cat', | |
'orderby' => 'id', |