Created
September 19, 2017 17:29
Star
You must be signed in to star a gist
Create a new template in your themes /wp-funeral-press/ directory
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
<?php | |
global $obit_vars,$wpfh_user_obits; | |
extract($obit_vars); | |
?> | |
<div style="margin:20px 0px;background-color:#E8FEDA;padding:15px"> | |
<h1>You can override templates in your theme folder! This is a custom template!</h1> | |
<p>Overriding templates can be a great upsell tool, you can design specific layouts colors and add your own html to a custom template. Another great feature here is to let the deceased family choose from a bunch of different color/layouts you created! Check out the below Bob Marley themed template!</p> | |
</div> | |
<style type="text/css"> | |
.wpfh-obit-alternate-title h1 a{color:#F90B05 !important} | |
#wpfh-alternate-header ul li a { | |
background-color: #0E4521 | |
} | |
</style> | |
<div id="wpfh_main_obit"> | |
<?php | |
echo apply_filters('wpfp_main_before_name','',$r); | |
echo apply_filters('wpfp_main_after_name','',$r); | |
echo apply_filters('wpfp_main_after_death_date','',$r); | |
?> | |
<div class="wpfh-obit-alternate"> | |
<div class="wpfh-obit-alternate-left" style="background-color:#038426"> | |
<div class="wpfh-obit-alternate-image" style="width:<?php echo get_option('wpfh_obit_w'); ?>px;"><a href="<?php echo $obit['photo']; ?>" class="wpfh_colorbox"><img src="<?php echo wpfh_thumbnail($obit['photo'], get_option('wpfh_obit_w',150),get_option('wpfh_obit_h',150)); ?>" ></a></div> | |
<div id=""><?php echo apply_filters('wpfh_obit_under_image','',$r); ?></div> | |
<?php echo $vet; ?> | |
<?php dynamic_sidebar( 'wpfh_under_image' ); ?> | |
<div class="wpfh-obit-subnav-button"><a href="#" class="wpfh-mobile-menu wpfh_button "><span class="dashicons dashicons-menu"></span> Menu</a></div> | |
<?php | |
echo apply_filters('wpfh/obituary/top', '',$r); | |
echo apply_filters('wpfh/obituary/above_tabs', '' ,$r); | |
if(wpfh_feature_disabled('Obituary: View Counter') != true){ | |
echo '<div class="wpfh-view-counter">'.sprintf(__('%s Viewed %d times','sp-wpfh'), get_option('wpfh_obit_name'),wpfh_obit_count($r[0]['id'])).'</div>'; | |
} | |
echo $wpfh_user_obits->tabs($r,'wpfh-alternate-header'); | |
echo apply_filters('wpfp_frontend_obit_below_tabs','',$r); | |
?> | |
</div> | |
<div class="wpfh-obit-alternate-right" style="background-color:#D9CB00"> | |
<?php dynamic_sidebar( 'wpfh_above_name' ); ?> | |
<div class="wpfh-obit-alternate-title"><h1><a href="<?php echo wpfh_obit_page($_GET['id']); ?>"><?php echo $name; ?></a></h1></div> | |
<div class="wpfh-obit-alternate-dates"><?php echo $birth_date; ?> <?php echo $death_date; ?></p></div> | |
<iframe style="width:100%" height="315" src="https://www.youtube.com/embed/CHekNnySAfM" frameborder="0" allowfullscreen></iframe> | |
<div class="wpfh_main_obit_info <?php echo $class; ?>"> | |
<div id="wpfh-obit-alternate-top-right"> | |
<?php | |
#service date | |
if (get_option('wpfh_site_type') == 'funeral') { | |
if($burial_date != ''){ | |
echo '<p><strong>'.__("Service Date","sp-wpfh").':</strong> ' .$burial_date . '</p>'; | |
} | |
}else{ | |
if($burial_date != ''){ | |
echo '<p><strong>'.__("Burial Date","sp-wpfh").':</strong> ' .$burial_date . '</p>'; | |
} | |
} | |
echo apply_filters('wpfp_main_after_service_date','',$r); | |
?> | |
<?php | |
echo apply_filters('wpfp_main_obit_right_column_top', '',$r); | |
if($obit_notes != ''){ | |
if( is_serialized($obit_notes )){ | |
$notes_a = unserialize($obit_notes); | |
}else{ | |
echo '<p>' . $obit_notes . '</p>'; | |
} | |
} | |
echo apply_filters('wpfp_main_after_notes','',$r); | |
echo apply_filters('wpfh_obit_top_right','',$r); | |
?> | |
</div> | |
</div> | |
<?php dynamic_sidebar( 'wpfh_above_obit' ); ?> | |
<?php | |
do_action('wpfh_the_content',$obit_vars,'wpfh-obit-subnav'); | |
?> | |
<?php dynamic_sidebar( 'wpfh_below_obituary_content' ); ?> | |
<div style="clear:both"></div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment