Skip to content

Instantly share code, notes, and snippets.

View INDIAN2020's full-sized avatar

Gogula Sivannarayana INDIAN2020

View GitHub Profile
@INDIAN2020
INDIAN2020 / how-to-detect-breakpoints-in-bootstrap-using-javascript.markdown
Created August 23, 2020 16:48
How to detect breakpoints in Bootstrap using JavaScript

How to detect breakpoints in Bootstrap using JavaScript

Responsive Bootstrap Toolkit provides an easy way of breakpoint detection in JavaScript, detecting changes in currently active breakpoint, as well as executing any breakpoint-specific JavaScript code.

A Pen by Maciej Gurban on CodePen.

License.

//source: http://www.paulund.co.uk/output-php-data-in-browser-console
<?php
/**
* Send debug code to the Javascript console
*/
function debug_to_console($data) {
if(is_array($data) || is_object($data))
{
echo("<script>console.log('PHP: ".json_encode($data)."');</script>");
<?php
$woo_options = get_option( 'woo_options' );
/*------------------------------------------------------------------------------------
TABLE OF CONTENTS
- Theme Setup
- Woo Conditionals
- Add Google Maps to HEAD
<?php
// LOAD THEME SETTINGS
$filename = get_template_directory().'/data.json.php';
$handle = fopen($filename, "r");
$dataRAW = fread($handle, filesize($filename));
fclose($handle);
$dataDECODED = json_decode($dataRAW, true);
class WooExclude_Walker_Category extends Walker_Category
{
/**
* Start the element output.
*
* @see Walker::start_el()
*
* @since 2.1.0
*
* @param string $output Passed by reference. Used to append additional content.
<?php
/**
* WooCommerce Job Packages
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package Jobify
* @since Jobify 1.0
*/
/******************************************************************
Site Name:
Author:
Stylesheet: WooCommerce Layout
******************************************************************/
.woocommerce, .woocommerce-page {
<?php
/**
* Email Order Items
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.0.3
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@INDIAN2020
INDIAN2020 / box.css
Created February 6, 2013 12:21
box
.box{
width: 728px;
height: 90px;
padding: 5px;
display: inline-block;
-moz-box-shadow: 0 0 8px #8b3d92;
-webkit-box-shadow: 0 0 8px #8b3d92;
box-shadow: 0 0 8px #8b3d92;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;