Changeset 2185754
- Timestamp:
- 11/04/2019 06:23:30 PM (6 years ago)
- Location:
- obituary-assistant-by-funeral-home-website-solutions/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (1 diff)
-
fhw-solutions-obituaries.php (modified) (1 diff)
-
includes/class-fhw-solutions-obituaries.php (modified) (1 diff)
-
public/partials/fhw-solutions-obituaries-public-display-all-obituaries.php (modified) (1 diff)
-
public/partials/fhw-solutions-obituaries-public-display-photo-gallery.php (modified) (1 diff)
-
public/partials/fhw-solutions-obituaries-public-display-recent-obituaries.php (modified) (3 diffs)
-
public/partials/fhw-solutions-obituaries-public-display.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
obituary-assistant-by-funeral-home-website-solutions/trunk/README.txt
r2178679 r2185754 8 8 Requires at least: 4.1 9 9 Tested up to: 5.2.2 10 Stable tag: 2. 9.111 Version: 2. 9.110 Stable tag: 2.10.0 11 Version: 2.10.0 12 12 License: GPLv2 or later 13 13 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
obituary-assistant-by-funeral-home-website-solutions/trunk/fhw-solutions-obituaries.php
r2178679 r2185754 17 17 * Plugin URI: https://wordpress.org/plugins/obituary-assistant-by-funeral-home-website-solutions/ 18 18 * Description: This is the obituaries module for funeral home websites 19 * Version: 2. 9.119 * Version: 2.10.0 20 20 * Author: fhwsolutions 21 21 * Author URI: https://www.fhwsolutions.com -
obituary-assistant-by-funeral-home-website-solutions/trunk/includes/class-fhw-solutions-obituaries.php
r2178679 r2185754 70 70 71 71 $this->plugin_name = 'fhw-solutions-obituaries'; 72 $this->version = '2. 9.1';72 $this->version = '2.10.0'; 73 73 74 74 $this->load_dependencies(); -
obituary-assistant-by-funeral-home-website-solutions/trunk/public/partials/fhw-solutions-obituaries-public-display-all-obituaries.php
r2177098 r2185754 46 46 47 47 echo '<div class="obit_listing">'; 48 echo '<div class="obit_photo"><a href="'.$obit_link.'/"><img src="https://res.cloudinary.com/ltkadmfy5/image/upload/ w_200,h_300,c_thumb,g_face/c_fill,h_160,w_107/'.$jsonString["OBITUARIES"][$i]["IMAGE"].'" /></a></div>';48 echo '<div class="obit_photo"><a href="'.$obit_link.'/"><img src="https://res.cloudinary.com/ltkadmfy5/image/upload/t_main_obituaries/'.$jsonString["OBITUARIES"][$i]["IMAGE"].'" /></a></div>'; 49 49 echo '<div class="obit_name"><a href="'.$obit_link.'/">'.$jsonString["OBITUARIES"][$i]["FIRST_NAME"].' '.$jsonString["OBITUARIES"][$i]["MIDDLE_NAME"].' '.$jsonString["OBITUARIES"][$i]["LAST_NAME"].'</a></div>'; 50 50 echo '<div class="obit_date">'.$obitDates.'</div>'; -
obituary-assistant-by-funeral-home-website-solutions/trunk/public/partials/fhw-solutions-obituaries-public-display-photo-gallery.php
r1802000 r2185754 11 11 ?> 12 12 <?php 13 for ($i=0;$i<count($jsonString["OBITUARIES"]["PHOTOS"]);$i++) {14 echo '<img id="obituary-photo-' . $i . '" src="https://res.cloudinary.com/ltkadmfy5/image/upload/c_thumb,h_150,w_150/' . $jsonString["OBITUARIES"]["PHOTOS"][$i]["PHOTO_URL"] . '" data-url="' . $jsonString["OBITUARIES"]["PHOTOS"][$i]["PHOTO_URL"] . '" data-type="photo" />';13 for ($i=0;$i<count($jsonString["OBITUARIES"]["PHOTOS"]);$i++) { 14 echo '<img id="obituary-photo-' . $i . '" src="https://res.cloudinary.com/ltkadmfy5/image/upload/t_photo_gallery_thumbnail/' . $jsonString["OBITUARIES"]["PHOTOS"][$i]["PHOTO_URL"] . '" data-url="' . $jsonString["OBITUARIES"]["PHOTOS"][$i]["PHOTO_URL"] . '" data-type="photo" />'; 15 15 } 16 16 ?> -
obituary-assistant-by-funeral-home-website-solutions/trunk/public/partials/fhw-solutions-obituaries-public-display-recent-obituaries.php
r1947567 r2185754 12 12 ?> 13 13 <?php 14 if($orientation == 'horizontal') 15 { 16 ?> 14 if ($orientation == 'horizontal') { 15 ?> 17 16 <div id="fhw-solutions-obituaries-recent-obituaries" class="fhw-horizontal" style="float: <?php echo $position ?>"> 18 17 <?php foreach ($obits["OBITUARIES"] as $obit): ?> 19 18 <?php 20 $obitBornDate = $obit["BORN_DATE"]?date($obituaryDateFormat[$obits['CLIENT_CONFIG']['FULL_OBITS_DATE']], strtotime($obit["BORN_DATE"])):'';21 $obitPassedDate = $obit["DIED_DATE"]?date($obituaryDateFormat[$obits['CLIENT_CONFIG']['FULL_OBITS_DATE']],strtotime($obit["DIED_DATE"])):'';19 $obitBornDate = $obit["BORN_DATE"]?date($obituaryDateFormat[$obits['CLIENT_CONFIG']['FULL_OBITS_DATE']], strtotime($obit["BORN_DATE"])):''; 20 $obitPassedDate = $obit["DIED_DATE"]?date($obituaryDateFormat[$obits['CLIENT_CONFIG']['FULL_OBITS_DATE']], strtotime($obit["DIED_DATE"])):''; 22 21 23 if($obitBornDate && $obitPassedDate){ 24 $obitDates = $obitBornDate.' - '.$obitPassedDate; 25 }elseif($obitBornDate && !$obitPassedDate){ 26 $obitDates = sprintf(__('Born %s'),$obitBornDate); 27 }elseif(!$obitBornDate && $obitPassedDate){ 28 $obitDates = sprintf(__('Passed %s'),$obitPassedDate); 29 }else{ 30 $obitDates = ''; 31 } 32 ?> 22 if ($obitBornDate && $obitPassedDate) { 23 $obitDates = $obitBornDate.' - '.$obitPassedDate; 24 } elseif ($obitBornDate && !$obitPassedDate) { 25 $obitDates = sprintf(__('Born %s'), $obitBornDate); 26 } elseif (!$obitBornDate && $obitPassedDate) { 27 $obitDates = sprintf(__('Passed %s'), $obitPassedDate); 28 } else { 29 $obitDates = ''; 30 } ?> 33 31 <a href="../<?php echo get_option('fhw-solutions-obituaries_2')['obituary_page_name'] . '/' . $obit["OBIT_URL_REWRITE"] ?>"> 34 32 <div class="fhw-solutions-obituaries-recent-obituaries-listing"> 35 33 <div style="float: left; width: 20%"> 36 <img src="https://res.cloudinary.com/ltkadmfy5/image/upload/ w_100,h_100,c_thumb,g_face/c_fill,h_100,w_100/<?php echo $obit["IMAGE"] ?>" />34 <img src="https://res.cloudinary.com/ltkadmfy5/image/upload/t_recent_obituaries/<?php echo $obit["IMAGE"] ?>" /> 37 35 </div> 38 36 <div style=" float: right; width: 76%;"> … … 45 43 </div> 46 44 <?php 47 } 48 else 49 { 50 ?> 45 } else { 46 ?> 51 47 <div id="fhw-solutions-obituaries-recent-obituaries" style="float: <?php echo $position ?>"> 52 48 <?php foreach ($obits["OBITUARIES"] as $obit): ?> 53 49 <?php 54 $obitBornDate = $obit["BORN_DATE"]?date($obituaryDateFormat[$obits['CLIENT_CONFIG']['FULL_OBITS_DATE']], strtotime($obit["BORN_DATE"])):'';55 $obitPassedDate = $obit["DIED_DATE"]?date($obituaryDateFormat[$obits['CLIENT_CONFIG']['FULL_OBITS_DATE']],strtotime($obit["DIED_DATE"])):'';50 $obitBornDate = $obit["BORN_DATE"]?date($obituaryDateFormat[$obits['CLIENT_CONFIG']['FULL_OBITS_DATE']], strtotime($obit["BORN_DATE"])):''; 51 $obitPassedDate = $obit["DIED_DATE"]?date($obituaryDateFormat[$obits['CLIENT_CONFIG']['FULL_OBITS_DATE']], strtotime($obit["DIED_DATE"])):''; 56 52 57 if($obitBornDate && $obitPassedDate){ 58 $obitDates = $obitBornDate.' - '.$obitPassedDate; 59 }elseif($obitBornDate && !$obitPassedDate){ 60 $obitDates = sprintf(__('Born %s'),$obitBornDate); 61 }elseif(!$obitBornDate && $obitPassedDate){ 62 $obitDates = sprintf(__('Passed %s'),$obitPassedDate); 63 }else{ 64 $obitDates = ''; 65 } 66 ?> 53 if ($obitBornDate && $obitPassedDate) { 54 $obitDates = $obitBornDate.' - '.$obitPassedDate; 55 } elseif ($obitBornDate && !$obitPassedDate) { 56 $obitDates = sprintf(__('Born %s'), $obitBornDate); 57 } elseif (!$obitBornDate && $obitPassedDate) { 58 $obitDates = sprintf(__('Passed %s'), $obitPassedDate); 59 } else { 60 $obitDates = ''; 61 } ?> 67 62 <a href="../<?php echo get_option('fhw-solutions-obituaries_2')['obituary_page_name'] . '/' . $obit["OBIT_URL_REWRITE"] ?>"> 68 63 <div class="fhw-solutions-obituaries-recent-obituaries-listing"> 69 64 <div style="float: left; width: 20%"> 70 <img src="https://res.cloudinary.com/ltkadmfy5/image/upload/ w_100,h_100,c_thumb,g_face/c_fill,h_100,w_100/<?php echo $obit["IMAGE"] ?>" />65 <img src="https://res.cloudinary.com/ltkadmfy5/image/upload/t_recent_obituaries/<?php echo $obit["IMAGE"] ?>" /> 71 66 </div> 72 67 <div style=" float: right; width: 76%;"> … … 78 73 <?php endforeach; ?> 79 74 </div> 80 <?php } ?> 75 <?php 76 } ?> -
obituary-assistant-by-funeral-home-website-solutions/trunk/public/partials/fhw-solutions-obituaries-public-display.php
r2126839 r2185754 16 16 <h2><?php echo $jsonString["OBITUARIES"]["FIRST_NAME"] . ' ' . $jsonString["OBITUARIES"]["MIDDLE_NAME"] . ' '.$jsonString["OBITUARIES"]["LAST_NAME"]; ?></h2> 17 17 <?php 18 $obitBornDate = $jsonString["OBITUARIES"]["BORN_DATE"];19 $obitPassedDate = $jsonString["OBITUARIES"]["DIED_DATE"];18 $obitBornDate = $jsonString["OBITUARIES"]["BORN_DATE"]; 19 $obitPassedDate = $jsonString["OBITUARIES"]["DIED_DATE"]; 20 20 21 if($obitBornDate && $obitPassedDate){22 $obitDates = $obitBornDate.' - '.$obitPassedDate;23 }elseif($obitBornDate && !$obitPassedDate){24 $obitDates = sprintf(__('Born %s'),$obitBornDate);25 }elseif(!$obitBornDate && $obitPassedDate){26 $obitDates = sprintf(__('Passed %s'),$obitPassedDate);27 }else{28 $obitDates = '';29 }30 ?>21 if ($obitBornDate && $obitPassedDate) { 22 $obitDates = $obitBornDate.' - '.$obitPassedDate; 23 } elseif ($obitBornDate && !$obitPassedDate) { 24 $obitDates = sprintf(__('Born %s'), $obitBornDate); 25 } elseif (!$obitBornDate && $obitPassedDate) { 26 $obitDates = sprintf(__('Passed %s'), $obitPassedDate); 27 } else { 28 $obitDates = ''; 29 } 30 ?> 31 31 <h4><?php echo $obitDates; ?></h4> 32 32 </div> 33 33 <!-- left section (main photo and share section) --> 34 34 <div class="left"> 35 <div class="obit_photo"><img src="https://res.cloudinary.com/ltkadmfy5/image/upload/ w_200,h_300,c_thumb,g_face/<?php echo $jsonString["OBITUARIES"]["IMAGE"]; ?>" /></div>35 <div class="obit_photo"><img src="https://res.cloudinary.com/ltkadmfy5/image/upload/t_individual_obituary/<?php echo $jsonString["OBITUARIES"]["IMAGE"]; ?>" /></div> 36 36 <div class="share"> 37 37 <h3>Share</h3> … … 61 61 62 62 <?php 63 if (strlen($jsonString["OBITUARIES"]["OBIT_PROGRAM_URL"]) > 0) {64 echo '<p><a href="' . $jsonString["OBITUARIES"]["OBIT_PROGRAM_URL"] . '">Download funeral program</a></p>';63 if (strlen($jsonString["OBITUARIES"]["OBIT_PROGRAM_URL"]) > 0) { 64 echo '<p><a href="' . $jsonString["OBITUARIES"]["OBIT_PROGRAM_URL"] . '">Download funeral program</a></p>'; 65 65 } 66 66 ?> 67 67 68 68 <?php 69 if (count($jsonString["OBITUARIES"]["EVENTS"]) > 0) {70 echo '<h3>Services</h3>';69 if (count($jsonString["OBITUARIES"]["EVENTS"]) > 0) { 70 echo '<h3>Services</h3>'; 71 71 } 72 for ($i=0;$i<count($jsonString["OBITUARIES"]["EVENTS"]);$i++){73 include 'fhw-solutions-obituaries-public-display-events.php';72 for ($i=0;$i<count($jsonString["OBITUARIES"]["EVENTS"]);$i++) { 73 include 'fhw-solutions-obituaries-public-display-events.php'; 74 74 } 75 75 76 if (count($jsonString["OBITUARIES"]["EVENTS"])>0){77 echo '<a class="fhw-solutions-obituaries_company-link" href="https://www.fhwsolutions.com/" target="_blank" >by FHW Solutions</a>';78 }76 if (count($jsonString["OBITUARIES"]["EVENTS"])>0) { 77 echo '<a class="fhw-solutions-obituaries_company-link" href="https://www.fhwsolutions.com/" target="_blank" >by FHW Solutions</a>'; 78 } 79 79 80 80 … … 158 158 <?php 159 159 160 if ($jsonString["CLIENT_CONFIG"]["SHOW_QR_CODE"] == 1) {161 $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];162 echo get_qr_code($url);160 if ($jsonString["CLIENT_CONFIG"]["SHOW_QR_CODE"] == 1) { 161 $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; 162 echo get_qr_code($url); 163 163 } 164 164 165 if (count($jsonString["OBITUARIES"]["MUSIC"]["SONGS"]) > 0) {166 echo '<div id="obituary_assistant_music" data-file="' . $jsonString["OBITUARIES"]["MUSIC"]["SONGS"][0]["FILE"] . '" data-artist="' . $jsonString["OBITUARIES"]["MUSIC"]["SONGS"][0]["ARTIST"] . '" data-title="' . $jsonString["OBITUARIES"]["MUSIC"]["SONGS"][0]["TITLE"] . '"></div>';165 if (count($jsonString["OBITUARIES"]["MUSIC"]["SONGS"]) > 0) { 166 echo '<div id="obituary_assistant_music" data-file="' . $jsonString["OBITUARIES"]["MUSIC"]["SONGS"][0]["FILE"] . '" data-artist="' . $jsonString["OBITUARIES"]["MUSIC"]["SONGS"][0]["ARTIST"] . '" data-title="' . $jsonString["OBITUARIES"]["MUSIC"]["SONGS"][0]["TITLE"] . '"></div>'; 167 167 } 168 168
Note: See TracChangeset
for help on using the changeset viewer.