Skip to content

Instantly share code, notes, and snippets.

View istefan's full-sized avatar

Stefan istefan

View GitHub Profile
@istefan
istefan / conte-box-short-codes.php
Created March 2, 2017 17:43
Content Box Short Codes
[box color="blue"]
This is an example of a Content Box, which is easy to implement and can be used to put emphasis on a particular thought or sentiment.
[/box]
[box color="gray"]
This is an example of a Content Box, which is easy to implement and can be used to put emphasis on a particular thought or sentiment.
[/box]
[box color="green"]
This is an example of a Content Box, which is easy to implement and can be used to put emphasis on a particular thought or sentiment.
@istefan
istefan / buttons-short-codes.php
Last active March 2, 2017 17:40
Buttons Short Codes
[button text="Small Button" type="small" url="#"]
[button text="Standard Button" url="#"]
[button text="Large Button" type="large" url="#"]
[button text="Extra Large Button" type="extra-large" url="#"]
[button text="Small Button" type="small red" url="#"]
[button text="Standard Button" type="red" url="#"]
[button text="Large Button" type="large red" url="#"]
[button text="Extra Large Button" type="extra-large red" url="#"]
@istefan
istefan / colum-classes.php
Created March 2, 2017 13:03
[grid] Shortcode - Column Classes
<h3>Two-Columns</h3>
[grid size="one-half first"]
This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what exactly is on your mind.
[/grid]
[grid size="one-half"]
This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what exactly is on your mind.
[/grid]
@istefan
istefan / wte-shortcodes.php
Created April 19, 2016 20:36
WTE Shortcodes
<h3>[icon] Buttons</h3>
[button text="Small Button" type="small" url="#"] [button text="Standard Button" url="#"] [button text="Large Button" type="large" url="#"] [button text="Extra Large Button" type="extra-large" url="#"] [button text="Button With Icon" icon="genericon-github"]
[button text="Small Button" type="small red" url="#"] [button text="Standard Button" type="red" url="#"] [button text="Large Button" type="large red" url="#"] [button text="Extra Large Button" type="extra-large red" url="#"] [button text="Button With Icon" type="red" icon="cart"]
[button text="Small Button" type="small gray" url="#"] [button text="Standard Button" type="gray" url="#"] [button text="Large Button" type="large gray" url="#"] [button text="Extra Large Button" type="extra-large gray" url="#"] [button text="Button With Icon" type="gray" icon="cart"]
[button text="Small Button" type="small gold" url="#"] [button text="Standard Button" type="gold" url="#"] [button text="Large Button" type="large gold" url="#"] [button t
@istefan
istefan / page-front.php
Last active April 18, 2016 11:35
Page Template for WTE Custom Sidebars
<?php
/**
* Template Name: Front Page
*
* Custom Front Page Template.
*
* @link https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/
*
* @package WPshed
*/
@istefan
istefan / diacritice.php
Last active April 13, 2016 11:50
Inlocuire diacritice
<?php
// Inlocuire diacritice
function inlocuieste_diacritice( $content ) {
$cu_diacritice = array(
'â',
'î',
'ă',
@istefan
istefan / load-script-widget.php
Last active April 11, 2016 13:36
Conditionally load scripts in widget
<?php
/*
Plugin Name: Load Script Widget
Description: Example Widget for loading front-end / back-end script only if a widget is active.
Author: Stefan I.
Version: 1.0.0
Author URI: https://wpshed.com/
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
[grid size="one-half first"]
[box color="blue"]
This is an example of a Content Box, which is easy to implement and can be used to put emphasis on a particular thought or sentiment.
[/box]
[box color="gray"]
This is an example of a Content Box, which is easy to implement and can be used to put emphasis on a particular thought or sentiment.
[/box]
[button text="Small Button" type="small" url="#"] [button text="Standard Button" url="#"] [button text="Large Button" type="large" url="#"] [button text="Extra Large Button" type="extra-large" url="#"]
[button type="red" text="Red Button"] [button type="green" text="Green Button"] [button type="blue" text="Blue Button"] [button type="black" text="Black Button"] [button type="blue" text="Button With Icon" icon="cart"]
[grid size="one-third first"]
[quote]“Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”<strong> – Wes Straham</strong>
[/quote]
[/grid]
[grid size="one-third"]
[quote color="gray"]“Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”<strong> – Wes Straham</strong>
[/quote]
[/grid]