Plugin Directory

Changeset 2185754


Ignore:
Timestamp:
11/04/2019 06:23:30 PM (6 years ago)
Author:
fhwsolutions
Message:

v2.10.0, image url updates

Location:
obituary-assistant-by-funeral-home-website-solutions/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • obituary-assistant-by-funeral-home-website-solutions/trunk/README.txt

    r2178679 r2185754  
    88Requires at least: 4.1
    99Tested up to: 5.2.2
    10 Stable tag: 2.9.1
    11 Version: 2.9.1
     10Stable tag: 2.10.0
     11Version: 2.10.0
    1212License: GPLv2 or later
    1313License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • obituary-assistant-by-funeral-home-website-solutions/trunk/fhw-solutions-obituaries.php

    r2178679 r2185754  
    1717 * Plugin URI:        https://wordpress.org/plugins/obituary-assistant-by-funeral-home-website-solutions/
    1818 * Description:       This is the obituaries module for funeral home websites
    19  * Version:           2.9.1
     19 * Version:           2.10.0
    2020 * Author:            fhwsolutions
    2121 * Author URI:        https://www.fhwsolutions.com
  • obituary-assistant-by-funeral-home-website-solutions/trunk/includes/class-fhw-solutions-obituaries.php

    r2178679 r2185754  
    7070
    7171        $this->plugin_name = 'fhw-solutions-obituaries';
    72         $this->version = '2.9.1';
     72        $this->version = '2.10.0';
    7373
    7474        $this->load_dependencies();
  • obituary-assistant-by-funeral-home-website-solutions/trunk/public/partials/fhw-solutions-obituaries-public-display-all-obituaries.php

    r2177098 r2185754  
    4646
    4747      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>';
    4949      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>';
    5050      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  
    1111?>
    1212<?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" />';
    1515  }
    1616?>
  • obituary-assistant-by-funeral-home-website-solutions/trunk/public/partials/fhw-solutions-obituaries-public-display-recent-obituaries.php

    r1947567 r2185754  
    1212?>
    1313<?php
    14 if($orientation == 'horizontal')
    15 {
    16 ?>
     14if ($orientation == 'horizontal') {
     15    ?>
    1716  <div id="fhw-solutions-obituaries-recent-obituaries" class="fhw-horizontal" style="float: <?php echo $position ?>">
    1817     <?php foreach ($obits["OBITUARIES"] as $obit): ?>
    1918     <?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"])):'';
    2221         
    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    } ?>   
    3331    <a href="../<?php echo get_option('fhw-solutions-obituaries_2')['obituary_page_name'] . '/' . $obit["OBIT_URL_REWRITE"] ?>">
    3432      <div class="fhw-solutions-obituaries-recent-obituaries-listing">
    3533        <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"] ?>" />
    3735        </div>
    3836        <div style=" float: right; width: 76%;">
     
    4543</div>
    4644<?php
    47 }
    48 else
    49 {
    50  ?>
     45} else {
     46    ?>
    5147<div id="fhw-solutions-obituaries-recent-obituaries" style="float: <?php echo $position ?>">
    5248  <?php foreach ($obits["OBITUARIES"] as $obit): ?>
    5349     <?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"])):'';
    5652         
    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    } ?>
    6762    <a href="../<?php echo get_option('fhw-solutions-obituaries_2')['obituary_page_name'] . '/' . $obit["OBIT_URL_REWRITE"] ?>">
    6863      <div class="fhw-solutions-obituaries-recent-obituaries-listing">
    6964        <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"] ?>" />
    7166        </div>
    7267        <div style=" float: right; width: 76%;">
     
    7873  <?php endforeach; ?>
    7974</div>
    80 <?php } ?>
     75<?php
     76} ?>
  • obituary-assistant-by-funeral-home-website-solutions/trunk/public/partials/fhw-solutions-obituaries-public-display.php

    r2126839 r2185754  
    1616    <h2><?php echo $jsonString["OBITUARIES"]["FIRST_NAME"] . ' ' . $jsonString["OBITUARIES"]["MIDDLE_NAME"] . ' '.$jsonString["OBITUARIES"]["LAST_NAME"]; ?></h2>
    1717        <?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"];
    2020
    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        ?>
    3131    <h4><?php echo $obitDates; ?></h4>
    3232  </div>
    3333  <!-- left section (main photo and share section) -->
    3434  <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>
    3636    <div class="share">
    3737      <h3>Share</h3>
     
    6161
    6262      <?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>';
    6565        }
    6666      ?>
    6767
    6868      <?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>';
    7171        }
    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';
    7474        }
    7575
    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                }
    7979
    8080
     
    158158    <?php
    159159
    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);
    163163      }
    164164
    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>';
    167167      }
    168168
Note: See TracChangeset for help on using the changeset viewer.