Skip to content

Instantly share code, notes, and snippets.

View manidip's full-sized avatar

Manidip Mandal manidip

  • AurionPro
  • Delhi
View GitHub Profile
<?php
add_filter( 'woocommerce_show_page_title' , 'woo_hide_page_title' );
/**
* woo_hide_page_title
*
* Removes the "shop" title on the main shop page
*
* @access public
@manidip
manidip / wp-customize-image-reloaded.php
Created March 3, 2016 07:10 — forked from eduardozulian/wp-customize-image-reloaded.php
Extend WP_Customize_Image_Control class allowing access to files uploaded within the same context.
<?php
/**
* Customize Image Reloaded Class
*
* Extend WP_Customize_Image_Control allowing access to uploads made within
* the same context
*/
class My_Customize_Image_Reloaded_Control extends WP_Customize_Image_Control {
/**
* Constructor.
@manidip
manidip / edit-woocommerce-checkout-template.php
Created August 29, 2016 13:07 — forked from bekarice/edit-woocommerce-checkout-template.php
Add content and notices to the WooCommerce checkout - sample code
/**
* Each of these samples can be used - note that you should pick one rather than add them all.
*
* How to use WC notices: https://github.com/woothemes/woocommerce/blob/master/includes/wc-notice-functions.php#L96
* Tutorial: http://www.skyverge.com/blog/edit-woocommerce-templates/
**/
/**
* Add a content block after all notices, such as the login and coupon notices.
*
@manidip
manidip / us-state-names-abbrevs.php
Created February 8, 2017 07:01 — forked from maxrice/us-state-names-abbrevs.php
US State Names & Abbreviations as PHP Arrays
<?php
/* From https://www.usps.com/send/official-abbreviations.htm */
$us_state_abbrevs_names = array(
'AL'=>'ALABAMA',
'AK'=>'ALASKA',
'AS'=>'AMERICAN SAMOA',
'AZ'=>'ARIZONA',
'AR'=>'ARKANSAS',
@manidip
manidip / gist:77d6cbc83b50dc787a36c710b2e8afcb
Created February 10, 2017 14:55 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@manidip
manidip / wp-comment-walker
Created February 24, 2017 11:20 — forked from georgiecel/wp-comment-walker
Custom comment walker for HTML5 friendly WordPress comment and threaded replies. To be inserted in functions.php.
<?php
class comment_walker extends Walker_Comment {
var $tree_type = 'comment';
var $db_fields = array( 'parent' => 'comment_parent', 'id' => 'comment_ID' );
// constructor – wrapper for the comments list
function __construct() { ?>
<section class="comments-list">
@manidip
manidip / wc_plugin_template_load.php
Created March 27, 2017 14:08 — forked from danchivz/wc_plugin_template_load.php
Override WooCommerce template files via a plugin.
<?php
/**
* WooCommerce Plugin Template Loader
* Override WooCommerce template files within a custom plugin folder
* http://gist.github.com/danchivz
*
* Licensed under the MIT license.
*/
/**
<?php
/*
* WordPress Breadcrumbs
* author: Dimox
* version: 2017.21.01
* license: MIT
*/
function dimox_breadcrumbs() {
/* === OPTIONS === */
@manidip
manidip / List.md
Created December 12, 2017 07:26 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@manidip
manidip / pe-customize-controls.css
Created April 26, 2018 07:04 — forked from OriginalEXE/pe-customize-controls.css
Extending WordPress Customizer Panels and Sections to allow nesting
.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel-parent,
#customize-theme-controls .customize-pane-child.current-section-parent {
-webkit-transform: translateX(-100%);
-ms-transform: translateX(-100%);
transform: translateX(-100%);
}