This file contains hidden or 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
<?php | |
class TK_WP_Detect { | |
/** | |
* PHP 4 constructor | |
* | |
* @package Custom Community | |
* @since 1.8.3 | |
*/ | |
function tk_detect_page_type() { | |
$this->__construct(); |
This file contains hidden or 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
// first set the body to hide and show everyhthing when fully loaded ;) | |
document.write("<style>body{display:none;}</style>"); | |
jQuery(document).ready(function(){ | |
jQuery( 'input.search-field' ).addClass( 'form-control' ); | |
// here for each comment reply link of wordpress | |
jQuery( '.comment-reply-link' ).addClass( 'btn btn-primary' ); |
This file contains hidden or 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
<?php | |
/** | |
* This small PHP class provides you some functions to build the frontend CSS from the WP Customizer Options. | |
* | |
* == Fight the PHP Noodles in your CSS! == | |
* As the resulting dynamic CSS of themes can look ugly, | |
* we thought about a sweet and short solution for this. | |
* | |
* == Better Readabilty == |
This file contains hidden or 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
<?php | |
// Some Examples | |
// The following examples show how you can use the CC_Customizer class to generate the CSS for the frontend. | |
// First create a new Customizer_Frontend_CSS object. | |
$cc_customizer = new Customizer_Frontend_CSS(); | |
// Now we can start defining the styles we need for the frontend, | |
// based on the saved option values in the WP Customizer. |
This file contains hidden or 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
function tk_loop_designer_options($template_name){ | |
global $list_post_atts; | |
$loop_designer_options = get_option('tk_loop_designer_options'); | |
$template_options = $loop_designer_options['template_options']; | |
//$template_name = isset($template_options[$template_name]['loop_template_name']) ? sanitize_title($template_options[$template_name]['loop_template_name']) : ''; | |
$show_img = isset($template_options[$template_name]['loop_template_image_show']) ? $template_options[$template_name]['loop_template_image_show'] : ''; | |
$img_position = isset($template_options[$template_name]['loop_template_image_position']) ? $template_options[$template_name]['loop_template_image_position'] : ''; | |
$clickable = isset($template_options[$template_name]['loop_template_entry_clickable']) ? $template_options[$template_name]['loop_template_entry_clickable'] :''; |
This file contains hidden or 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
add_filter('connection_types_args', 'add_connection_parameter', 99, 2); | |
function add_connection_parameter($args, $form_slug){ | |
if($form_slug != 'Your BuddyForms Form Slug') | |
return $args; | |
$args = array_merge($args, array( 'title' => 'Your Title' )); | |
return $args; | |
} |
This file contains hidden or 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
/** | |
* Add the field to the checkout | |
**/ | |
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field'); | |
function my_custom_checkout_field( $checkout ) { | |
echo '<div id="my_custom_checkout_field"><h3>'.__('My Field').'</h3>'; | |
/** |
This file contains hidden or 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
<div class="bs-example bs-example-tabs"> | |
<ul id="myTab" class="nav nav-tabs" role="tablist"> | |
<li class="active"><a href="#tab1" role="tab" data-toggle="tab">Tab1</a></li> | |
<li><a href="#tab2" role="tab" data-toggle="tab">Tab2</a></li> | |
<li><a href="#tab3" role="tab" data-toggle="tab">Tab3</a></li> | |
<li><a href="#tab4" role="tab" data-toggle="tab">Tab4</a></li> | |
</ul> | |
<div id="myTabContent" class="tab-content"> | |
<div class="tab-pane fade in active" id="tab1"> | |
tab 1 |
OlderNewer