Skip to content

Instantly share code, notes, and snippets.

View mustafix's full-sized avatar

Mustafizur Rahman mustafix

View GitHub Profile
// Start ul
<div class="text-center">
<?php
$portfolio_cats = get_terms('portfolio_cat');
if( ! empty($portfolio_cats) && !is_wp_error($portfolio_cats) ) :
?>
<ul class="portfolio-filter">
<li class="active"><a href="#" data-filter="*"> All</a></li>
<?php
<?php
/**
* The template for displaying comments
*
* This is the template that displays the area of the page that contains both the current comments
* and the comment form.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package theme
/*-------------------------------------------------------
Use functions.php
--------------------------------------------------------*/
add_filter('user_contactmethods', 'theme_user_contactmethods');
function theme_user_contactmethods($cm){
$cm['facebook'] = __('Facebook', 'verum');
$cm['twitter'] = __('Twitter', 'verum');
$cm['pinterest'] = __('Pinterest', 'verum');
$cm['google-plus'] = __('Google Plus', 'verum');
return $cm;
/*-------------------------------------------------------
functions.php
--------------------------------------------------------*/
function bulletin_paginate_links($mid_size=3){
global $wp_query;
$big = 999999999; // need an unlikely integer
$links = paginate_links(array(
'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
'format' => '?paged=%#%',
'current' => max(1, get_query_var('paged')),
/*-------------------------------------------------------
Add the 'auth' class to the output of the_author_posts_link()
--------------------------------------------------------*/
add_filter( 'the_author_posts_link', function( $link )
{
return str_replace( 'rel="author"', 'rel="author" class="auth"', $link );
});
# BEGIN WordPress
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value max_execution_time 600
php_value max_input_time 600
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /2018/edd/
@mustafix
mustafix / ajax-contact-form.html
Last active March 12, 2019 15:13
ajax-contact-form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AJAX Contact Form Demo</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="page-wrapper">
global $product;
global $woocommerce;
$idd = get_the_ID();
//Displaying a WooCommerce product price:
$sale_price = $product->get_sale_price();
$regular_price = $product->get_regular_price();
// Displaying a WooCommerce price Currency:
def
jswing
easeInQuad
easeOutQuad
easeInOutQuad
easeInCubic
easeOutCubic
easeInOutCubic
easeInQuart
easeOutQuart
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>