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 style="display:none"> | |
<div class="dove-tail-linkout-content"> | |
<p>You are currently leaving the site! please confirm you would like to leave</p> | |
</div> | |
</div> |
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 | |
function highlight_attending_events(){ | |
global $current_user; | |
$args = array( | |
'post_type' => 'tribe_events','posts_per_page'=>-1, 'post_status' => 'publish' | |
); |
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 | |
function highlight_attending_single(){ | |
global $post,$current_user; | |
$attendies = get_post_meta($post->ID, '_eventrocket_attendance', true ); | |
$attending = false; | |
if(is_array($attendies)){ | |
foreach($attendies as $key=>$value){ | |
if($key == $current_user->ID && $value == 1){ |
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
window.define = function() { | |
Array.prototype.slice.call(arguments).pop()(window.jQuery) | |
}; | |
define(["jquery", "./jquery.ui.widget"], function(a) { | |
(function(a, b) { | |
a.widget("mobile.widget", { | |
_createWidget: function() { | |
a.Widget.prototype._createWidget.apply(this, arguments); | |
this._trigger("init") | |
}, |
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 | |
#hook into wordpress wp_head | |
add_action('wp_head','wpfh_custom_share_button_scripts'); | |
#hook into above tabs in funeralpress | |
add_action('wpfh/obituary/above_tabs','wpfh_custom_share_button',10,2); | |
function wpfh_custom_share_button_scripts(){ |
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="cart"> | |
<a href="/store/shopping-cart/"> | |
<img src="<?php echo esc_attr( get_bloginfo( 'stylesheet_directory' ) ); ?>/img/cart.png" /> | |
<div id="cart-contents"><?php _e( 'Cart:', TEMPLATE_DOMAIN ) ?> <span><?php echo sprintf(__('%s item(s)', TEMPLATE_DOMAIN ), mp_items_count_in_cart()); ?></span></div> | |
</a> | |
</div> |
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 | |
// the query | |
$args = array( | |
'post_type' => 'post', | |
'posts_per_page' => 1, | |
); | |
$the_query = new WP_Query( $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
<?php | |
$funeralpress_theme = new funeralpress_theme; | |
add_action( 'wp_enqueue_scripts',array($funeralpress_theme , 'scripts')); | |
add_action( 'wp_head',array($funeralpress_theme , 'wp_head')); | |
add_action( 'after_setup_theme',array($funeralpress_theme , 'register_menu')); | |
add_action( 'woo_header_inside', array($funeralpress_theme , 'header_contact'), 11 ); | |
#add_filter( 'wpfh/obituary/top', array($funeralpress_theme , 'obit_top'), 11,2 ); |
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 | |
$wpfh_obits_extra_tab = new wpfh_obits_extra_tab; | |
add_filter('wpfh_obit_permissions', array( | |
$wpfh_obits_extra_tab, | |
'permissions' | |
)); | |
add_filter('wpfp_frontend_top_obit_content', array( |
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 | |
add_filter('wpfp_frontend_obit_below_breadcrumbs', 'my_custom_obit_filter'); | |
function my_custom_obit_filter($r){ | |
#obit array | |
$obit = $r[0]; | |
#do something with the obituary data |
OlderNewer