Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Sodbileg Gansukh minimaluminium

🏠
Working from home
Block or report user

Report or block minimaluminium

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@minimaluminium
minimaluminium / example-slider
Last active Sep 15, 2015 — forked from tommusrhodus/example-slider
This is a much more complex block, both the wrapper and nested shortcodes have options applied to them, furthermore they require globals to collect additional data and render it outside of the $content.
View example-slider
<?php
global $slider_pro_thumbs;
/**
* The Shortcode
*/
function ebor_slider_pro_shortcode( $atts, $content = null ) {
global $slider_pro_thumbs;
$slider_pro_thumbs = false;
@minimaluminium
minimaluminium / example-skills-block
Last active Sep 15, 2015 — forked from tommusrhodus/example-skills-block
This example is just really simple, the main shortcode is simple enough to not need any options or globals applied, it simply wraps the innner shortcodes.
View example-skills-block
<?php
/**
* The Shortcode
*/
function ebor_skills_shortcode( $atts, $content = null ) {
$output = '<div class="skills-wrapper">'. do_shortcode($content) .'</div>';
return $output;
}
add_shortcode( 'machine_skills', 'ebor_skills_shortcode' );
You can’t perform that action at this time.