Skip to content

Instantly share code, notes, and snippets.

View TanvirAmi's full-sized avatar
🏠
Working from home

Tanvir TanvirAmi

🏠
Working from home
View GitHub Profile
@TanvirAmi
TanvirAmi / comments.php
Created April 9, 2019 18:46
comment form above the comment list
<?php
/*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if ( post_password_required() ) {
return;
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php hybrid_attr( 'post' ); ?>>
<?php truereview_post_thumbnail(); ?>
<div class="entry-wrapper">
<header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title" ' . hybrid_get_attr( 'entry-title' ) . '><a href="%s" rel="bookmark" itemprop="url">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
</header>
<?php
/**
* Grid classic block.
*
* @package TrueReview
* @author Theme Junkie
* @copyright Copyright (c) 2016, Theme Junkie
* @license http://www.gnu.org/licenses/gpl-2.0.html
* @since 1.0.0
*/
<?php
/**
* Modern vertical block.
*
* @package TrueReview
* @author Theme Junkie
* @copyright Copyright (c) 2016, Theme Junkie
* @license http://www.gnu.org/licenses/gpl-2.0.html
* @since 1.0.0
*/
<?php
/**
* Modern block.
*
* @package TrueReview
* @author Theme Junkie
* @copyright Copyright (c) 2016, Theme Junkie
* @license http://www.gnu.org/licenses/gpl-2.0.html
* @since 1.0.0
*/
@TanvirAmi
TanvirAmi / woocommerce.css
Created March 24, 2019 21:30
Latest woocommerce styling for adios
.woocommerce del,
.woocommerce-page del {
color: #abaeaf;
}
.woocommerce ins,
.woocommerce-page ins {
color: #272b2b;
text-decoration: none;
}
<div class="entry-info entry-header col-md-2">
<?php gomedia_post_author(); // Get the post author info. ?>
<?php gomedia_social_sharing(); // Get the social sharing. ?>
<?php
$tags_list = get_the_tag_list( '<ul><li>','</li><li>','</li></ul>' );
if ( $tags_list ) :
?>
@TanvirAmi
TanvirAmi / teams.php
Last active September 24, 2018 21:36
Team template for Theme Junkie team content plugin
<?php
/**
* Template Name: Teams template
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main" <?php hybrid_attr( 'content' ); ?>>
<?php if ( have_posts() ) : ?>
<?php
/**
* Customize comment form default fields.
* Move the comment_field below the author, email, and url fields.
*/
function custom_comment_form_default_fields( $fields ) {
$commenter = wp_get_current_commenter();
$user = wp_get_current_user();
$user_identity = $user->exists() ? $user->display_name : '';
$req = get_option( 'require_name_email' );
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>