Skip to content

Instantly share code, notes, and snippets.

View git-bhanu's full-sized avatar
🐘
Always developing

Bhanu git-bhanu

🐘
Always developing
View GitHub Profile
<div class="class-disclaimer">
<div class="dicon">
<img src="http://crushnew.test/wp-content/uploads/2020/04/Group-1398.svg">
</div>
<div class="text">
<h3>Pay as much as you want- Only for Group Fitness Classes</h3>
<p>Just enter the amount you want to pay in multiples of <span style="font-weight: bold">10</span> in the <span style="font-weight: bold">'Coupon Code field'</span> at checkout. </p>
<p>For example, if you want to pay INR 40 for a class, enter <span style="font-weight: bold">40</span> in <span style="font-weight: bold">'Coupon Code field'</span> and the price for the class will change to INR 40 plus GST</p>
<p>For 100% discount use coupon code- 'FREE', we hope you would support us in these COVID-19 times and use this code only if absolute neccessary.</p>
</div>
add_action('woocommerce_before_checkout_form_cart_notices', 'add_custom_coupon_message');
function add_custom_coupon_message( ){ ?>
<div class="class-disclaimer">
<div class="dicon">
<img src="https://online.crushfitnessindia.com/wp-content/uploads/2020/04/Group-1398.svg">
</div>
<div class="text">
<h3>Pay as much as you want- Only for Group Fitness Classes</h3>
<p>Just enter the amount you want to pay in multiples of <span style="font-weight: bold">10</span> in the <span style="font-weight: bold">'Coupon Code field'</span> at checkout. </p>
<div class="page-division">
<div class="page-left">
[left_menu name="Subscriptions" image_src='http://crush.test/wp-content/uploads/2020/04/noun_subscribe_1175154-1.svg' device="Mobile"]
[left_menu name="Subscriptions" device='Desktop']
</div>
<div class="page-right">
<div class="nav-tabs tabs-nav">
@git-bhanu
git-bhanu / Lessons Template
Created June 27, 2020 11:53
Lessons Template
[wpv-conditional if="('[wpv-current-user info='id']' eq '')" evaluate="false"]
<div class="page-division">
<div class="page-left">
[left_menu name="Fitness Programs" image_src='http://crush.test/wp-content/uploads/2020/04/Group.svg' device='Mobile']
[left_menu name='Fitness Programs' device='Desktop']
</div>
<div class="right-wrapper">
<div class="breadcrumb">
<a href="/fitness" class='go-to-fitness'>Go to Fitness Programs</a>
</div>
<div class="profile-section">
<div class="dashboard-wrapper">
<div class="dashboard-left">[left_menu name='Dashboard' device='Desktop'][left_menu name='Dashboard' image_src='http://crush.test/wp-content/uploads/2020/04/Group-1910.svg' device='Mobile']</div>
<div class="dashboard-right">
[shop_messages]
<!-- When No coach assigned -->
[wpv-conditional if="( '[crush_trainer_assigned]' eq '' )"]
<div class="dashboard1-head">
<div class="head1-left">
<div style="padding-top: 30px;">
@git-bhanu
git-bhanu / product-template.html
Created June 27, 2020 12:56
Product Template
<div class="product-page">
[shop_messages]
<div class="product">
<div class="product-left">
<h4>[types field='product-category'][/types]</h4>
<h2>[types field='product-name'][/types]</h2>
<div class="divider"></div>
<div class="">
[wpv-view name="products-icon-listing"]
</div>
@git-bhanu
git-bhanu / fastest-cookie-consent-wordpress-plugin
Last active March 17, 2022 15:37
This is the forked verison of plugin made by Gijo. You can view the main version here https://wpspeedmatters.com/fastest-cookie-consent-wordpress-plugin/
@git-bhanu
git-bhanu / header.js
Created July 20, 2020 11:49
Just a header
import TweenLite from 'gsap';
const menu = document.querySelector('.hamberger');
const nav = document.querySelector('nav');
const closeMenu = document.querySelector('.menu-close');
menu.addEventListener('click', () => {
TweenLite.to(nav, 0.3,{ left: 0 })
})
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"><head>
<meta charset="utf-8"> <!-- utf-8 works for most cases -->
<meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Use the latest (edge) version of IE rendering engine -->
<meta name="x-apple-disable-message-reformatting"> <!-- Disable auto-scale in iOS 10 Mail entirely -->
<meta name="format-detection" content="telephone=no,address=no,email=no,date=no,url=no">
<!-- Tell iOS not to automatically link certain text strings. -->
<meta name="color-scheme" content="light">
@git-bhanu
git-bhanu / deployment.yml
Last active August 5, 2020 17:19
Deploying Roots(WordPress Starter theme) to your host using Github Actions
name: Deployment
on:
push:
branches: [ production ]
jobs:
deploy:
runs-on: ubuntu-latest