I hereby claim:
- I am deviodigital on github.
- I am deviodigital (https://keybase.io/deviodigital) on keybase.
- I have a public key whose fingerprint is C51A D40B 9A89 E85C AA79 5604 C5D7 F97A 5C33 1878
To claim this, I am signing this object:
<?php | |
/** | |
* Enqueue scripts and styles. | |
*/ | |
function bliss_theme_scripts() { | |
wp_enqueue_style( 'bliss-theme-style', get_stylesheet_uri() ); | |
wp_enqueue_style( 'bliss-theme-bootstrap-style', get_template_directory_uri() . '/css/bootstrap.min.css' ); | |
wp_enqueue_script( 'bliss-theme-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20160921', true ); |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* http://wordpress.stackexchange.com/a/137578 | |
*/ | |
$post = array( | |
'post_author' => $user_id, | |
'post_content' => '', | |
'post_status' => "publish", | |
'post_title' => $product->part_num, | |
'post_parent' => '', |
<?php | |
add_action( 'wpd_pricingoutput_bottom', 'your_function_name' ); | |
function your_function_name() { | |
echo 'example'; | |
} | |
?> |
<?php | |
add_action( 'wpd_dataoutput_bottom', 'your_function_name' ); | |
function your_function_name() { | |
echo 'example'; | |
} | |
?> |
<?php | |
/** | |
* Forums Loop | |
* | |
* @package bbPress | |
* @subpackage Theme | |
* | |
* Original code via: https://bbpress.org/forums/topic/forums-index-in-the-same-layout-as-other-bb-software/ | |
*/ | |
?> |
<?php | |
$redirect_to = ''; | |
?> | |
<form name="loginform" id="loginform" action="<?php echo site_url( '/wp-login.php' ); ?>" method="post"> | |
<p>Username: <input id="user_login" type="text" size="20" value="" name="log"></p> | |
<p>Password: <input id="user_pass" type="password" size="20" value="" name="pwd"></p> | |
<p><input id="rememberme" type="checkbox" value="forever" name="rememberme"></p> | |
<p><input id="wp-submit" type="submit" value="Login" name="wp-submit"></p> |
<?php | |
/** | |
* WPD - Display categories in the Data Details table | |
*/ | |
add_action( 'wpd_dataoutput_bottom', 'add_wpd_categories' ); | |
function add_wpd_categories() { ?> | |
<?php if ( in_array( get_post_type(), array( 'flowers' ) ) ) { ?> | |
<tr><td><span>Categories:</span></td><td><?php echo get_the_term_list( $post->ID, 'flowers_category', '', ', ' ); ?></td></tr> | |
<?php } ?> | |
<?php if ( in_array( get_post_type(), array( 'concentrates' ) ) ) { ?> |
<?php | |
/** Adds a new version of the In Stock message for each menu type */ | |
add_action( 'wpd_dataoutput_bottom', 'add_wpd_inventory_data', 10 ); | |
function add_wpd_inventory_data() { ?> | |
<?php if ( ! get_post_meta( get_the_ID(), '_inventory_flowers', true ) ) { } else { ?> | |
<tr><td><span>In stock:</span></td><td>YES</td></tr> | |
<?php } ?> | |
<?php if ( ! get_post_meta( get_the_ID(), '_inventory_concentrates', true ) ) { } else { ?> | |
<tr><td><span>In stock:</span></td><td>YES</td></tr> | |
<?php } ?> |