Created
December 28, 2015 02:02
-
-
Save jimmyk69/58096c39adb6eca8e10a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create column shortcodes | |
function rm314_one_third( $atts, $content = null ) { | |
return '<div class="one_third">' . do_shortcode($content) . '</div>'; | |
} | |
add_shortcode('one_third', 'rm314_one_third'); | |
function rm314_one_third_last( $atts, $content = null ) { | |
return '<div class="one_third last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; | |
} | |
add_shortcode('one_third_last', 'rm314_one_third_last'); | |
function rm314_two_third( $atts, $content = null ) { | |
return '<div class="two_third">' . do_shortcode($content) . '</div>'; | |
} | |
add_shortcode('two_third', 'rm314_two_third'); | |
function rm314_two_third_last( $atts, $content = null ) { | |
return '<div class="two_third last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; | |
} | |
add_shortcode('two_third_last', 'rm314_two_third_last'); | |
function rm314_one_half( $atts, $content = null ) { | |
return '<div class="one_half">' . do_shortcode($content) . '</div>'; | |
} | |
add_shortcode('one_half', 'rm314_one_half'); | |
function rm314_one_half_last( $atts, $content = null ) { | |
return '<div class="one_half last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; | |
} | |
add_shortcode('one_half_last', 'rm314_one_half_last'); | |
function rm314_one_fourth( $atts, $content = null ) { | |
return '<div class="one_fourth">' . do_shortcode($content) . '</div>'; | |
} | |
add_shortcode('one_fourth', 'rm314_one_fourth'); | |
function rm314_one_fourth_last( $atts, $content = null ) { | |
return '<div class="one_fourth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; | |
} | |
add_shortcode('one_fourth_last', 'rm314_one_fourth_last'); | |
function rm314_three_fourth( $atts, $content = null ) { | |
return '<div class="three_fourth">' . do_shortcode($content) . '</div>'; | |
} | |
add_shortcode('three_fourth', 'rm314_three_fourth'); | |
function rm314_three_fourth_last( $atts, $content = null ) { | |
return '<div class="three_fourth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; | |
} | |
add_shortcode('three_fourth_last', 'rm314_three_fourth_last'); | |
function rm314_one_fifth( $atts, $content = null ) { | |
return '<div class="one_fifth">' . do_shortcode($content) . '</div>'; | |
} | |
add_shortcode('one_fifth', 'rm314_one_fifth'); | |
function rm314_one_fifth_last( $atts, $content = null ) { | |
return '<div class="one_fifth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; | |
} | |
add_shortcode('one_fifth_last', 'rm314_one_fifth_last'); | |
function rm314_two_fifth( $atts, $content = null ) { | |
return '<div class="two_fifth">' . do_shortcode($content) . '</div>'; | |
} | |
add_shortcode('two_fifth', 'rm314_two_fifth'); | |
function rm314_two_fifth_last( $atts, $content = null ) { | |
return '<div class="two_fifth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; | |
} | |
add_shortcode('two_fifth_last', 'rm314_two_fifth_last'); | |
function rm314_three_fifth( $atts, $content = null ) { | |
return '<div class="three_fifth">' . do_shortcode($content) . '</div>'; | |
} | |
add_shortcode('three_fifth', 'rm314_three_fifth'); | |
function rm314_three_fifth_last( $atts, $content = null ) { | |
return '<div class="three_fifth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; | |
} | |
add_shortcode('three_fifth_last', 'rm314_three_fifth_last'); | |
function rm314_four_fifth( $atts, $content = null ) { | |
return '<div class="four_fifth">' . do_shortcode($content) . '</div>'; | |
} | |
add_shortcode('four_fifth', 'rm314_four_fifth'); | |
function rm314_four_fifth_last( $atts, $content = null ) { | |
return '<div class="four_fifth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; | |
} | |
add_shortcode('four_fifth_last', 'rm314_four_fifth_last'); | |
function rm314_one_sixth( $atts, $content = null ) { | |
return '<div class="one_sixth">' . do_shortcode($content) . '</div>'; | |
} | |
add_shortcode('one_sixth', 'rm314_one_sixth'); | |
function rm314_one_sixth_last( $atts, $content = null ) { | |
return '<div class="one_sixth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; | |
} | |
add_shortcode('one_sixth_last', 'rm314_one_sixth_last'); | |
function rm314_five_sixth( $atts, $content = null ) { | |
return '<div class="five_sixth">' . do_shortcode($content) . '</div>'; | |
} | |
add_shortcode('five_sixth', 'rm314_five_sixth'); | |
function rm314_five_sixth_last( $atts, $content = null ) { | |
return '<div class="five_sixth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; | |
} | |
add_shortcode('five_sixth_last', 'rm314_five_sixth_last'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment