Whoops \ Exception \ ErrorException (E_WARNING)
Use of undefined constant paid - assumed 'paid' (this will throw an Error in a future version of PHP) Whoops\Exception\ErrorException thrown with message "Use of undefined constant paid - assumed 'paid' (this will throw an Error in a future version of PHP)" Stacktrace: #17 Whoops\Exception\ErrorException in /www/newtheastrologercom_455/public/wp-content/plugins/global-content-blocks-bk/global-content-blocks.php:248 #16 Whoops\Run:handleError in /www/newtheastrologercom_455/public/wp-content/plugins/global-content-blocks-bk/global-content-blocks.php:248 #15 eval in /www/newtheastrologercom_455/public/wp-content/plugins/global-content-blocks-bk/global-content-blocks.php:248 #14 gcb in /www/newtheastrologercom_455/public/wp-content/plugins/global-content-blocks-bk/global-content-blocks.php:221 #13 gcb_shortcode_replacer in /www/newtheastrologercom_455/public/wp-includes/shortcodes.php:319 #12 do_shortcode_tag in [internal]:0 #11 preg_replace_callback in /www/newtheastrologercom_455/public/wp-includes/shortcodes.php:197 #10 do_shortcode in /www/newtheastrologercom_455/public/wp-includes/class-wp-hook.php:286 #9 WP_Hook:apply_filters in /www/newtheastrologercom_455/public/wp-includes/plugin.php:203 #8 apply_filters in /www/newtheastrologercom_455/public/wp-includes/post-template.php:240 #7 the_content in /www/newtheastrologercom_455/public/wp-content/themes/bb-theme-child/content-page.php:23 #6 require in /www/newtheastrologercom_455/public/wp-includes/template.php:690 #5 load_template in /www/newtheastrologercom_455/public/wp-includes/template.php:647 #4 locate_template in /www/newtheastrologercom_455/public/wp-includes/general-template.php:155 #3 get_template_part in /www/newtheastrologercom_455/public/wp-content/themes/bb-theme/tpl-no-header-footer.php:20 #2 include in /www/newtheastrologercom_455/public/wp-includes/template-loader.php:74 #1 require_once in /www/newtheastrologercom_455/public/wp-blog-header.php:19 #0 require in /www/newtheastrologercom_455/public/index.php:17
Stack frames (18)
17
Whoops
\
Exception
\
ErrorException
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
plugins
/
global-content-blocks-bk
/
global-content-blocks.php
248
16
Whoops
\
Run
handleError
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
plugins
/
global-content-blocks-bk
/
global-content-blocks.php
248
15
eval
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
plugins
/
global-content-blocks-bk
/
global-content-blocks.php
248
14
gcb
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
plugins
/
global-content-blocks-bk
/
global-content-blocks.php
221
13
gcb_shortcode_replacer
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
shortcodes.php
319
12
do_shortcode_tag
[internal]
0
11
preg_replace_callback
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
shortcodes.php
197
10
do_shortcode
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
class-wp-hook.php
286
9
WP_Hook
apply_filters
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
plugin.php
203
8
apply_filters
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
post-template.php
240
7
the_content
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
themes
/
bb-theme-child
/
content-page.php
23
6
require
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
template.php
690
5
load_template
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
template.php
647
4
locate_template
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
general-template.php
155
3
get_template_part
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
themes
/
bb-theme
/
tpl-no-header-footer.php
20
2
include
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
template-loader.php
74
1
require_once
/
www
/
newtheastrologercom_455
/
public
/
wp-blog-header.php
19
0
require
/
www
/
newtheastrologercom_455
/
public
/
index.php
17
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
plugins
/
global-content-blocks-bk
/
global-content-blocks.php
        if(is_numeric($id)) {     
            $entry = gcb::get_entry_by_id(intval($id));
        } else {
            $entry = gcb::get_entry_by_custom_id($id);
        }        
    
        if(is_array($entry)) {            
            $content = htmlspecialchars_decode(stripslashes($entry['value']));
            
            //process the attributes
            if(is_array($attributes)&& count($attributes)){
                foreach($attributes as $attribute_key=>$attribute_value){
                    $content = str_replace("%%".$attribute_key."%%",$attribute_value,$content);
                }
            }            
            
            if($entry['type'] == "php") {
                //execute the php code
                ob_start();
                $result = eval(" ".$content);
                $output = ob_get_contents();
                ob_end_clean();
                
                return apply_filters('gcb_block_output', do_shortcode($output . $result));//run the shortcodes as well
            }
            elseif($entry['type'] == "html") {   // alloyphoto: enable PHP code in < ?php ... ? > tags inside blocks
                ob_start();
                eval("?>$content<?php ");
                $output = ob_get_contents();
                ob_end_clean();
                
                return apply_filters('gcb_block_output', do_shortcode($output));//run the shortcodes as well
            }
            else {
                return apply_filters('gcb_block_output', do_shortcode($content));//make sure we also run the shortcodes in here
            }
        }
        else
        {   return "";    }
    }
Arguments
  1. "Use of undefined constant paid - assumed 'paid' (this will throw an Error in a future version of PHP)"
    
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
plugins
/
global-content-blocks-bk
/
global-content-blocks.php
        if(is_numeric($id)) {     
            $entry = gcb::get_entry_by_id(intval($id));
        } else {
            $entry = gcb::get_entry_by_custom_id($id);
        }        
    
        if(is_array($entry)) {            
            $content = htmlspecialchars_decode(stripslashes($entry['value']));
            
            //process the attributes
            if(is_array($attributes)&& count($attributes)){
                foreach($attributes as $attribute_key=>$attribute_value){
                    $content = str_replace("%%".$attribute_key."%%",$attribute_value,$content);
                }
            }            
            
            if($entry['type'] == "php") {
                //execute the php code
                ob_start();
                $result = eval(" ".$content);
                $output = ob_get_contents();
                ob_end_clean();
                
                return apply_filters('gcb_block_output', do_shortcode($output . $result));//run the shortcodes as well
            }
            elseif($entry['type'] == "html") {   // alloyphoto: enable PHP code in < ?php ... ? > tags inside blocks
                ob_start();
                eval("?>$content<?php ");
                $output = ob_get_contents();
                ob_end_clean();
                
                return apply_filters('gcb_block_output', do_shortcode($output));//run the shortcodes as well
            }
            else {
                return apply_filters('gcb_block_output', do_shortcode($content));//make sure we also run the shortcodes in here
            }
        }
        else
        {   return "";    }
    }
Arguments
  1. 2
    
  2. "Use of undefined constant paid - assumed 'paid' (this will throw an Error in a future version of PHP)"
    
  3. "/www/newtheastrologercom_455/public/wp-content/plugins/global-content-blocks-bk/global-content-blocks.php(248) : eval()'d code"
    
  4. 7
    
  5. array:6 [
      "id" => "forecast-calendar-print-view"
      "attributes" => array:2 [
        "id" => "forecast-calendar-print-view"
        "cal_type" => "paid"
      ]
      "entry" => array:6 [
        "name" => "Forecast Calendar - Print View"
        "description" => ""
        "value" => """
          date_default_timezone_set(\'UTC\');\r\n
          \r\n
          echo do_shortcode( \&quot;[contentblock id=long-term-vcal-data]\&quot; );\r\n
          \r\n
          // SHORTCODE PARAMETERS\r\n
          // \'free\' or \'paid\'\r\n
          $calType = %%cal_type%%;\r\n
          \r\n
          // =========================================\r\n
          // GET PARAMETERS / URL QUERY STRINGS\r\n
          \r\n
          $getBD = htmlspecialchars($_POST[\'BD\']);\r\n
          \r\n
          $getPlusMonth = htmlspecialchars($_POST[\'PM\']);\r\n
          \r\n
          if ( !empty($getPlusMonth) ) {\r\n
          \r\n
          } else {\r\n
            \r\n
            $getPlusMonth = 0;  \r\n
          \r\n
          }\r\n
          \r\n
          $getUtcOffsetRaw= htmlspecialchars($_POST[\'UTC\']);\r\n
          \r\n
          $getUtcOffset = substr($getUtcOffsetRaw, 0, -1);\r\n
          \r\n
          $calendarDate = htmlspecialchars($_POST[\'DATE\']);\r\n
          \r\n
          // echo $getBD.\' | \'.$getUtcOffsetRaw.\' | \'.$getPlusMonth.\' | \'.$calendarDate;\r\n
          \r\n
          // USER META FIELDS\r\n
          \r\n
          $userInfo = wp_get_current_user();\r\n
          \r\n
          // User first and last names\r\n
          \r\n
          $userFullName = $userInfo-&gt;user_firstname.\' \'.$userInfo-&gt;user_lastname;\r\n
          \r\n
          // Get Date of Birth from WP user meta via Toolset\r\n
          \r\n
          $dateOfBirth = types_render_usermeta( \&quot;date-of-birth\&quot;, array( \&quot;user_current\&quot; =&gt; true ) );\r\n
          \r\n
          $dateOfBirthString = date(\&quot;m/d/Y\&quot;, strtotime($dateOfBirth));\r\n
          $dateOfBirthString = str_replace(\&quot;/\&quot;,\&quot;\&quot;,$dateOfBirthString); \r\n
            \r\n
          $userBirthdayMonth = date(\&quot;n\&quot;,strtotime($dateOfBirth));\r\n
          $userBirthdayDay = date(\&quot;j\&quot;,strtotime($dateOfBirth));\r\n
          \r\n
          if ( !empty( $getBD ) ) {\r\n
          \r\n
            $dateOfBirthUnix = $getBD;\r\n
            \r\n
          } else {\r\n
            \r\n
            $dateOfBirthUnix = strtotime($dateOfBirth);\r\n
            $dateOfBirthUnix = substr($dateOfBirthUnix, 0, -2);\r\n
            $dateOfBirthUnix = str_replace(\&quot;-\&quot;,\&quot;b\&quot;,$dateOfBirthUnix);\r\n
          \r\n
          }\r\n
          \r\n
          // Get UTC offset from WP user meta via Toolset\r\n
          \r\n
          $userUtcOffsetRaw = types_render_usermeta( \&quot;utc-offset\&quot;, array( \&quot;user_current\&quot; =&gt; true, \&quot;output\&quot; =&gt; \&quot;raw\&quot; ) );\r\n
          \r\n
          // Trim last character\r\n
          $userUtcOffset = substr($userUtcOffsetRaw, 0, -1);\r\n
          \r\n
          // Prioritize UTC offset defined in URL query string over user\'s chosen offset\r\n
          \r\n
          if ( !empty($getUtcOffsetRaw) ) {\r\n
          \r\n
          $utcOffset = $getUtcOffset;\r\n
          \r\n
          } else {\r\n
          \r\n
          $utcOffset = $userUtcOffset;\r\n
          \r\n
          }\r\n
          \r\n
          // Get UTC offset in HH:MM\r\n
          \r\n
          if ( $utcOffset == \'-12\' ) { $utcOffsetString = \'-12:00\'; } \r\n
          elseif ( $utcOffset == \'-12\' ) { $utcOffsetString = \'-12:00\'; }\r\n
          elseif ( $utcOffset == \'-11\' ) { $utcOffsetString = \'-11:00\'; }\r\n
          elseif ( $utcOffset == \'-10\' ) { $utcOffsetString = \'-10:00\'; }\r\n
          elseif ( $utcOffset == \'-9.5\' ) { $utcOffsetString = \'-09:30\'; }\r\n
          elseif ( $utcOffset == \'-9\' ) { $utcOffsetString = \'-09:00\'; }\r\n
          elseif ( $utcOffset == \'-8\' ) { $utcOffsetString = \'-08:00\'; }\r\n
          elseif ( $utcOffset == \'-7\' ) { $utcOffsetString = \'-07:00\'; }\r\n
          elseif ( $utcOffset == \'-6\' ) { $utcOffsetString = \'-06:00\'; }\r\n
          elseif ( $utcOffset == \'-5\' ) { $utcOffsetString = \'-05:00\'; }\r\n
          elseif ( $utcOffset == \'-4\' ) { $utcOffsetString = \'-04:00\'; }\r\n
          elseif ( $utcOffset == \'-3.5\' ) { $utcOffsetString = \'-03:30\'; }\r\n
          elseif ( $utcOffset == \'-3\' ) { $utcOffsetString = \'-03:00\'; }\r\n
          elseif ( $utcOffset == \'-2\' ) { $utcOffsetString = \'-02:00\'; }\r\n
          elseif ( $utcOffset == \'-1\' ) { $utcOffsetString = \'-01:00\'; }\r\n
          elseif ( $utcOffset == \'0\' ) { $utcOffsetString = \'±00:00\'; }\r\n
          elseif ( $utcOffset == \'1\' ) { $utcOffsetString = \'+01:00\'; }\r\n
          elseif ( $utcOffset == \'2\' ) { $utcOffsetString = \'+02:00\'; }\r\n
          elseif ( $utcOffset == \'3\' ) { $utcOffsetString = \'+03:00\'; }\r\n
          elseif ( $utcOffset == \'3.5\' ) { $utcOffsetString = \'+03:30\'; }\r\n
          elseif ( $utcOffset == \'4\' ) { $utcOffsetString = \'+04:00\'; }\r\n
          elseif ( $utcOffset == \'4.5\' ) { $utcOffsetString = \'+04:30\'; }\r\n
          elseif ( $utcOffset == \'5\' ) { $utcOffsetString = \'+05:00\'; }\r\n
          elseif ( $utcOffset == \'5.5\' ) { $utcOffsetString = \'+05:30\'; }\r\n
          elseif ( $utcOffset == \'5.75\' ) { $utcOffsetString = \'+05:45\'; }\r\n
          elseif ( $utcOffset == \'6\' ) { $utcOffsetString = \'+06:00\'; }\r\n
          elseif ( $utcOffset == \'6.5\' ) { $utcOffsetString = \'+06:30\'; }\r\n
          elseif ( $utcOffset == \'7\' ) { $utcOffsetString = \'+07:00\'; }\r\n
          elseif ( $utcOffset == \'8\' ) { $utcOffsetString = \'+08:00\'; }\r\n
          elseif ( $utcOffset == \'8.75\' ) { $utcOffsetString = \'+08:45\'; }\r\n
          elseif ( $utcOffset == \'9\' ) { $utcOffsetString = \'+09:00\'; }\r\n
          elseif ( $utcOffset == \'9.5\' ) { $utcOffsetString = \'+09:30\'; }\r\n
          elseif ( $utcOffset == \'10\' ) { $utcOffsetString = \'+10:00\'; }\r\n
          elseif ( $utcOffset == \'10.5\' ) { $utcOffsetString = \'+10:30\'; }\r\n
          elseif ( $utcOffset == \'11\' ) { $utcOffsetString = \'+11:00\'; }\r\n
          elseif ( $utcOffset == \'12\' ) { $utcOffsetString = \'+12:00\'; }\r\n
          elseif ( $utcOffset == \'12.75\' ) { $utcOffsetString = \'+12:45\'; }\r\n
          elseif ( $utcOffset == \'13\' ) { $utcOffsetString = \'+13:00\'; }\r\n
          elseif ( $utcOffset == \'14\' ) { $utcOffsetString = \'+14:00\'; }\r\n
          else {}\r\n
          \r\n
          // Get current time after UTC offset\r\n
          \r\n
          $currentTime = time();\r\n
          \r\n
          // $currentTime = time() + (3 * MONTH_IN_SECONDS);\r\n
          \r\n
          $currentTimeUtcOffset = $currentTime + ($utcOffset*60*60);\r\n
          \r\n
          // ADDITIONAL VARIABLES\r\n
          \r\n
          $happyBirthday = \'&lt;div class=\&quot;happy-birthday\&quot;&gt;Happy birthday!&lt;/div&gt;\';\r\n
          \r\n
          // Get month and year\r\n
          \r\n
          $calendarCurrentMonth = date(\&quot;n\&quot;, strtotime(\'first day of +\'.$getPlusMonth.\' month\', $currentTimeUtcOffset));\r\n
          \r\n
          $year = date(\&quot;Y\&quot;, strtotime(\'first day of +\'.$getPlusMonth.\' month\', $currentTimeUtcOffset));\r\n
          \r\n
          // Define date info variables\r\n
          \r\n
          // What is the first day of the month in question?\r\n
          $firstDayOfMonth = mktime(0,0,0,$calendarCurrentMonth,1,$year);\r\n
          $firstDayOfMonthName = date(\&quot;l\&quot;, $firstDayOfMonth); \r\n
          \r\n
          // How many days does this month contain?\r\n
          $numberDays = date(\'t\',$firstDayOfMonth);\r\n
          \r\n
          // Retrieve some information about the first day of\r\n
          // the month in question\r\n
          $dateComponents = getdate($firstDayOfMonth);\r\n
          \r\n
          // What is the name of the month in question?\r\n
          $monthName = $dateComponents[\'month\'];\r\n
          $monthNameNum = date(\'n\',$firstDayOfMonth);\r\n
          \r\n
          // What is the (week\'s) index value (0-6) of the first day of\r\n
          // the month in question\r\n
          \r\n
          // $dayOfWeek = $dateComponents[\'wday\'];\r\n
          \r\n
          // $yearTwoDigits = date(\'y\',$firstDayOfMonth);\r\n
          \r\n
          // Turn month number into two digits, e.g. 7 to 07, but keep 11 as 11\r\n
          \r\n
          $monthRel = str_pad($calendarCurrentMonth,2,\&quot;0\&quot;, STR_PAD_LEFT);\r\n
          \r\n
          // Turn day number into two digits, e.g. 7 to 07, but keep 25 as 25\r\n
          \r\n
          // $currentDayRel = str_pad($currentDay, 2, \&quot;0\&quot;, STR_PAD_LEFT);\r\n
          \r\n
          $currentDayRel = date(\&quot;d\&quot;, strtotime($calendarDate));\r\n
          \r\n
          $date_yyyymmdd = $year.\'\'.$monthRel.\'\'.$currentDayRel;\r\n
          \r\n
          // Create date in loop in YYYY-MM-DD format\r\n
          \r\n
          $date = date(\&quot;Y-m-d\&quot;, strtotime($calendarDate));\r\n
          \r\n
          $dayName = date(\&quot;l\&quot;, strtotime($date));\r\n
          \r\n
          $dateFriendly = date(\&quot;F j, Y\&quot;, strtotime($date));\r\n
          \r\n
          $todaysDate = date(\&quot;n/d/Y\&quot;, strtotime($date));\r\n
          $todaysDateFormatted = date(\&quot;l, F j, Y\&quot;,strtotime($todaysDate));\r\n
          $todaysDateUnix = strtotime($todaysDate);\r\n
          \r\n
          $tomorrowsDate = date(\&quot;n/d/Y\&quot;, strtotime(\'+1 day\', strtotime($date)));\r\n
          $tomorrowsDateFormatted = date(\&quot;l, F j, Y\&quot;,strtotime($tomorrowsDate));\r\n
          $tomorrowsDateUnix = strtotime($tomorrowsDate);\r\n
          \r\n
          // Personalized aspects summaries and start dates. From cache generated by GCB \&quot;Long-Term vCal Data\&quot; do_shortcode-d on top of this GCB\r\n
          \r\n
          // Get 1st day of current month\'s Unix timestamp\r\n
          \r\n
          $firstDay = date($calendarCurrentMonth.\'/01/\'.$year);\r\n
          $firstDayUnix = strtotime($firstDay);\r\n
          \r\n
          // ===============================\r\n
          // BEGIN PRINT VIEW\r\n
          // ===============================\r\n
          \r\n
          // Get celeb birthday content from cache to use for conditionals\r\n
          \r\n
          $celebBirthday_cacheKey = \'celebBirthday_\'.$dateOfBirthString.\'_\'.$todaysDateUnix;\r\n
          \r\n
          $celebBirthdayArray = get_transient( $celebBirthday_cacheKey );\r\n
          \r\n
          if ( $calType === \'paid\' ) {\r\n
          \r\n
            $calendarPrintView = \'&lt;div class=\&quot;printview-paid\&quot;&gt;\';\r\n
          \r\n
          } else {\r\n
          \r\n
            $calendarPrintView = \'&lt;div class=\&quot;printview-free\&quot;&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          if ( false === $celebBirthdayArray ) {\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-header printview-nocontent\&quot;&gt;\';\r\n
          \r\n
          } else {\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-header\&quot;&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          if ( false === $celebBirthdayArray ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $calendarPrintView .= \'&lt;h2&gt;\'.$dayName.\', \'.$dateFriendly.\' &lt;br class=\&quot;visible-xs-block\&quot; /&gt;&lt;span&gt;(UTC\'.$utcOffsetString.\')&lt;/span&gt;&lt;/h2&gt;\';\r\n
          \r\n
            if ( $calType === \'paid\' ) {\r\n
          \r\n
              $calendarPrintView .= \'&lt;div class=\&quot;printview-member\&quot;&gt;For \'.$userFullName.\'&lt;span class=\&quot;hidden-xs\&quot;&gt;, &lt;/span&gt;&lt;br class=\&quot;visible-xs-block\&quot; /&gt;&lt;span class=\&quot;visible-xs-inline\&quot;&gt;B&lt;/span&gt;&lt;span class=\&quot;hidden-xs\&quot;&gt;b&lt;/span&gt;orn on \'.$dateOfBirth.\'&lt;/div&gt;\';\r\n
          \r\n
            } else {}\r\n
          \r\n
          }\r\n
          \r\n
          // ------------------------------\r\n
          // \&quot;Celeb birthday\&quot; content\r\n
          // ------------------------------\r\n
          \r\n
          if ( false === $celebBirthdayArray ) {\r\n
          \r\n
            if ( $calType === \'paid\' ) {\r\n
          \r\n
              $calendarPrintView .= \'&lt;p class=\&quot;bg-warning\&quot;&gt;Please return to the &lt;a href=\&quot;/forecast-calendar/member/\&quot;&gt;Personalized Forecast Calendar&lt;/a&gt; to get the day / print view.&lt;/p&gt;\';\r\n
          \r\n
            } else {\r\n
          \r\n
              $calendarPrintView .= \'&lt;p class=\&quot;bg-warning\&quot;&gt;Please return to the &lt;a href=\&quot;/forecast-calendar/free/\&quot;&gt;Free Forecast Calendar&lt;/a&gt; to get the day / print view.&lt;/p&gt;\';\r\n
          \r\n
            }\r\n
          \r\n
          \r\n
          } else {\r\n
          \r\n
            $celeb_name1 = $celebBirthdayArray[0];\r\n
            $celeb_birthyear1 = $celebBirthdayArray[1];\r\n
            $celeb_name2 = $celebBirthdayArray[2];\r\n
            $celeb_birthyear2 = $celebBirthdayArray[3];\r\n
            $celeb_name3 = $celebBirthdayArray[4];\r\n
            $celeb_birthyear3 = $celebBirthdayArray[5];\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-celebbirtday\&quot;&gt;Born this day:&lt;span class=\&quot;hidden-xs\&quot;&gt; &lt;/span&gt;&lt;br class=\&quot;visible-xs-block\&quot; /&gt;\'.$celeb_name1.\' (\'.$celeb_birthyear1.\')&lt;span class=\&quot;hidden-xs\&quot;&gt;, &lt;/span&gt;&lt;br class=\&quot;visible-xs-block\&quot; /&gt;\'\r\n
                        .$celeb_name2.\' (\'.$celeb_birthyear2.\')&lt;/div&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          // ------------------------------\r\n
          // \&quot;Moon phase and eclipse\&quot; content\r\n
          // ------------------------------\r\n
          \r\n
          $dailyMoonphase_cacheKey = \'dailyMoonphase_\'.$dateOfBirthString.\'_\'.$date_yyyymmdd;\r\n
          \r\n
          $dailyMoonphaseArray = get_transient( $dailyMoonphase_cacheKey );\r\n
          \r\n
          if ( false === $dailyMoonphaseArray ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $moonphase = $dailyMoonphaseArray[0];\r\n
            $moonPhaseImgUrl = $dailyMoonphaseArray[1];\r\n
            $eclipse = $dailyMoonphaseArray[2];\r\n
            $eclipseImgUrl = $dailyMoonphaseArray[3];\r\n
            $eclipseType = $dailyMoonphaseArray[4];\r\n
            $convertedFriendlyDateTime = $dailyMoonphaseArray[5];\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-phaseseclipse\&quot;&gt;\';\r\n
          \r\n
            if ( !empty($eclipse) ) {\r\n
          \r\n
              $calendarPrintView .= \'&lt;img src=\&quot;\'.$eclipseImgUrl.\'\&quot; /&gt;\';\r\n
          \r\n
              $calendarPrintView .= \'&lt;div&gt;\'.$eclipse.\'&lt;br /&gt;\'.$moonphase.\'&lt;/div&gt;\';\r\n
          \r\n
            } else {\r\n
          \r\n
              $calendarPrintView .= \'&lt;img src=\&quot;\'.$moonPhaseImgUrl.\'\&quot; /&gt;\';\r\n
          \r\n
              $calendarPrintView .= \'&lt;div&gt;\'.$moonphase.\'&lt;/div&gt;\';\r\n
          \r\n
            }\r\n
          \r\n
            $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          }\r\n
          \r\n
          // Closing tag for .printview-header\r\n
          \r\n
          $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
          if ( $calType === \'paid\' ) {\r\n
          \r\n
            $influences_cacheKey = \'influences_\'.$dateOfBirthString.\'_\'.$todaysDateUnix;\r\n
          \r\n
            $influencesArray = get_transient( $influences_cacheKey );\r\n
          \r\n
            if ( false === $influencesArray ) {\r\n
          \r\n
            } else {\r\n
          \r\n
              // ------------------------------\r\n
              // Calendar Filters\r\n
              // ------------------------------\r\n
          \r\n
              $calendarPrintView .= \'&lt;div class=\&quot;calfilter\&quot; id=\&quot;calFilter\&quot;&gt;\';\r\n
          \r\n
              $calendarPrintView .= \'&lt;p class=\&quot;influence-togglers\&quot;&gt;&lt;span class=\&quot;icon-toggles icon-show short-term-show\&quot; style=\&quot;display:none;\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_empty.png\&quot; /&gt;Short-Term Influences&lt;/span&gt;&lt;span class=\&quot;icon-toggles short-term-hide\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_checked.png\&quot; /&gt;Short-Term Influences&lt;/span&gt;&lt;span class=\&quot;icon-toggles icon-show long-term-show\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_empty.png\&quot; /&gt;Long-Term Influences&lt;/span&gt;&lt;span class=\&quot;icon-toggles long-term-hide\&quot; style=\&quot;display:none;\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_checked.png\&quot; /&gt;Long-Term Influences&lt;/span&gt;&lt;/p&gt;\';\r\n
          \r\n
              $calendarPrintView .= \'&lt;div class=\&quot;icon-togglers\&quot;&gt;&lt;span class=\&quot;icon-toggles icon-hide career-icons-hide\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_checked.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/career.png\&quot; /&gt;Career&lt;/span&gt;&lt;span class=\&quot;icon-toggles icon-show career-icons-show\&quot; style=\&quot;display:none;\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_empty.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/career.png\&quot; /&gt;Career&lt;/span&gt;\';\r\n
          \r\n
              $calendarPrintView .= \'&lt;span class=\&quot;icon-toggles icon-hide communication-icons-hide\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_checked.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/communication.png\&quot; /&gt;Communication&lt;/span&gt;&lt;span class=\&quot;icon-toggles icon-show communication-icons-show\&quot; style=\&quot;display:none;\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_empty.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/communication.png\&quot; /&gt;Communication&lt;/span&gt;\';\r\n
          \r\n
              $calendarPrintView .= \'&lt;span class=\&quot;icon-toggles icon-hide diet-icons-hide\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_checked.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/diet.png\&quot; /&gt;Fitness&lt;/span&gt;&lt;span class=\&quot;icon-toggles icon-show diet-icons-show\&quot; style=\&quot;display:none;\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_empty.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/diet.png\&quot; /&gt;Fitness&lt;/span&gt;\';\r\n
          \r\n
              $calendarPrintView .= \'&lt;span class=\&quot;icon-toggles icon-hide money-icons-hide\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_checked.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/money.png\&quot; /&gt;Money&lt;/span&gt;&lt;span class=\&quot;icon-toggles icon-show money-icons-show\&quot; style=\&quot;display:none;\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_empty.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/money.png\&quot; /&gt;Money&lt;/span&gt;\';\r\n
          \r\n
              $calendarPrintView .= \'&lt;span class=\&quot;icon-toggles icon-hide romance-icons-hide\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_checked.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/romance.png\&quot; /&gt;Romance&lt;/span&gt;&lt;span class=\&quot;icon-toggles icon-show romance-icons-show\&quot; style=\&quot;display:none;\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_empty.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/romance.png\&quot; /&gt;Romance&lt;/span&gt;\';\r\n
          \r\n
              $calendarPrintView .= \'&lt;span class=\&quot;icon-toggles icon-hide traveling-icons-hide\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_checked.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/traveling.png\&quot; /&gt;Travel&lt;/span&gt;&lt;span class=\&quot;icon-toggles icon-show traveling-icons-show\&quot; style=\&quot;display:none;\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_empty.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/traveling.png\&quot; /&gt;Travel&lt;/span&gt;\';\r\n
          \r\n
              $calendarPrintView .= \'&lt;span class=\&quot;icon-toggles icon-hide other-icons-hide stooltip-gray stooltip\&quot; data-tooltip-pos=\&quot;top-center\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_checked.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/strengths.png\&quot;&gt;Strengths &lt;img src=\&quot;/wp-content/uploads/images/glyphs/intensities.png\&quot;&gt;Intensities &lt;br class=\&quot;visible-xs-block button-linebreak\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/challenges.png\&quot;&gt;Challenges&lt;/span&gt;&lt;span class=\&quot;icon-toggles icon-show other-icons-show stooltip-gray stooltip\&quot; data-tooltip-pos=\&quot;top-center\&quot; style=\&quot;display:none;\&quot;&gt;&lt;img class=\&quot;icon-checkbox\&quot; src=\&quot;/wp-content/uploads/images/glyphs/checkbox_empty.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/strengths.png\&quot;&gt;Strengths &lt;img src=\&quot;/wp-content/uploads/images/glyphs/intensities.png\&quot;&gt;Intensities &lt;br class=\&quot;visible-xs-block button-linebreak\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/challenges.png\&quot;&gt;Challenges&lt;/span&gt;\';\r\n
          \r\n
              $calendarPrintView .= \'&lt;/div&gt;&lt;/div&gt;\';\r\n
          \r\n
              $calendarPrintViewExtra = \&quot;\r\n
                  &lt;script type=\'text/javascript\'&gt;\r\n
                    jQuery(document).ready( function() {\r\n
          \r\n
                      jQuery(\'.short-term-show\').on( \'click\', function() {\r\n
                        jQuery(\'.printview-short-influence\').show();\r\n
                        jQuery(\'.short-term-show\').hide();\r\n
                        jQuery(\'.short-term-hide\').show();\r\n
                        jQuery(\'.career-icons-hide\').show();\r\n
                        jQuery(\'.career-icons-show\').hide();\r\n
                        jQuery(\'.career-category-temp\').addClass(\'career-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'career-category-temp\');\r\n
                        jQuery(\'.career-icon\').show();\r\n
                        jQuery(\'.communication-icons-hide\').show();\r\n
                        jQuery(\'.communication-icons-show\').hide();\r\n
                        jQuery(\'.communication-category-temp\').addClass(\'communication-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'communication-category-temp\');\r\n
                        jQuery(\'.communication-icon\').show();\r\n
                        jQuery(\'.diet-icons-hide\').show();\r\n
                        jQuery(\'.diet-icons-show\').hide();\r\n
                        jQuery(\'.diet-category-temp\').addClass(\'diet-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'diet-category-temp\');\r\n
                        jQuery(\'.diet-icon\').show();\r\n
                        jQuery(\'.money-icons-hide\').show();\r\n
                        jQuery(\'.money-icons-show\').hide();\r\n
                        jQuery(\'.money-category-temp\').addClass(\'money-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'money-category-temp\');\r\n
                        jQuery(\'.money-icon\').show();\r\n
                        jQuery(\'.romance-icons-hide\').show();\r\n
                        jQuery(\'.romance-icons-show\').hide();\r\n
                        jQuery(\'.romantic-category-temp\').addClass(\'romantic-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'romantic-category-temp\');\r\n
                        jQuery(\'.romantic-icon\').show();\r\n
                        jQuery(\'.traveling-icons-hide\').show();\r\n
                        jQuery(\'.traveling-icons-show\').hide();\r\n
                        jQuery(\'.traveling-category-temp\').addClass(\'traveling-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'traveling-category-temp\');\r\n
                        jQuery(\'.traveling-icon\').show();\r\n
                      });\r\n
          \r\n
                      jQuery(\'.short-term-hide\').on( \'click\', function() {\r\n
                        jQuery(\'.printview-short-influence\').hide();\r\n
                        jQuery(\'.short-term-hide\').hide();\r\n
                        jQuery(\'.short-term-show\').show();\r\n
                        jQuery(\'.career-icons-hide\').hide();\r\n
                        jQuery(\'.career-icons-show\').show();\r\n
                        jQuery(\'.career-category\').addClass(\'career-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'career-category\');\r\n
                        jQuery(\'.career-icon\').hide();\r\n
                        jQuery(\'.communication-icons-hide\').hide();\r\n
                        jQuery(\'.communication-icons-show\').show();\r\n
                        jQuery(\'.communication-category\').addClass(\'communication-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'communication-category\');\r\n
                        jQuery(\'.communication-icon\').hide();\r\n
                        jQuery(\'.diet-icons-hide\').hide();\r\n
                        jQuery(\'.diet-icons-show\').show();\r\n
                        jQuery(\'.diet-category\').addClass(\'diet-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'diet-category\');\r\n
                        jQuery(\'.diet-icon\').hide();\r\n
                        jQuery(\'.money-icons-hide\').hide();\r\n
                        jQuery(\'.money-icons-show\').show();\r\n
                        jQuery(\'.money-category\').addClass(\'money-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'money-category\');\r\n
                        jQuery(\'.money-icon\').hide();\r\n
                        jQuery(\'.romance-icons-hide\').hide();\r\n
                        jQuery(\'.romance-icons-show\').show();\r\n
                        jQuery(\'.romantic-category\').addClass(\'romantic-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'romantic-category\');\r\n
                        jQuery(\'.romantic-icon\').hide();\r\n
                        jQuery(\'.traveling-icons-hide\').hide();\r\n
                        jQuery(\'.traveling-icons-show\').show();\r\n
                        jQuery(\'.traveling-category\').addClass(\'traveling-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'traveling-category\');\r\n
                        jQuery(\'.traveling-icon\').hide();\r\n
                      });\r\n
          \r\n
                      jQuery(\'.long-term-show\').on( \'click\', function() {\r\n
                        jQuery(\'.printview-long-influence\').show();\r\n
                        jQuery(\'.long-term-show\').hide();\r\n
                        jQuery(\'.long-term-hide\').show();\r\n
                        jQuery(\'.other-category-temp\').addClass(\'other-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'other-category-temp\');\r\n
                        jQuery(\'.other-icons-hide\').show();\r\n
                        jQuery(\'.other-icons-show\').hide();\r\n
                      });\r\n
          \r\n
                      jQuery(\'.long-term-hide\').on( \'click\', function() {\r\n
                        jQuery(\'.printview-long-influence\').hide();\r\n
                        jQuery(\'.long-term-hide\').hide();\r\n
                        jQuery(\'.long-term-show\').show();\r\n
                        jQuery(\'.other-icon\').hide();\r\n
                        jQuery(\'.other-category\').addClass(\'other-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'other-category\');\r\n
                        jQuery(\'.other-icons-hide\').hide();\r\n
                        jQuery(\'.other-icons-show\').show();\r\n
                      });\r\n
          \r\n
                      jQuery(\'.career-icons-hide\').on( \'click\', function() {\r\n
                        jQuery(\'.career-icon\').hide();\r\n
                        jQuery(\'.career-category\').addClass(\'career-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'career-category\');\r\n
                        jQuery(\'.career-icons-hide\').hide();\r\n
                        jQuery(\'.career-icons-show\').show();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.career-icons-show\').on( \'click\', function() {\r\n
                        jQuery(\'.printview-short-influence\').show();\r\n
                        jQuery(\'.short-term-show\').hide();\r\n
                        jQuery(\'.short-term-hide\').show();\r\n
                        jQuery(\'.career-icon\').show();\r\n
                        jQuery(\'.career-category-temp\').addClass(\'career-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'career-category-temp\');\r\n
                        jQuery(\'.career-icons-hide\').show();\r\n
                        jQuery(\'.career-icons-show\').hide();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.communication-icons-hide\').on( \'click\', function() {\r\n
                        jQuery(\'.communication-icon\').hide();\r\n
                        jQuery(\'.communication-category\').addClass(\'communication-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'communication-category\');\r\n
                        jQuery(\'.communication-icons-hide\').hide();\r\n
                        jQuery(\'.communication-icons-show\').show();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.communication-icons-show\').on( \'click\', function() {\r\n
                        jQuery(\'.printview-short-influence\').show();\r\n
                        jQuery(\'.short-term-show\').hide();\r\n
                        jQuery(\'.short-term-hide\').show();\r\n
                        jQuery(\'.communication-icon\').show();\r\n
                        jQuery(\'.communication-category-temp\').addClass(\'communication-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'communication-category-temp\');\r\n
                        jQuery(\'.communication-icons-hide\').show();\r\n
                        jQuery(\'.communication-icons-show\').hide();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.diet-icons-hide\').on( \'click\', function() {\r\n
                        jQuery(\'.diet-icon\').hide();\r\n
                        jQuery(\'.diet-category\').addClass(\'diet-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'diet-category\');\r\n
                        jQuery(\'.diet-icons-hide\').hide();\r\n
                        jQuery(\'.diet-icons-show\').show();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.diet-icons-show\').on( \'click\', function() {\r\n
                        jQuery(\'.printview-short-influence\').show();\r\n
                        jQuery(\'.short-term-show\').hide();\r\n
                        jQuery(\'.short-term-hide\').show();\r\n
                        jQuery(\'.diet-icon\').show();\r\n
                        jQuery(\'.diet-category-temp\').addClass(\'diet-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'diet-category-temp\');\r\n
                        jQuery(\'.diet-icons-hide\').show();\r\n
                        jQuery(\'.diet-icons-show\').hide();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.money-icons-hide\').on( \'click\', function() {\r\n
                        jQuery(\'.money-icon\').hide();\r\n
                        jQuery(\'.money-category\').addClass(\'money-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'money-category\');\r\n
                        jQuery(\'.money-icons-hide\').hide();\r\n
                        jQuery(\'.money-icons-show\').show();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.money-icons-show\').on( \'click\', function() {\r\n
                        jQuery(\'.printview-short-influence\').show();\r\n
                        jQuery(\'.short-term-show\').hide();\r\n
                        jQuery(\'.short-term-hide\').show();\r\n
                        jQuery(\'.money-icon\').show();\r\n
                        jQuery(\'.money-category-temp\').addClass(\'money-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'money-category-temp\');\r\n
                        jQuery(\'.money-icons-hide\').show();\r\n
                        jQuery(\'.money-icons-show\').hide();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.romance-icons-hide\').on( \'click\', function() {\r\n
                        jQuery(\'.romantic-icon\').hide();\r\n
                        jQuery(\'.romantic-category\').addClass(\'romantic-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'romantic-category\');\r\n
                        jQuery(\'.romance-icons-hide\').hide();\r\n
                        jQuery(\'.romance-icons-show\').show();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.romance-icons-show\').on( \'click\', function() {\r\n
                        jQuery(\'.printview-short-influence\').show();\r\n
                        jQuery(\'.short-term-show\').hide();\r\n
                        jQuery(\'.short-term-hide\').show();\r\n
                        jQuery(\'.romantic-icon\').show();\r\n
                        jQuery(\'.romantic-category-temp\').addClass(\'romantic-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'romantic-category-temp\');\r\n
                        jQuery(\'.romance-icons-hide\').show();\r\n
                        jQuery(\'.romance-icons-show\').hide();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.traveling-icons-hide\').on( \'click\', function() {\r\n
                        jQuery(\'.traveling-icon\').hide();\r\n
                        jQuery(\'.traveling-category\').addClass(\'traveling-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'traveling-category\');\r\n
                        jQuery(\'.traveling-icons-hide\').hide();\r\n
                        jQuery(\'.traveling-icons-show\').show();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.traveling-icons-show\').on( \'click\', function() {\r\n
                        jQuery(\'.printview-short-influence\').show();\r\n
                        jQuery(\'.short-term-show\').hide();\r\n
                        jQuery(\'.short-term-hide\').show();\r\n
                        jQuery(\'.traveling-icon\').show();\r\n
                        jQuery(\'.traveling-category-temp\').addClass(\'traveling-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'traveling-category-temp\');\r\n
                        jQuery(\'.traveling-icons-hide\').show();\r\n
                        jQuery(\'.traveling-icons-show\').hide();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.other-icons-hide\').on( \'click\', function() {\r\n
                        jQuery(\'.other-icon\').hide();\r\n
                        jQuery(\'.other-category\').addClass(\'other-category-temp\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'other-category\');\r\n
                        jQuery(\'.other-icons-hide\').hide();\r\n
                        jQuery(\'.other-icons-show\').show();\r\n
                        jQuery(\'.printview-long-influence\').hide();\r\n
                        jQuery(\'.long-term-hide\').hide();\r\n
                        jQuery(\'.long-term-show\').show();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                      jQuery(\'.other-icons-show\').on( \'click\', function() {\r\n
                        jQuery(\'.other-icon\').show();\r\n
                        jQuery(\'.other-category-temp\').addClass(\'other-category\');\r\n
                        jQuery(\'.influences-wrapper\').removeClass(\'other-category-temp\');\r\n
                        jQuery(\'.other-icons-hide\').show();\r\n
                        jQuery(\'.other-icons-show\').hide();\r\n
                        jQuery(\'.short-influences-wrapper.other-category\').parent().show();\r\n
                  jQuery(\'.influences\').each(function(){\r\n
                  var divHeight = jQuery(this).height();\r\n
                    if ( divHeight &lt; 20 ) { jQuery(this).hide(); }\r\n
                  });              \r\n
                      });\r\n
          \r\n
                    });\r\n
                  &lt;/script&gt;\&quot;;\r\n
          \r\n
            }\r\n
          \r\n
          \r\n
          \r\n
          \r\n
          } else {}\r\n
          \r\n
          // ------------------------------\r\n
          // \&quot;Moon in Sign\&quot; content\r\n
          // ------------------------------\r\n
          \r\n
          $moonInSignToday_cacheKey = \'moonInSignToday_\'.$dateOfBirthString.\'_\'.$todaysDateUnix;\r\n
          \r\n
          $moonInSignTodayArray = get_transient( $moonInSignToday_cacheKey );\r\n
          \r\n
          if ( false === $celebBirthdayArray ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $combination1_name = $moonInSignTodayArray[0];\r\n
            $combination1_name_trimmed = $moonInSignTodayArray[1];\r\n
            $combination1_sign = $moonInSignTodayArray[2];\r\n
            $combination1_sign_trimmed = $moonInSignTodayArray[3];\r\n
            $retro_symbol = $moonInSignTodayArray[4];\r\n
            $combination1do = $moonInSignTodayArray[5];\r\n
            $combination1dont = $moonInSignTodayArray[6];\r\n
            $combination1_short_content = $moonInSignTodayArray[7];\r\n
            $combination1_long_content = $moonInSignTodayArray[8];\r\n
          \r\n
            $moonInSignTomorrow_cacheKey = \'moonInSignTomorrow_\'.$dateOfBirthString.\'_\'.$tomorrowsDateUnix;\r\n
          \r\n
            $moonInSignTomorrowArray = get_transient( $moonInSignTomorrow_cacheKey );\r\n
            $combination1_sign_tomorrow = $moonInSignTomorrowArray[0];\r\n
            $combination1_sign_tomorrow_trimmed = $moonInSignTomorrowArray[2];\r\n
          \r\n
            $calendarPrintView .= \'&lt;h2 class=\&quot;printview-section-title\&quot;&gt;Moon in Sign&lt;/h2&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-section printview-mooninsign\&quot;&gt;\';\r\n
          \r\n
            if ( $moonInSignTodayArray[2] == $moonInSignTomorrowArray[0] ) {\r\n
          \r\n
              $calendarPrintView .= \'&lt;h3&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination1_name_trimmed.\'.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/\' . $combination1_sign_trimmed . \'.png\&quot; /&gt;\'.$retro_symbol.\'\'.$combination1_name.\' in \'.$combination1_sign.\'&lt;/h3&gt;\';\r\n
          \r\n
            } else {\r\n
          \r\n
              $calendarPrintView .= \'&lt;h3&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination1_name_trimmed.\'.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/\' . $combination1_sign_trimmed . \'.png\&quot; /&gt;\'.$retro_symbol.\'&lt;img src=\&quot;/wp-content/uploads/images/glyphs/rightarrow.png\&quot; /&gt;&lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination1_sign_tomorrow_trimmed.\'.png\&quot; /&gt;\'.$combination1_name.\' in \'.$combination1_sign.\'&lt;/h3&gt;\';\r\n
          \r\n
            }\r\n
          \r\n
            $calendarPrintView .= \'&lt;p&gt;\'.$combination1do.\'&lt;/p&gt;\';\r\n
            $calendarPrintView .= \'&lt;p&gt;\'.$combination1dont.\'&lt;/p&gt;\';\r\n
            $calendarPrintView .= \'&lt;p&gt;\'.$combination1_short_content.\'&lt;/p&gt;\';\r\n
            $calendarPrintView .= \'&lt;p&gt;\'.$combination1_long_content.\'&lt;/p&gt;\';\r\n
            $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          // ------------------------------\r\n
          // \&quot;Daily aspects\&quot; content\r\n
          // ------------------------------\r\n
          \r\n
          $dailyAspects1_cacheKey = \'dailyAspects1_\'.$todaysDateUnix;\r\n
          \r\n
          $dailyAspects1 = get_transient( $dailyAspects1_cacheKey );\r\n
          \r\n
          if ( false === $dailyAspects1 ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $combination1_planet1 = $dailyAspects1[0];\r\n
            $combination1_planet1_lower =  $dailyAspects1[1];\r\n
            $combination1_aspect =  $dailyAspects1[2];\r\n
            $combination1_aspect_lower =  $dailyAspects1[3];\r\n
            $combination1_planet2 =  $dailyAspects1[4];\r\n
            $combination1_planet2_lower =  $dailyAspects1[5];\r\n
            $todaysAspects1 =  $dailyAspects1[6];\r\n
          \r\n
            $calendarPrintView .= \'&lt;h2 class=\&quot;printview-section-title\&quot;&gt;Aspects&lt;/h2&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-section printview-dailyaspect\&quot;&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;h3&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination1_planet1_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination1_aspect_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination1_planet2_lower.\'.png\&quot; /&gt;\r\n
                              \'. $combination1_planet1 . \' \' . $combination1_aspect . \' \' . $combination1_planet2 .\'\r\n
                            &lt;/h3&gt;\';\r\n
          \r\n
              $calendarPrintView .= $todaysAspects1;\r\n
          \r\n
            $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          $dailyAspects2_cacheKey = \'dailyAspects2_\'.$todaysDateUnix;\r\n
          \r\n
          $dailyAspects2 = get_transient( $dailyAspects2_cacheKey );\r\n
          \r\n
          if ( false === $dailyAspects2 ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $combination2_planet1 = $dailyAspects2[0];\r\n
            $combination2_planet1_lower =  $dailyAspects2[1];\r\n
            $combination2_aspect =  $dailyAspects2[2];\r\n
            $combination2_aspect_lower =  $dailyAspects2[3];\r\n
            $combination2_planet2 =  $dailyAspects2[4];\r\n
            $combination2_planet2_lower =  $dailyAspects2[5];\r\n
            $todaysAspects2 =  $dailyAspects2[6];\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-section printview-dailyaspect\&quot;&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;h3&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination2_planet1_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination2_aspect_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination2_planet2_lower.\'.png\&quot; /&gt;\r\n
                              \'. $combination2_planet1 . \' \' . $combination2_aspect . \' \' . $combination2_planet2 .\'\r\n
                            &lt;/h3&gt;\';\r\n
          \r\n
              $calendarPrintView .= $todaysAspects2;\r\n
          \r\n
              $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          $dailyAspects3_cacheKey = \'dailyAspects3_\'.$todaysDateUnix;\r\n
          \r\n
          $dailyAspects3 = get_transient( $dailyAspects3_cacheKey );\r\n
          \r\n
          if ( false === $dailyAspects3 ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $combination3_planet1 = $dailyAspects3[0];\r\n
            $combination3_planet1_lower =  $dailyAspects3[1];\r\n
            $combination3_aspect =  $dailyAspects3[2];\r\n
            $combination3_aspect_lower =  $dailyAspects3[3];\r\n
            $combination3_planet2 =  $dailyAspects3[4];\r\n
            $combination3_planet2_lower =  $dailyAspects3[5];\r\n
            $todaysAspects3 =  $dailyAspects3[6];\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-section printview-dailyaspect\&quot;&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;h3&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination3_planet1_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination3_aspect_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination3_planet2_lower.\'.png\&quot; /&gt;\r\n
                              \'. $combination3_planet1 . \' \' . $combination3_aspect . \' \' . $combination3_planet2 .\'\r\n
                            &lt;/h3&gt;\';\r\n
          \r\n
              $calendarPrintView .= $todaysAspects3;\r\n
          \r\n
              $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          $dailyAspects4_cacheKey = \'dailyAspects4_\'.$todaysDateUnix;\r\n
          \r\n
          $dailyAspects4 = get_transient( $dailyAspects4_cacheKey );\r\n
          \r\n
          if ( false === $dailyAspects4 ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $combination4_planet1 = $dailyAspects4[0];\r\n
            $combination4_planet1_lower =  $dailyAspects4[1];\r\n
            $combination4_aspect =  $dailyAspects4[2];\r\n
            $combination4_aspect_lower =  $dailyAspects4[3];\r\n
            $combination4_planet2 =  $dailyAspects4[4];\r\n
            $combination4_planet2_lower =  $dailyAspects4[5];\r\n
            $todaysAspects4 =  $dailyAspects4[6];\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-section printview-dailyaspect\&quot;&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;h3&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination4_planet1_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination4_aspect_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination4_planet2_lower.\'.png\&quot; /&gt;\r\n
                              \'. $combination4_planet1 . \' \' . $combination4_aspect . \' \' . $combination4_planet2 .\'\r\n
                            &lt;/h3&gt;\';\r\n
          \r\n
              $calendarPrintView .= $todaysAspects4;\r\n
          \r\n
              $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          $dailyAspects5_cacheKey = \'dailyAspects5_\'.$todaysDateUnix;\r\n
          \r\n
          $dailyAspects5 = get_transient( $dailyAspects5_cacheKey );\r\n
          \r\n
          if ( false === $dailyAspects5 ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $combination5_planet1 = $dailyAspects5[0];\r\n
            $combination5_planet1_lower =  $dailyAspects5[1];\r\n
            $combination5_aspect =  $dailyAspects5[2];\r\n
            $combination5_aspect_lower =  $dailyAspects5[3];\r\n
            $combination5_planet2 =  $dailyAspects5[4];\r\n
            $combination5_planet2_lower =  $dailyAspects5[5];\r\n
            $todaysAspects5 =  $dailyAspects5[6];\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-section printview-dailyaspect\&quot;&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;h3&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination5_planet1_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination5_aspect_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination5_planet2_lower.\'.png\&quot; /&gt;\r\n
                              \'. $combination5_planet1 . \' \' . $combination5_aspect . \' \' . $combination5_planet2 .\'\r\n
                            &lt;/h3&gt;\';\r\n
          \r\n
              $calendarPrintView .= $todaysAspects5;\r\n
          \r\n
              $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          $dailyAspects6_cacheKey = \'dailyAspects6_\'.$todaysDateUnix;\r\n
          \r\n
          $dailyAspects6 = get_transient( $dailyAspects6_cacheKey );\r\n
          \r\n
          if ( false === $dailyAspects6 ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $combination6_planet1 = $dailyAspects6[0];\r\n
            $combination6_planet1_lower =  $dailyAspects6[1];\r\n
            $combination6_aspect =  $dailyAspects6[2];\r\n
            $combination6_aspect_lower =  $dailyAspects6[3];\r\n
            $combination6_planet2 =  $dailyAspects6[4];\r\n
            $combination6_planet2_lower =  $dailyAspects6[5];\r\n
            $todaysAspects6 =  $dailyAspects6[6];\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-section printview-dailyaspect\&quot;&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;h3&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination6_planet1_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination6_aspect_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination6_planet2_lower.\'.png\&quot; /&gt;\r\n
                              \'. $combination6_planet1 . \' \' . $combination6_aspect . \' \' . $combination6_planet2 .\'\r\n
                            &lt;/h3&gt;\';\r\n
          \r\n
              $calendarPrintView .= $todaysAspects6;\r\n
          \r\n
              $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          $dailyAspects7_cacheKey = \'dailyAspects7_\'.$todaysDateUnix;\r\n
          \r\n
          $dailyAspects7 = get_transient( $dailyAspects7_cacheKey );\r\n
          \r\n
          if ( false === $dailyAspects7 ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $combination7_planet1 = $dailyAspects7[0];\r\n
            $combination7_planet1_lower =  $dailyAspects7[1];\r\n
            $combination7_aspect =  $dailyAspects7[2];\r\n
            $combination7_aspect_lower =  $dailyAspects7[3];\r\n
            $combination7_planet2 =  $dailyAspects7[4];\r\n
            $combination7_planet2_lower =  $dailyAspects7[5];\r\n
            $todaysAspects7 =  $dailyAspects7[6];\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-section printview-dailyaspect\&quot;&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;h3&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination7_planet1_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination7_aspect_lower.\'.png\&quot; /&gt;\r\n
                              &lt;img src=\&quot;/wp-content/uploads/images/glyphs/\'.$combination7_planet2_lower.\'.png\&quot; /&gt;\r\n
                              \'. $combination7_planet1 . \' \' . $combination7_aspect . \' \' . $combination7_planet2 .\'\r\n
                            &lt;/h3&gt;\';\r\n
          \r\n
              $calendarPrintView .= $todaysAspects7;\r\n
          \r\n
              $calendarPrintView .= \'&lt;div&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          // ------------------------------\r\n
          // \&quot;Planet update posts\&quot; content\r\n
          // ------------------------------\r\n
          \r\n
          $planetUpdatePost1_cacheKey = \'planetUpdatePost1_\'.$todaysDateUnix;\r\n
          \r\n
          $planetUpdatePost1Array = get_transient( $planetUpdatePost1_cacheKey );\r\n
          \r\n
          if ( false === $planetUpdatePost1Array ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $post1Title = $planetUpdatePost1Array[0];\r\n
            $post1Link = $planetUpdatePost1Array[1];\r\n
            $post1Glyph1 = $planetUpdatePost1Array[2];\r\n
            $post1Glyph2 = $planetUpdatePost1Array[3];\r\n
            $post1Glyph3 = $planetUpdatePost1Array[4];\r\n
            $post1PublishDate = $planetUpdatePost1Array[5];\r\n
            $publishDate1Formatted = $planetUpdatePost1Array[6];\r\n
            $post1Content = apply_filters( \'the_content\', $planetUpdatePost1Array[7] );\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-section printview-planetupdates\&quot;&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;h3&gt;\'.$post1Glyph1.\'\'.$post1Glyph2.\'\'.$post1Glyph3.\'\'.$post1Title.\'&lt;/h3&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;div&gt;\'.$post1Content.\'&lt;/div&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
          }\r\n
          \r\n
          $planetUpdatePost2_cacheKey = \'planetUpdatePost2_\'.$todaysDateUnix;\r\n
          \r\n
          $planetUpdatePost2Array = get_transient( $planetUpdatePost2_cacheKey );\r\n
          \r\n
          if ( false === $planetUpdatePost2Array ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $post2Title = $planetUpdatePost2Array[0];\r\n
            $post2Link = $planetUpdatePost2Array[1];\r\n
            $post2Glyph1 = $planetUpdatePost2Array[2];\r\n
            $post2Glyph2 = $planetUpdatePost2Array[3];\r\n
            $post2Glyph3 = $planetUpdatePost2Array[4];\r\n
            $post2PublishDate = $planetUpdatePost2Array[5];\r\n
            $publishDate1Formatted = $planetUpdatePost2Array[6];\r\n
            $post2Content = apply_filters( \'the_content\', $planetUpdatePost2Array[7] );\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-section printview-planetupdates\&quot;&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;h3&gt;\'.$post2Glyph1.\'\'.$post2Glyph2.\'\'.$post2Glyph3.\'\'.$post2Title.\'&lt;/h3&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-planetupdates\&quot;&gt;\'.$post2Content.\'&lt;/div&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;/div&gt;\';\r\n
            \r\n
          }\r\n
          \r\n
          $planetUpdatePost3_cacheKey = \'planetUpdatePost3_\'.$todaysDateUnix;\r\n
          \r\n
          $planetUpdatePost3Array = get_transient( $planetUpdatePost3_cacheKey );\r\n
          \r\n
          if ( false === $planetUpdatePost3Array ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            $post3Title = $planetUpdatePost3Array[0];\r\n
            $post3Link = $planetUpdatePost3Array[1];\r\n
            $post3Glyph1 = $planetUpdatePost3Array[2];\r\n
            $post3Glyph2 = $planetUpdatePost3Array[3];\r\n
            $post3Glyph3 = $planetUpdatePost3Array[4];\r\n
            $post3PublishDate = $planetUpdatePost3Array[5];\r\n
            $publishDate1Formatted = $planetUpdatePost3Array[6];\r\n
            $post3Content = apply_filters( \'the_content\', $planetUpdatePost3Array[7] );\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-section printview-planetupdates\&quot;&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;h3&gt;\'.$post3Glyph1.\'\'.$post3Glyph2.\'\'.$post3Glyph3.\'\'.$post3Title.\'&lt;/h3&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;div class=\&quot;printview-planetupdates\&quot;&gt;\'.$post3Content.\'&lt;/div&gt;\';\r\n
          \r\n
            $calendarPrintView .= \'&lt;/div&gt;\';\r\n
            \r\n
          }\r\n
          \r\n
          // ------------------------------\r\n
          // \&quot;Key Influences\&quot; content\r\n
          // ------------------------------\r\n
          \r\n
          if ( $calType === \'paid\' ) {\r\n
          \r\n
            if ( false === $influencesArray ) {\r\n
          \r\n
            } else {\r\n
          \r\n
              $calendarPrintView .= \'&lt;h2 class=\&quot;printview-section-title\&quot;&gt;Your Transits&lt;/h2&gt;\';\r\n
          \r\n
              foreach ( $influencesArray as $influencesArrayItem ) {\r\n
          \r\n
                $influenceType = $influencesArrayItem[\'influence_type\'];\r\n
                $newTransit = $influencesArrayItem[\'new_transit\'];\r\n
                $currentDayUnix = $influencesArrayItem[\'currentday_unix\'];\r\n
                $dateStart = $influencesArrayItem[\'datestart\'];\r\n
                $dateStartFormatted = $influencesArrayItem[\'datestart_formatted\'];\r\n
                $dateStartUnix = $influencesArrayItem[\'datestart_unix\'];\r\n
                $dateEnd = $influencesArrayItem[\'dateend\'];\r\n
                $dateEndFormatted = $influencesArrayItem[\'dateend_formatted\'];\r\n
                $dateEndUnix = $influencesArrayItem[\'dateend_unix\'];\r\n
                $periodTerm = $influencesArrayItem[\'periodterm\'];\r\n
                $dateProgress = $influencesArrayItem[\'dateprogress\'];\r\n
                $dateProgressRemaining = 100 - $dateProgress;\r\n
                $firstPlanet = $influencesArrayItem[\'firstplanet\'];\r\n
                $firstPlanetIndex = $influencesArrayItem[\'firstplanetindex\'];\r\n
                $combinationAspect = $influencesArrayItem[\'combinationaspect\'];\r\n
                $secondPlanet = $influencesArrayItem[\'secondplanet\'];\r\n
                $planetAspectGlyphs = $influencesArrayItem[\'planetaspect_glyphs\'];\r\n
                $summary = $influencesArrayItem[\'summary\'];\r\n
                $summaryString = $influencesArrayItem[\'summarystring\'];\r\n
                $summaryStringCurrentDay = $influencesArrayItem[\'summarystring_currentday\'];\r\n
                $heading = $influencesArrayItem[\'heading\'];\r\n
                $text = $influencesArrayItem[\'text\'];\r\n
                $description = $influencesArrayItem[\'description\'];\r\n
                $categoryIcons = $influencesArrayItem[\'category_icons\'];\r\n
                $categoryClasses = $influencesArrayItem[\'category_classes\'];\r\n
          \r\n
          \r\n
                if ( ($firstPlanet == \'Sun\') || ($firstPlanet == \'Mercury\') || ($firstPlanet == \'Venus\') || ($firstPlanet == \'Mars\') ) {\r\n
          \r\n
                  $calendarPrintView .= \'&lt;div class=\&quot;printview-section influences printview-\'.$influenceType.\'\&quot;&gt;\';\r\n
          \r\n
                } else {\r\n
          \r\n
                  $calendarPrintView .= \'&lt;div class=\&quot;printview-section influences printview-\'.$influenceType.\'\&quot; style=\&quot;display: none;\&quot;&gt;\';\r\n
          \r\n
                }\r\n
          \r\n
                if ( ($firstPlanet == \'Sun\') || ($firstPlanet == \'Mercury\') || ($firstPlanet == \'Venus\') || ($firstPlanet == \'Mars\') ) {\r\n
          \r\n
                  $calendarPrintView .= \'&lt;div class=\&quot;influences-wrapper short-influences-wrapper \'.$categoryClasses.\'\&quot;&gt;\';\r\n
          \r\n
                } else {\r\n
          \r\n
                  $calendarPrintView .= \'&lt;div class=\&quot;influences-wrapper long-influences-wrapper \'.$categoryClasses.\'\&quot;&gt;\';\r\n
          \r\n
                }\r\n
          \r\n
                if ( ($firstPlanet == \'Sun\') || ($firstPlanet == \'Mercury\') || ($firstPlanet == \'Venus\') || ($firstPlanet == \'Mars\') ) {\r\n
          \r\n
                  $calendarPrintView .= \'&lt;div class=\&quot;influence-type\&quot;&gt;Short-term&lt;/div&gt;\';\r\n
          \r\n
                } else {\r\n
          \r\n
                  $calendarPrintView .= \'&lt;div class=\&quot;influence-type\&quot;&gt;Long-term&lt;/div&gt;\';\r\n
          \r\n
                }\r\n
          \r\n
          \r\n
                $calendarPrintView .= \'&lt;h3&gt;\'.$planetAspectGlyphs.\'\'.$summary.\': \'.$heading.\'&lt;/h3&gt;\';\r\n
          \r\n
                $calendarPrintView .= \'&lt;div class=\&quot;period-printview\&quot;&gt;\';\r\n
          \r\n
                if ( ($firstPlanet == \'Sun\') || ($firstPlanet == \'Mercury\') || ($firstPlanet == \'Venus\') || ($firstPlanet == \'Mars\') ) {\r\n
          \r\n
                  $calendarPrintView .= \'&lt;div&gt;\'.$periodTerm.\' (\'.$dateProgress.\'%)&lt;/div&gt;\';\r\n
          \r\n
                } else {\r\n
          \r\n
                  if ( (strpos($periodTerm, \'Longer\') !== false) || (strpos($periodTerm, \'From\') !== false) || (strpos($periodTerm, \'Up\') !== false) ) {\r\n
          \r\n
                    $calendarPrintView .= \'&lt;div&gt;\'.$periodTerm.\'&lt;/div&gt;\';\r\n
          \r\n
                  } else {\r\n
          \r\n
                    $calendarPrintView .= \'&lt;div&gt;\'.$periodTerm.\' (\'.$dateProgress.\'%)&lt;/div&gt;\';\r\n
          \r\n
                  }\r\n
          \r\n
                }\r\n
          \r\n
                $calendarPrintView .= \'&lt;div class=\&quot;progress progress-printview\&quot;&gt;&lt;div class=\&quot;bar\&quot; style=\&quot;width:\'.$dateProgress.\'%\&quot;&gt;&lt;/div&gt;&lt;div class=\&quot;bar bar-remaining\&quot; style=\&quot;width:\'.$dateProgressRemaining.\'%\&quot;&gt;&lt;/div&gt;&lt;/div&gt;\';\r\n
          \r\n
                $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
                $calendarPrintView .= \'&lt;div class=\&quot;cal-category-icons\&quot;&gt;\'.$categoryIcons.\'&lt;/div&gt;\';\r\n
          \r\n
                $calendarPrintView .= \'&lt;div class=\&quot;influences-content\&quot;&gt;\';\r\n
          \r\n
                $calendarPrintView .= \'&lt;p&gt;\'.$text.\'&lt;/p&gt;\';\r\n
          \r\n
                $calendarPrintView .= \'&lt;p&gt;\'.$description.\'&lt;/p&gt;\';\r\n
          \r\n
                $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
                $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
                $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
              }\r\n
          \r\n
            }\r\n
          \r\n
          } else {}\r\n
          \r\n
          $calendarPrintView .= \'&lt;/div&gt;\';\r\n
          \r\n
          if ( false === $celebBirthdayArray ) {\r\n
          \r\n
          } else {\r\n
          \r\n
            if ( $calType === \'free\' ) {\r\n
          \r\n
              $upsellImage = \'&lt;img class=\&quot;upsell-img\&quot; src=\&quot;/wp-content/uploads/images/screenshots/kelli_fox_the_astrologer_personalized_forecast_calendar_sm.png\&quot; /&gt;\';\r\n
          \r\n
              $personalTransit = \'&lt;img class=\&quot;transit-ss\&quot; src=\&quot;/wp-content/uploads/images/screenshots/kelli_fox_the_astrologer_member_forecast_calendar_transits_personalized_shortterm.png\&quot; /&gt;\';\r\n
          \r\n
              $upsell = \'&lt;div id=\&quot;upgrade\&quot; class=\&quot;row calendar-upsell\&quot;&gt;\';\r\n
              $upsell .= \'&lt;div class=\&quot;col-lg-12\&quot;&gt;\';\r\n
              $upsell .= \'&lt;h2 class=\&quot;printview-section-title\&quot;&gt;Upgrade to a Personalized Calendar&lt;/h2&gt;\';\r\n
              $upsell .= \'&lt;div class=\&quot;printview-section\&quot;&gt;\';\r\n
              $upsell .= \'&lt;p&gt;\'.$upsellImage.\'The personalized Forecast Calendar is your very own unique almanac that applies the current planetary influences to your natal or birth planets each and every day! This stellar phenomenon are what astrologers call transits, but the difference is that your transits are displayed in a familiar calendar format that\\\'s only for you.&lt;/p&gt;\';\r\n
              $upsell .= \'&lt;p&gt;The way that the transiting planets interact with your natal planets creates focal points of energy at various points in time and for multiple durations. Your transits correlate to assorted areas of your life that are highlighted by the category icons within the Forecast Calendar. These icons represent auspicious timing for your &lt;img class=\&quot;inline-icon\&quot; src=\&quot;/wp-content/uploads/images/glyphs/career.png\&quot;&gt; career, when to &lt;img class=\&quot;inline-icon\&quot; src=\&quot;/wp-content/uploads/images/glyphs/communication.png\&quot;&gt; speak up, make a presentation or communicate, the best time to focus on &lt;img class=\&quot;inline-icon\&quot; src=\&quot;/wp-content/uploads/images/glyphs/diet.png\&quot;&gt; fitness, take charge of &lt;img class=\&quot;inline-icon\&quot; src=\&quot;/wp-content/uploads/images/glyphs/money.png\&quot;&gt; money matters, rekindle or find new &lt;img class=\&quot;inline-icon\&quot; src=\&quot;/wp-content/uploads/images/glyphs/romance.png\&quot;&gt; romance, host a party as well as advantageous timing for &lt;img class=\&quot;inline-icon\&quot; src=\&quot;/wp-content/uploads/images/glyphs/traveling.png\&quot;&gt; travel. Every one of your transits listed in the Forecast Calendar has an associated category icon which means your customized astrology has never before been as easy to understand or as simple to apply to your life.&lt;/p&gt;\';\r\n
              $upsell .= $personalTransit;\r\n
              $upsell .= \'&lt;p&gt;For thousands of years, humankind have been using calendars and clocks to manage and schedule our time. It\\\'s how we keep our lives and routines efficient and functioning.  Now, imagine being able to use these ancient cosmic energies to your benefit. It\\\'s like the secrets of the Universe are suddenly revealed via a familiar format exclusively for you. Use the Forecast Calendar for insight and guidance, help you make better informed decisions, anticipate problems before they occur and give you tools to cope with changes and life\\\'s transitions. Best of all, the Forecast Calendar offers comfort in knowing there are wonderful days ahead.&lt;/p&gt;\';\r\n
          \r\n
              $upsell .= \'&lt;h3&gt;Get the Personalized Calendar Now&lt;/h3&gt;\';\r\n
          \r\n
              $upsell .= \'&lt;p&gt;You can select your made-to-order online calendar for any time period you prefer. View the calendar one to twelve months ahead from the date you start/renew your subscription. All yours just a few clicks away at:&lt;/p&gt;&lt;p style=\&quot;text-align:center;font-size:1.25em;\&quot;&gt;&lt;strong&gt;&lt;span class=\&quot;hidden-xs\&quot;&gt;https://new.theastrologer.com/pfc/&lt;/span&gt;&lt;span class=\&quot;visible-xs-block\&quot;&gt;&lt;a href=\&quot;https://new.theastrologer.com/pfc/\&quot;&gt;https://new.theastrologer.com/pfc/&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;\'; \r\n
          \r\n
              $upsell .= \'&lt;/div&gt;\';\r\n
              $upsell .= \'&lt;/div&gt;\';\r\n
              $upsell .= \'&lt;/div&gt;\';\r\n
          \r\n
            } else {}\r\n
          \r\n
          }\r\n
          \r\n
          echo $calendarPrintView;\r\n
          \r\n
          if ( $calType === \'paid\' ) {\r\n
          \r\n
            echo $calendarPrintViewExtra;\r\n
          \r\n
          } else {\r\n
          \r\n
            echo $upsell;\r\n
          \r\n
          }\r\n
          \r\n
          // echo \'&lt;h3&gt;Calendar date: \'.$calendarDate.\'&lt;/h3&gt;\';\r\n
          \r\n
          // echo \'&lt;p&gt;\'.$dailyMoonphase_cacheKey.\'&lt;/p&gt;\';\r\n
          // echo \'&lt;pre&gt;\';\r\n
          // print_r($dailyMoonphaseArray);\r\n
          // echo \'&lt;/pre&gt;\';\r\n
          \r\n
          // echo \'&lt;p&gt;\'.$celebBirthday_cacheKey.\'&lt;/p&gt;\';\r\n
          // echo \'&lt;pre&gt;\';\r\n
          // print_r($celebBirthdayArray);\r\n
          // echo \'&lt;/pre&gt;\';\r\n
          \r\n
          // echo \'&lt;p&gt;\'.$moonInSignToday_cacheKey.\'&lt;/p&gt;\';\r\n
          // echo \'&lt;pre&gt;\';\r\n
          // print_r($moonInSignTodayArray);\r\n
          // echo \'&lt;/pre&gt;\';\r\n
          \r\n
          // echo \'&lt;p&gt;\'.$moonInSignTomorrow_cacheKey.\'&lt;/p&gt;\';\r\n
          // echo \'&lt;pre&gt;\';\r\n
          // print_r($moonInSignTomorrowArray);\r\n
          // echo \'&lt;/pre&gt;\';\r\n
          \r\n
          // echo \'&lt;p&gt;\'.$dailyAspects1_cacheKey.\'&lt;/p&gt;\';\r\n
          // echo \'&lt;pre&gt;\';\r\n
          // print_r($dailyAspects1);\r\n
          // echo \'&lt;/pre&gt;\';\r\n
          \r\n
          // echo \'&lt;p&gt;\'.$planetUpdatePost1_cacheKey.\'&lt;/p&gt;\';\r\n
          // echo \'&lt;pre&gt;\';\r\n
          // print_r($planetUpdatePost1Array);\r\n
          // echo \'&lt;/pre&gt;\';\r\n
          \r\n
          // echo \'&lt;p&gt;\'.$influences_cacheKey.\'&lt;/p&gt;\';\r\n
          // echo \'&lt;pre&gt;\';\r\n
          // print_r($influencesArray);\r\n
          // echo \'&lt;/pre&gt;\';
          """
        "custom_id" => "forecast-calendar-print-view"
        "type" => "php"
        "id" => 384
      ]
      "content" => """
        date_default_timezone_set('UTC');\r\n
        \r\n
        echo do_shortcode( "[contentblock id=long-term-vcal-data]" );\r\n
        \r\n
        // SHORTCODE PARAMETERS\r\n
        // 'free' or 'paid'\r\n
        $calType = paid;\r\n
        \r\n
        // =========================================\r\n
        // GET PARAMETERS / URL QUERY STRINGS\r\n
        \r\n
        $getBD = htmlspecialchars($_POST['BD']);\r\n
        \r\n
        $getPlusMonth = htmlspecialchars($_POST['PM']);\r\n
        \r\n
        if ( !empty($getPlusMonth) ) {\r\n
        \r\n
        } else {\r\n
          \r\n
          $getPlusMonth = 0;  \r\n
        \r\n
        }\r\n
        \r\n
        $getUtcOffsetRaw= htmlspecialchars($_POST['UTC']);\r\n
        \r\n
        $getUtcOffset = substr($getUtcOffsetRaw, 0, -1);\r\n
        \r\n
        $calendarDate = htmlspecialchars($_POST['DATE']);\r\n
        \r\n
        // echo $getBD.' | '.$getUtcOffsetRaw.' | '.$getPlusMonth.' | '.$calendarDate;\r\n
        \r\n
        // USER META FIELDS\r\n
        \r\n
        $userInfo = wp_get_current_user();\r\n
        \r\n
        // User first and last names\r\n
        \r\n
        $userFullName = $userInfo->user_firstname.' '.$userInfo->user_lastname;\r\n
        \r\n
        // Get Date of Birth from WP user meta via Toolset\r\n
        \r\n
        $dateOfBirth = types_render_usermeta( "date-of-birth", array( "user_current" => true ) );\r\n
        \r\n
        $dateOfBirthString = date("m/d/Y", strtotime($dateOfBirth));\r\n
        $dateOfBirthString = str_replace("/","",$dateOfBirthString); \r\n
          \r\n
        $userBirthdayMonth = date("n",strtotime($dateOfBirth));\r\n
        $userBirthdayDay = date("j",strtotime($dateOfBirth));\r\n
        \r\n
        if ( !empty( $getBD ) ) {\r\n
        \r\n
          $dateOfBirthUnix = $getBD;\r\n
          \r\n
        } else {\r\n
          \r\n
          $dateOfBirthUnix = strtotime($dateOfBirth);\r\n
          $dateOfBirthUnix = substr($dateOfBirthUnix, 0, -2);\r\n
          $dateOfBirthUnix = str_replace("-","b",$dateOfBirthUnix);\r\n
        \r\n
        }\r\n
        \r\n
        // Get UTC offset from WP user meta via Toolset\r\n
        \r\n
        $userUtcOffsetRaw = types_render_usermeta( "utc-offset", array( "user_current" => true, "output" => "raw" ) );\r\n
        \r\n
        // Trim last character\r\n
        $userUtcOffset = substr($userUtcOffsetRaw, 0, -1);\r\n
        \r\n
        // Prioritize UTC offset defined in URL query string over user's chosen offset\r\n
        \r\n
        if ( !empty($getUtcOffsetRaw) ) {\r\n
        \r\n
        $utcOffset = $getUtcOffset;\r\n
        \r\n
        } else {\r\n
        \r\n
        $utcOffset = $userUtcOffset;\r\n
        \r\n
        }\r\n
        \r\n
        // Get UTC offset in HH:MM\r\n
        \r\n
        if ( $utcOffset == '-12' ) { $utcOffsetString = '-12:00'; } \r\n
        elseif ( $utcOffset == '-12' ) { $utcOffsetString = '-12:00'; }\r\n
        elseif ( $utcOffset == '-11' ) { $utcOffsetString = '-11:00'; }\r\n
        elseif ( $utcOffset == '-10' ) { $utcOffsetString = '-10:00'; }\r\n
        elseif ( $utcOffset == '-9.5' ) { $utcOffsetString = '-09:30'; }\r\n
        elseif ( $utcOffset == '-9' ) { $utcOffsetString = '-09:00'; }\r\n
        elseif ( $utcOffset == '-8' ) { $utcOffsetString = '-08:00'; }\r\n
        elseif ( $utcOffset == '-7' ) { $utcOffsetString = '-07:00'; }\r\n
        elseif ( $utcOffset == '-6' ) { $utcOffsetString = '-06:00'; }\r\n
        elseif ( $utcOffset == '-5' ) { $utcOffsetString = '-05:00'; }\r\n
        elseif ( $utcOffset == '-4' ) { $utcOffsetString = '-04:00'; }\r\n
        elseif ( $utcOffset == '-3.5' ) { $utcOffsetString = '-03:30'; }\r\n
        elseif ( $utcOffset == '-3' ) { $utcOffsetString = '-03:00'; }\r\n
        elseif ( $utcOffset == '-2' ) { $utcOffsetString = '-02:00'; }\r\n
        elseif ( $utcOffset == '-1' ) { $utcOffsetString = '-01:00'; }\r\n
        elseif ( $utcOffset == '0' ) { $utcOffsetString = '±00:00'; }\r\n
        elseif ( $utcOffset == '1' ) { $utcOffsetString = '+01:00'; }\r\n
        elseif ( $utcOffset == '2' ) { $utcOffsetString = '+02:00'; }\r\n
        elseif ( $utcOffset == '3' ) { $utcOffsetString = '+03:00'; }\r\n
        elseif ( $utcOffset == '3.5' ) { $utcOffsetString = '+03:30'; }\r\n
        elseif ( $utcOffset == '4' ) { $utcOffsetString = '+04:00'; }\r\n
        elseif ( $utcOffset == '4.5' ) { $utcOffsetString = '+04:30'; }\r\n
        elseif ( $utcOffset == '5' ) { $utcOffsetString = '+05:00'; }\r\n
        elseif ( $utcOffset == '5.5' ) { $utcOffsetString = '+05:30'; }\r\n
        elseif ( $utcOffset == '5.75' ) { $utcOffsetString = '+05:45'; }\r\n
        elseif ( $utcOffset == '6' ) { $utcOffsetString = '+06:00'; }\r\n
        elseif ( $utcOffset == '6.5' ) { $utcOffsetString = '+06:30'; }\r\n
        elseif ( $utcOffset == '7' ) { $utcOffsetString = '+07:00'; }\r\n
        elseif ( $utcOffset == '8' ) { $utcOffsetString = '+08:00'; }\r\n
        elseif ( $utcOffset == '8.75' ) { $utcOffsetString = '+08:45'; }\r\n
        elseif ( $utcOffset == '9' ) { $utcOffsetString = '+09:00'; }\r\n
        elseif ( $utcOffset == '9.5' ) { $utcOffsetString = '+09:30'; }\r\n
        elseif ( $utcOffset == '10' ) { $utcOffsetString = '+10:00'; }\r\n
        elseif ( $utcOffset == '10.5' ) { $utcOffsetString = '+10:30'; }\r\n
        elseif ( $utcOffset == '11' ) { $utcOffsetString = '+11:00'; }\r\n
        elseif ( $utcOffset == '12' ) { $utcOffsetString = '+12:00'; }\r\n
        elseif ( $utcOffset == '12.75' ) { $utcOffsetString = '+12:45'; }\r\n
        elseif ( $utcOffset == '13' ) { $utcOffsetString = '+13:00'; }\r\n
        elseif ( $utcOffset == '14' ) { $utcOffsetString = '+14:00'; }\r\n
        else {}\r\n
        \r\n
        // Get current time after UTC offset\r\n
        \r\n
        $currentTime = time();\r\n
        \r\n
        // $currentTime = time() + (3 * MONTH_IN_SECONDS);\r\n
        \r\n
        $currentTimeUtcOffset = $currentTime + ($utcOffset*60*60);\r\n
        \r\n
        // ADDITIONAL VARIABLES\r\n
        \r\n
        $happyBirthday = '<div class="happy-birthday">Happy birthday!</div>';\r\n
        \r\n
        // Get month and year\r\n
        \r\n
        $calendarCurrentMonth = date("n", strtotime('first day of +'.$getPlusMonth.' month', $currentTimeUtcOffset));\r\n
        \r\n
        $year = date("Y", strtotime('first day of +'.$getPlusMonth.' month', $currentTimeUtcOffset));\r\n
        \r\n
        // Define date info variables\r\n
        \r\n
        // What is the first day of the month in question?\r\n
        $firstDayOfMonth = mktime(0,0,0,$calendarCurrentMonth,1,$year);\r\n
        $firstDayOfMonthName = date("l", $firstDayOfMonth); \r\n
        \r\n
        // How many days does this month contain?\r\n
        $numberDays = date('t',$firstDayOfMonth);\r\n
        \r\n
        // Retrieve some information about the first day of\r\n
        // the month in question\r\n
        $dateComponents = getdate($firstDayOfMonth);\r\n
        \r\n
        // What is the name of the month in question?\r\n
        $monthName = $dateComponents['month'];\r\n
        $monthNameNum = date('n',$firstDayOfMonth);\r\n
        \r\n
        // What is the (week's) index value (0-6) of the first day of\r\n
        // the month in question\r\n
        \r\n
        // $dayOfWeek = $dateComponents['wday'];\r\n
        \r\n
        // $yearTwoDigits = date('y',$firstDayOfMonth);\r\n
        \r\n
        // Turn month number into two digits, e.g. 7 to 07, but keep 11 as 11\r\n
        \r\n
        $monthRel = str_pad($calendarCurrentMonth,2,"0", STR_PAD_LEFT);\r\n
        \r\n
        // Turn day number into two digits, e.g. 7 to 07, but keep 25 as 25\r\n
        \r\n
        // $currentDayRel = str_pad($currentDay, 2, "0", STR_PAD_LEFT);\r\n
        \r\n
        $currentDayRel = date("d", strtotime($calendarDate));\r\n
        \r\n
        $date_yyyymmdd = $year.''.$monthRel.''.$currentDayRel;\r\n
        \r\n
        // Create date in loop in YYYY-MM-DD format\r\n
        \r\n
        $date = date("Y-m-d", strtotime($calendarDate));\r\n
        \r\n
        $dayName = date("l", strtotime($date));\r\n
        \r\n
        $dateFriendly = date("F j, Y", strtotime($date));\r\n
        \r\n
        $todaysDate = date("n/d/Y", strtotime($date));\r\n
        $todaysDateFormatted = date("l, F j, Y",strtotime($todaysDate));\r\n
        $todaysDateUnix = strtotime($todaysDate);\r\n
        \r\n
        $tomorrowsDate = date("n/d/Y", strtotime('+1 day', strtotime($date)));\r\n
        $tomorrowsDateFormatted = date("l, F j, Y",strtotime($tomorrowsDate));\r\n
        $tomorrowsDateUnix = strtotime($tomorrowsDate);\r\n
        \r\n
        // Personalized aspects summaries and start dates. From cache generated by GCB "Long-Term vCal Data" do_shortcode-d on top of this GCB\r\n
        \r\n
        // Get 1st day of current month's Unix timestamp\r\n
        \r\n
        $firstDay = date($calendarCurrentMonth.'/01/'.$year);\r\n
        $firstDayUnix = strtotime($firstDay);\r\n
        \r\n
        // ===============================\r\n
        // BEGIN PRINT VIEW\r\n
        // ===============================\r\n
        \r\n
        // Get celeb birthday content from cache to use for conditionals\r\n
        \r\n
        $celebBirthday_cacheKey = 'celebBirthday_'.$dateOfBirthString.'_'.$todaysDateUnix;\r\n
        \r\n
        $celebBirthdayArray = get_transient( $celebBirthday_cacheKey );\r\n
        \r\n
        if ( $calType === 'paid' ) {\r\n
        \r\n
          $calendarPrintView = '<div class="printview-paid">';\r\n
        \r\n
        } else {\r\n
        \r\n
          $calendarPrintView = '<div class="printview-free">';\r\n
        \r\n
        }\r\n
        \r\n
        if ( false === $celebBirthdayArray ) {\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-header printview-nocontent">';\r\n
        \r\n
        } else {\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-header">';\r\n
        \r\n
        }\r\n
        \r\n
        if ( false === $celebBirthdayArray ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $calendarPrintView .= '<h2>'.$dayName.', '.$dateFriendly.' <br class="visible-xs-block" /><span>(UTC'.$utcOffsetString.')</span></h2>';\r\n
        \r\n
          if ( $calType === 'paid' ) {\r\n
        \r\n
            $calendarPrintView .= '<div class="printview-member">For '.$userFullName.'<span class="hidden-xs">, </span><br class="visible-xs-block" /><span class="visible-xs-inline">B</span><span class="hidden-xs">b</span>orn on '.$dateOfBirth.'</div>';\r\n
        \r\n
          } else {}\r\n
        \r\n
        }\r\n
        \r\n
        // ------------------------------\r\n
        // "Celeb birthday" content\r\n
        // ------------------------------\r\n
        \r\n
        if ( false === $celebBirthdayArray ) {\r\n
        \r\n
          if ( $calType === 'paid' ) {\r\n
        \r\n
            $calendarPrintView .= '<p class="bg-warning">Please return to the <a href="/forecast-calendar/member/">Personalized Forecast Calendar</a> to get the day / print view.</p>';\r\n
        \r\n
          } else {\r\n
        \r\n
            $calendarPrintView .= '<p class="bg-warning">Please return to the <a href="/forecast-calendar/free/">Free Forecast Calendar</a> to get the day / print view.</p>';\r\n
        \r\n
          }\r\n
        \r\n
        \r\n
        } else {\r\n
        \r\n
          $celeb_name1 = $celebBirthdayArray[0];\r\n
          $celeb_birthyear1 = $celebBirthdayArray[1];\r\n
          $celeb_name2 = $celebBirthdayArray[2];\r\n
          $celeb_birthyear2 = $celebBirthdayArray[3];\r\n
          $celeb_name3 = $celebBirthdayArray[4];\r\n
          $celeb_birthyear3 = $celebBirthdayArray[5];\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-celebbirtday">Born this day:<span class="hidden-xs"> </span><br class="visible-xs-block" />'.$celeb_name1.' ('.$celeb_birthyear1.')<span class="hidden-xs">, </span><br class="visible-xs-block" />'\r\n
                      .$celeb_name2.' ('.$celeb_birthyear2.')</div>';\r\n
        \r\n
        }\r\n
        \r\n
        // ------------------------------\r\n
        // "Moon phase and eclipse" content\r\n
        // ------------------------------\r\n
        \r\n
        $dailyMoonphase_cacheKey = 'dailyMoonphase_'.$dateOfBirthString.'_'.$date_yyyymmdd;\r\n
        \r\n
        $dailyMoonphaseArray = get_transient( $dailyMoonphase_cacheKey );\r\n
        \r\n
        if ( false === $dailyMoonphaseArray ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $moonphase = $dailyMoonphaseArray[0];\r\n
          $moonPhaseImgUrl = $dailyMoonphaseArray[1];\r\n
          $eclipse = $dailyMoonphaseArray[2];\r\n
          $eclipseImgUrl = $dailyMoonphaseArray[3];\r\n
          $eclipseType = $dailyMoonphaseArray[4];\r\n
          $convertedFriendlyDateTime = $dailyMoonphaseArray[5];\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-phaseseclipse">';\r\n
        \r\n
          if ( !empty($eclipse) ) {\r\n
        \r\n
            $calendarPrintView .= '<img src="'.$eclipseImgUrl.'" />';\r\n
        \r\n
            $calendarPrintView .= '<div>'.$eclipse.'<br />'.$moonphase.'</div>';\r\n
        \r\n
          } else {\r\n
        \r\n
            $calendarPrintView .= '<img src="'.$moonPhaseImgUrl.'" />';\r\n
        \r\n
            $calendarPrintView .= '<div>'.$moonphase.'</div>';\r\n
        \r\n
          }\r\n
        \r\n
          $calendarPrintView .= '</div>';\r\n
        }\r\n
        \r\n
        // Closing tag for .printview-header\r\n
        \r\n
        $calendarPrintView .= '</div>';\r\n
        \r\n
        if ( $calType === 'paid' ) {\r\n
        \r\n
          $influences_cacheKey = 'influences_'.$dateOfBirthString.'_'.$todaysDateUnix;\r\n
        \r\n
          $influencesArray = get_transient( $influences_cacheKey );\r\n
        \r\n
          if ( false === $influencesArray ) {\r\n
        \r\n
          } else {\r\n
        \r\n
            // ------------------------------\r\n
            // Calendar Filters\r\n
            // ------------------------------\r\n
        \r\n
            $calendarPrintView .= '<div class="calfilter" id="calFilter">';\r\n
        \r\n
            $calendarPrintView .= '<p class="influence-togglers"><span class="icon-toggles icon-show short-term-show" style="display:none;"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_empty.png" />Short-Term Influences</span><span class="icon-toggles short-term-hide"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_checked.png" />Short-Term Influences</span><span class="icon-toggles icon-show long-term-show"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_empty.png" />Long-Term Influences</span><span class="icon-toggles long-term-hide" style="display:none;"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_checked.png" />Long-Term Influences</span></p>';\r\n
        \r\n
            $calendarPrintView .= '<div class="icon-togglers"><span class="icon-toggles icon-hide career-icons-hide"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_checked.png" /><img src="/wp-content/uploads/images/glyphs/career.png" />Career</span><span class="icon-toggles icon-show career-icons-show" style="display:none;"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_empty.png" /><img src="/wp-content/uploads/images/glyphs/career.png" />Career</span>';\r\n
        \r\n
            $calendarPrintView .= '<span class="icon-toggles icon-hide communication-icons-hide"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_checked.png" /><img src="/wp-content/uploads/images/glyphs/communication.png" />Communication</span><span class="icon-toggles icon-show communication-icons-show" style="display:none;"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_empty.png" /><img src="/wp-content/uploads/images/glyphs/communication.png" />Communication</span>';\r\n
        \r\n
            $calendarPrintView .= '<span class="icon-toggles icon-hide diet-icons-hide"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_checked.png" /><img src="/wp-content/uploads/images/glyphs/diet.png" />Fitness</span><span class="icon-toggles icon-show diet-icons-show" style="display:none;"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_empty.png" /><img src="/wp-content/uploads/images/glyphs/diet.png" />Fitness</span>';\r\n
        \r\n
            $calendarPrintView .= '<span class="icon-toggles icon-hide money-icons-hide"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_checked.png" /><img src="/wp-content/uploads/images/glyphs/money.png" />Money</span><span class="icon-toggles icon-show money-icons-show" style="display:none;"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_empty.png" /><img src="/wp-content/uploads/images/glyphs/money.png" />Money</span>';\r\n
        \r\n
            $calendarPrintView .= '<span class="icon-toggles icon-hide romance-icons-hide"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_checked.png" /><img src="/wp-content/uploads/images/glyphs/romance.png" />Romance</span><span class="icon-toggles icon-show romance-icons-show" style="display:none;"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_empty.png" /><img src="/wp-content/uploads/images/glyphs/romance.png" />Romance</span>';\r\n
        \r\n
            $calendarPrintView .= '<span class="icon-toggles icon-hide traveling-icons-hide"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_checked.png" /><img src="/wp-content/uploads/images/glyphs/traveling.png" />Travel</span><span class="icon-toggles icon-show traveling-icons-show" style="display:none;"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_empty.png" /><img src="/wp-content/uploads/images/glyphs/traveling.png" />Travel</span>';\r\n
        \r\n
            $calendarPrintView .= '<span class="icon-toggles icon-hide other-icons-hide stooltip-gray stooltip" data-tooltip-pos="top-center"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_checked.png" /><img src="/wp-content/uploads/images/glyphs/strengths.png">Strengths <img src="/wp-content/uploads/images/glyphs/intensities.png">Intensities <br class="visible-xs-block button-linebreak" /><img src="/wp-content/uploads/images/glyphs/challenges.png">Challenges</span><span class="icon-toggles icon-show other-icons-show stooltip-gray stooltip" data-tooltip-pos="top-center" style="display:none;"><img class="icon-checkbox" src="/wp-content/uploads/images/glyphs/checkbox_empty.png" /><img src="/wp-content/uploads/images/glyphs/strengths.png">Strengths <img src="/wp-content/uploads/images/glyphs/intensities.png">Intensities <br class="visible-xs-block button-linebreak" /><img src="/wp-content/uploads/images/glyphs/challenges.png">Challenges</span>';\r\n
        \r\n
            $calendarPrintView .= '</div></div>';\r\n
        \r\n
            $calendarPrintViewExtra = "\r\n
                <script type='text/javascript'>\r\n
                  jQuery(document).ready( function() {\r\n
        \r\n
                    jQuery('.short-term-show').on( 'click', function() {\r\n
                      jQuery('.printview-short-influence').show();\r\n
                      jQuery('.short-term-show').hide();\r\n
                      jQuery('.short-term-hide').show();\r\n
                      jQuery('.career-icons-hide').show();\r\n
                      jQuery('.career-icons-show').hide();\r\n
                      jQuery('.career-category-temp').addClass('career-category');\r\n
                      jQuery('.influences-wrapper').removeClass('career-category-temp');\r\n
                      jQuery('.career-icon').show();\r\n
                      jQuery('.communication-icons-hide').show();\r\n
                      jQuery('.communication-icons-show').hide();\r\n
                      jQuery('.communication-category-temp').addClass('communication-category');\r\n
                      jQuery('.influences-wrapper').removeClass('communication-category-temp');\r\n
                      jQuery('.communication-icon').show();\r\n
                      jQuery('.diet-icons-hide').show();\r\n
                      jQuery('.diet-icons-show').hide();\r\n
                      jQuery('.diet-category-temp').addClass('diet-category');\r\n
                      jQuery('.influences-wrapper').removeClass('diet-category-temp');\r\n
                      jQuery('.diet-icon').show();\r\n
                      jQuery('.money-icons-hide').show();\r\n
                      jQuery('.money-icons-show').hide();\r\n
                      jQuery('.money-category-temp').addClass('money-category');\r\n
                      jQuery('.influences-wrapper').removeClass('money-category-temp');\r\n
                      jQuery('.money-icon').show();\r\n
                      jQuery('.romance-icons-hide').show();\r\n
                      jQuery('.romance-icons-show').hide();\r\n
                      jQuery('.romantic-category-temp').addClass('romantic-category');\r\n
                      jQuery('.influences-wrapper').removeClass('romantic-category-temp');\r\n
                      jQuery('.romantic-icon').show();\r\n
                      jQuery('.traveling-icons-hide').show();\r\n
                      jQuery('.traveling-icons-show').hide();\r\n
                      jQuery('.traveling-category-temp').addClass('traveling-category');\r\n
                      jQuery('.influences-wrapper').removeClass('traveling-category-temp');\r\n
                      jQuery('.traveling-icon').show();\r\n
                    });\r\n
        \r\n
                    jQuery('.short-term-hide').on( 'click', function() {\r\n
                      jQuery('.printview-short-influence').hide();\r\n
                      jQuery('.short-term-hide').hide();\r\n
                      jQuery('.short-term-show').show();\r\n
                      jQuery('.career-icons-hide').hide();\r\n
                      jQuery('.career-icons-show').show();\r\n
                      jQuery('.career-category').addClass('career-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('career-category');\r\n
                      jQuery('.career-icon').hide();\r\n
                      jQuery('.communication-icons-hide').hide();\r\n
                      jQuery('.communication-icons-show').show();\r\n
                      jQuery('.communication-category').addClass('communication-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('communication-category');\r\n
                      jQuery('.communication-icon').hide();\r\n
                      jQuery('.diet-icons-hide').hide();\r\n
                      jQuery('.diet-icons-show').show();\r\n
                      jQuery('.diet-category').addClass('diet-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('diet-category');\r\n
                      jQuery('.diet-icon').hide();\r\n
                      jQuery('.money-icons-hide').hide();\r\n
                      jQuery('.money-icons-show').show();\r\n
                      jQuery('.money-category').addClass('money-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('money-category');\r\n
                      jQuery('.money-icon').hide();\r\n
                      jQuery('.romance-icons-hide').hide();\r\n
                      jQuery('.romance-icons-show').show();\r\n
                      jQuery('.romantic-category').addClass('romantic-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('romantic-category');\r\n
                      jQuery('.romantic-icon').hide();\r\n
                      jQuery('.traveling-icons-hide').hide();\r\n
                      jQuery('.traveling-icons-show').show();\r\n
                      jQuery('.traveling-category').addClass('traveling-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('traveling-category');\r\n
                      jQuery('.traveling-icon').hide();\r\n
                    });\r\n
        \r\n
                    jQuery('.long-term-show').on( 'click', function() {\r\n
                      jQuery('.printview-long-influence').show();\r\n
                      jQuery('.long-term-show').hide();\r\n
                      jQuery('.long-term-hide').show();\r\n
                      jQuery('.other-category-temp').addClass('other-category');\r\n
                      jQuery('.influences-wrapper').removeClass('other-category-temp');\r\n
                      jQuery('.other-icons-hide').show();\r\n
                      jQuery('.other-icons-show').hide();\r\n
                    });\r\n
        \r\n
                    jQuery('.long-term-hide').on( 'click', function() {\r\n
                      jQuery('.printview-long-influence').hide();\r\n
                      jQuery('.long-term-hide').hide();\r\n
                      jQuery('.long-term-show').show();\r\n
                      jQuery('.other-icon').hide();\r\n
                      jQuery('.other-category').addClass('other-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('other-category');\r\n
                      jQuery('.other-icons-hide').hide();\r\n
                      jQuery('.other-icons-show').show();\r\n
                    });\r\n
        \r\n
                    jQuery('.career-icons-hide').on( 'click', function() {\r\n
                      jQuery('.career-icon').hide();\r\n
                      jQuery('.career-category').addClass('career-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('career-category');\r\n
                      jQuery('.career-icons-hide').hide();\r\n
                      jQuery('.career-icons-show').show();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.career-icons-show').on( 'click', function() {\r\n
                      jQuery('.printview-short-influence').show();\r\n
                      jQuery('.short-term-show').hide();\r\n
                      jQuery('.short-term-hide').show();\r\n
                      jQuery('.career-icon').show();\r\n
                      jQuery('.career-category-temp').addClass('career-category');\r\n
                      jQuery('.influences-wrapper').removeClass('career-category-temp');\r\n
                      jQuery('.career-icons-hide').show();\r\n
                      jQuery('.career-icons-show').hide();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.communication-icons-hide').on( 'click', function() {\r\n
                      jQuery('.communication-icon').hide();\r\n
                      jQuery('.communication-category').addClass('communication-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('communication-category');\r\n
                      jQuery('.communication-icons-hide').hide();\r\n
                      jQuery('.communication-icons-show').show();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.communication-icons-show').on( 'click', function() {\r\n
                      jQuery('.printview-short-influence').show();\r\n
                      jQuery('.short-term-show').hide();\r\n
                      jQuery('.short-term-hide').show();\r\n
                      jQuery('.communication-icon').show();\r\n
                      jQuery('.communication-category-temp').addClass('communication-category');\r\n
                      jQuery('.influences-wrapper').removeClass('communication-category-temp');\r\n
                      jQuery('.communication-icons-hide').show();\r\n
                      jQuery('.communication-icons-show').hide();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.diet-icons-hide').on( 'click', function() {\r\n
                      jQuery('.diet-icon').hide();\r\n
                      jQuery('.diet-category').addClass('diet-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('diet-category');\r\n
                      jQuery('.diet-icons-hide').hide();\r\n
                      jQuery('.diet-icons-show').show();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.diet-icons-show').on( 'click', function() {\r\n
                      jQuery('.printview-short-influence').show();\r\n
                      jQuery('.short-term-show').hide();\r\n
                      jQuery('.short-term-hide').show();\r\n
                      jQuery('.diet-icon').show();\r\n
                      jQuery('.diet-category-temp').addClass('diet-category');\r\n
                      jQuery('.influences-wrapper').removeClass('diet-category-temp');\r\n
                      jQuery('.diet-icons-hide').show();\r\n
                      jQuery('.diet-icons-show').hide();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.money-icons-hide').on( 'click', function() {\r\n
                      jQuery('.money-icon').hide();\r\n
                      jQuery('.money-category').addClass('money-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('money-category');\r\n
                      jQuery('.money-icons-hide').hide();\r\n
                      jQuery('.money-icons-show').show();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.money-icons-show').on( 'click', function() {\r\n
                      jQuery('.printview-short-influence').show();\r\n
                      jQuery('.short-term-show').hide();\r\n
                      jQuery('.short-term-hide').show();\r\n
                      jQuery('.money-icon').show();\r\n
                      jQuery('.money-category-temp').addClass('money-category');\r\n
                      jQuery('.influences-wrapper').removeClass('money-category-temp');\r\n
                      jQuery('.money-icons-hide').show();\r\n
                      jQuery('.money-icons-show').hide();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.romance-icons-hide').on( 'click', function() {\r\n
                      jQuery('.romantic-icon').hide();\r\n
                      jQuery('.romantic-category').addClass('romantic-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('romantic-category');\r\n
                      jQuery('.romance-icons-hide').hide();\r\n
                      jQuery('.romance-icons-show').show();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.romance-icons-show').on( 'click', function() {\r\n
                      jQuery('.printview-short-influence').show();\r\n
                      jQuery('.short-term-show').hide();\r\n
                      jQuery('.short-term-hide').show();\r\n
                      jQuery('.romantic-icon').show();\r\n
                      jQuery('.romantic-category-temp').addClass('romantic-category');\r\n
                      jQuery('.influences-wrapper').removeClass('romantic-category-temp');\r\n
                      jQuery('.romance-icons-hide').show();\r\n
                      jQuery('.romance-icons-show').hide();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.traveling-icons-hide').on( 'click', function() {\r\n
                      jQuery('.traveling-icon').hide();\r\n
                      jQuery('.traveling-category').addClass('traveling-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('traveling-category');\r\n
                      jQuery('.traveling-icons-hide').hide();\r\n
                      jQuery('.traveling-icons-show').show();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.traveling-icons-show').on( 'click', function() {\r\n
                      jQuery('.printview-short-influence').show();\r\n
                      jQuery('.short-term-show').hide();\r\n
                      jQuery('.short-term-hide').show();\r\n
                      jQuery('.traveling-icon').show();\r\n
                      jQuery('.traveling-category-temp').addClass('traveling-category');\r\n
                      jQuery('.influences-wrapper').removeClass('traveling-category-temp');\r\n
                      jQuery('.traveling-icons-hide').show();\r\n
                      jQuery('.traveling-icons-show').hide();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.other-icons-hide').on( 'click', function() {\r\n
                      jQuery('.other-icon').hide();\r\n
                      jQuery('.other-category').addClass('other-category-temp');\r\n
                      jQuery('.influences-wrapper').removeClass('other-category');\r\n
                      jQuery('.other-icons-hide').hide();\r\n
                      jQuery('.other-icons-show').show();\r\n
                      jQuery('.printview-long-influence').hide();\r\n
                      jQuery('.long-term-hide').hide();\r\n
                      jQuery('.long-term-show').show();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                    jQuery('.other-icons-show').on( 'click', function() {\r\n
                      jQuery('.other-icon').show();\r\n
                      jQuery('.other-category-temp').addClass('other-category');\r\n
                      jQuery('.influences-wrapper').removeClass('other-category-temp');\r\n
                      jQuery('.other-icons-hide').show();\r\n
                      jQuery('.other-icons-show').hide();\r\n
                      jQuery('.short-influences-wrapper.other-category').parent().show();\r\n
                jQuery('.influences').each(function(){\r\n
                var divHeight = jQuery(this).height();\r\n
                  if ( divHeight < 20 ) { jQuery(this).hide(); }\r\n
                });              \r\n
                    });\r\n
        \r\n
                  });\r\n
                </script>";\r\n
        \r\n
          }\r\n
        \r\n
        \r\n
        \r\n
        \r\n
        } else {}\r\n
        \r\n
        // ------------------------------\r\n
        // "Moon in Sign" content\r\n
        // ------------------------------\r\n
        \r\n
        $moonInSignToday_cacheKey = 'moonInSignToday_'.$dateOfBirthString.'_'.$todaysDateUnix;\r\n
        \r\n
        $moonInSignTodayArray = get_transient( $moonInSignToday_cacheKey );\r\n
        \r\n
        if ( false === $celebBirthdayArray ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $combination1_name = $moonInSignTodayArray[0];\r\n
          $combination1_name_trimmed = $moonInSignTodayArray[1];\r\n
          $combination1_sign = $moonInSignTodayArray[2];\r\n
          $combination1_sign_trimmed = $moonInSignTodayArray[3];\r\n
          $retro_symbol = $moonInSignTodayArray[4];\r\n
          $combination1do = $moonInSignTodayArray[5];\r\n
          $combination1dont = $moonInSignTodayArray[6];\r\n
          $combination1_short_content = $moonInSignTodayArray[7];\r\n
          $combination1_long_content = $moonInSignTodayArray[8];\r\n
        \r\n
          $moonInSignTomorrow_cacheKey = 'moonInSignTomorrow_'.$dateOfBirthString.'_'.$tomorrowsDateUnix;\r\n
        \r\n
          $moonInSignTomorrowArray = get_transient( $moonInSignTomorrow_cacheKey );\r\n
          $combination1_sign_tomorrow = $moonInSignTomorrowArray[0];\r\n
          $combination1_sign_tomorrow_trimmed = $moonInSignTomorrowArray[2];\r\n
        \r\n
          $calendarPrintView .= '<h2 class="printview-section-title">Moon in Sign</h2>';\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-section printview-mooninsign">';\r\n
        \r\n
          if ( $moonInSignTodayArray[2] == $moonInSignTomorrowArray[0] ) {\r\n
        \r\n
            $calendarPrintView .= '<h3><img src="/wp-content/uploads/images/glyphs/'.$combination1_name_trimmed.'.png" /><img src="/wp-content/uploads/images/glyphs/' . $combination1_sign_trimmed . '.png" />'.$retro_symbol.''.$combination1_name.' in '.$combination1_sign.'</h3>';\r\n
        \r\n
          } else {\r\n
        \r\n
            $calendarPrintView .= '<h3><img src="/wp-content/uploads/images/glyphs/'.$combination1_name_trimmed.'.png" /><img src="/wp-content/uploads/images/glyphs/' . $combination1_sign_trimmed . '.png" />'.$retro_symbol.'<img src="/wp-content/uploads/images/glyphs/rightarrow.png" /><img src="/wp-content/uploads/images/glyphs/'.$combination1_sign_tomorrow_trimmed.'.png" />'.$combination1_name.' in '.$combination1_sign.'</h3>';\r\n
        \r\n
          }\r\n
        \r\n
          $calendarPrintView .= '<p>'.$combination1do.'</p>';\r\n
          $calendarPrintView .= '<p>'.$combination1dont.'</p>';\r\n
          $calendarPrintView .= '<p>'.$combination1_short_content.'</p>';\r\n
          $calendarPrintView .= '<p>'.$combination1_long_content.'</p>';\r\n
          $calendarPrintView .= '</div>';\r\n
        \r\n
        }\r\n
        \r\n
        // ------------------------------\r\n
        // "Daily aspects" content\r\n
        // ------------------------------\r\n
        \r\n
        $dailyAspects1_cacheKey = 'dailyAspects1_'.$todaysDateUnix;\r\n
        \r\n
        $dailyAspects1 = get_transient( $dailyAspects1_cacheKey );\r\n
        \r\n
        if ( false === $dailyAspects1 ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $combination1_planet1 = $dailyAspects1[0];\r\n
          $combination1_planet1_lower =  $dailyAspects1[1];\r\n
          $combination1_aspect =  $dailyAspects1[2];\r\n
          $combination1_aspect_lower =  $dailyAspects1[3];\r\n
          $combination1_planet2 =  $dailyAspects1[4];\r\n
          $combination1_planet2_lower =  $dailyAspects1[5];\r\n
          $todaysAspects1 =  $dailyAspects1[6];\r\n
        \r\n
          $calendarPrintView .= '<h2 class="printview-section-title">Aspects</h2>';\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-section printview-dailyaspect">';\r\n
        \r\n
          $calendarPrintView .= '<h3>\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination1_planet1_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination1_aspect_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination1_planet2_lower.'.png" />\r\n
                            '. $combination1_planet1 . ' ' . $combination1_aspect . ' ' . $combination1_planet2 .'\r\n
                          </h3>';\r\n
        \r\n
            $calendarPrintView .= $todaysAspects1;\r\n
        \r\n
          $calendarPrintView .= '</div>';\r\n
        \r\n
        }\r\n
        \r\n
        $dailyAspects2_cacheKey = 'dailyAspects2_'.$todaysDateUnix;\r\n
        \r\n
        $dailyAspects2 = get_transient( $dailyAspects2_cacheKey );\r\n
        \r\n
        if ( false === $dailyAspects2 ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $combination2_planet1 = $dailyAspects2[0];\r\n
          $combination2_planet1_lower =  $dailyAspects2[1];\r\n
          $combination2_aspect =  $dailyAspects2[2];\r\n
          $combination2_aspect_lower =  $dailyAspects2[3];\r\n
          $combination2_planet2 =  $dailyAspects2[4];\r\n
          $combination2_planet2_lower =  $dailyAspects2[5];\r\n
          $todaysAspects2 =  $dailyAspects2[6];\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-section printview-dailyaspect">';\r\n
        \r\n
          $calendarPrintView .= '<h3>\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination2_planet1_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination2_aspect_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination2_planet2_lower.'.png" />\r\n
                            '. $combination2_planet1 . ' ' . $combination2_aspect . ' ' . $combination2_planet2 .'\r\n
                          </h3>';\r\n
        \r\n
            $calendarPrintView .= $todaysAspects2;\r\n
        \r\n
            $calendarPrintView .= '</div>';\r\n
        \r\n
        }\r\n
        \r\n
        $dailyAspects3_cacheKey = 'dailyAspects3_'.$todaysDateUnix;\r\n
        \r\n
        $dailyAspects3 = get_transient( $dailyAspects3_cacheKey );\r\n
        \r\n
        if ( false === $dailyAspects3 ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $combination3_planet1 = $dailyAspects3[0];\r\n
          $combination3_planet1_lower =  $dailyAspects3[1];\r\n
          $combination3_aspect =  $dailyAspects3[2];\r\n
          $combination3_aspect_lower =  $dailyAspects3[3];\r\n
          $combination3_planet2 =  $dailyAspects3[4];\r\n
          $combination3_planet2_lower =  $dailyAspects3[5];\r\n
          $todaysAspects3 =  $dailyAspects3[6];\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-section printview-dailyaspect">';\r\n
        \r\n
          $calendarPrintView .= '<h3>\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination3_planet1_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination3_aspect_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination3_planet2_lower.'.png" />\r\n
                            '. $combination3_planet1 . ' ' . $combination3_aspect . ' ' . $combination3_planet2 .'\r\n
                          </h3>';\r\n
        \r\n
            $calendarPrintView .= $todaysAspects3;\r\n
        \r\n
            $calendarPrintView .= '</div>';\r\n
        \r\n
        }\r\n
        \r\n
        $dailyAspects4_cacheKey = 'dailyAspects4_'.$todaysDateUnix;\r\n
        \r\n
        $dailyAspects4 = get_transient( $dailyAspects4_cacheKey );\r\n
        \r\n
        if ( false === $dailyAspects4 ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $combination4_planet1 = $dailyAspects4[0];\r\n
          $combination4_planet1_lower =  $dailyAspects4[1];\r\n
          $combination4_aspect =  $dailyAspects4[2];\r\n
          $combination4_aspect_lower =  $dailyAspects4[3];\r\n
          $combination4_planet2 =  $dailyAspects4[4];\r\n
          $combination4_planet2_lower =  $dailyAspects4[5];\r\n
          $todaysAspects4 =  $dailyAspects4[6];\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-section printview-dailyaspect">';\r\n
        \r\n
          $calendarPrintView .= '<h3>\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination4_planet1_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination4_aspect_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination4_planet2_lower.'.png" />\r\n
                            '. $combination4_planet1 . ' ' . $combination4_aspect . ' ' . $combination4_planet2 .'\r\n
                          </h3>';\r\n
        \r\n
            $calendarPrintView .= $todaysAspects4;\r\n
        \r\n
            $calendarPrintView .= '</div>';\r\n
        \r\n
        }\r\n
        \r\n
        $dailyAspects5_cacheKey = 'dailyAspects5_'.$todaysDateUnix;\r\n
        \r\n
        $dailyAspects5 = get_transient( $dailyAspects5_cacheKey );\r\n
        \r\n
        if ( false === $dailyAspects5 ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $combination5_planet1 = $dailyAspects5[0];\r\n
          $combination5_planet1_lower =  $dailyAspects5[1];\r\n
          $combination5_aspect =  $dailyAspects5[2];\r\n
          $combination5_aspect_lower =  $dailyAspects5[3];\r\n
          $combination5_planet2 =  $dailyAspects5[4];\r\n
          $combination5_planet2_lower =  $dailyAspects5[5];\r\n
          $todaysAspects5 =  $dailyAspects5[6];\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-section printview-dailyaspect">';\r\n
        \r\n
          $calendarPrintView .= '<h3>\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination5_planet1_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination5_aspect_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination5_planet2_lower.'.png" />\r\n
                            '. $combination5_planet1 . ' ' . $combination5_aspect . ' ' . $combination5_planet2 .'\r\n
                          </h3>';\r\n
        \r\n
            $calendarPrintView .= $todaysAspects5;\r\n
        \r\n
            $calendarPrintView .= '</div>';\r\n
        \r\n
        }\r\n
        \r\n
        $dailyAspects6_cacheKey = 'dailyAspects6_'.$todaysDateUnix;\r\n
        \r\n
        $dailyAspects6 = get_transient( $dailyAspects6_cacheKey );\r\n
        \r\n
        if ( false === $dailyAspects6 ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $combination6_planet1 = $dailyAspects6[0];\r\n
          $combination6_planet1_lower =  $dailyAspects6[1];\r\n
          $combination6_aspect =  $dailyAspects6[2];\r\n
          $combination6_aspect_lower =  $dailyAspects6[3];\r\n
          $combination6_planet2 =  $dailyAspects6[4];\r\n
          $combination6_planet2_lower =  $dailyAspects6[5];\r\n
          $todaysAspects6 =  $dailyAspects6[6];\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-section printview-dailyaspect">';\r\n
        \r\n
          $calendarPrintView .= '<h3>\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination6_planet1_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination6_aspect_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination6_planet2_lower.'.png" />\r\n
                            '. $combination6_planet1 . ' ' . $combination6_aspect . ' ' . $combination6_planet2 .'\r\n
                          </h3>';\r\n
        \r\n
            $calendarPrintView .= $todaysAspects6;\r\n
        \r\n
            $calendarPrintView .= '</div>';\r\n
        \r\n
        }\r\n
        \r\n
        $dailyAspects7_cacheKey = 'dailyAspects7_'.$todaysDateUnix;\r\n
        \r\n
        $dailyAspects7 = get_transient( $dailyAspects7_cacheKey );\r\n
        \r\n
        if ( false === $dailyAspects7 ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $combination7_planet1 = $dailyAspects7[0];\r\n
          $combination7_planet1_lower =  $dailyAspects7[1];\r\n
          $combination7_aspect =  $dailyAspects7[2];\r\n
          $combination7_aspect_lower =  $dailyAspects7[3];\r\n
          $combination7_planet2 =  $dailyAspects7[4];\r\n
          $combination7_planet2_lower =  $dailyAspects7[5];\r\n
          $todaysAspects7 =  $dailyAspects7[6];\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-section printview-dailyaspect">';\r\n
        \r\n
          $calendarPrintView .= '<h3>\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination7_planet1_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination7_aspect_lower.'.png" />\r\n
                            <img src="/wp-content/uploads/images/glyphs/'.$combination7_planet2_lower.'.png" />\r\n
                            '. $combination7_planet1 . ' ' . $combination7_aspect . ' ' . $combination7_planet2 .'\r\n
                          </h3>';\r\n
        \r\n
            $calendarPrintView .= $todaysAspects7;\r\n
        \r\n
            $calendarPrintView .= '<div>';\r\n
        \r\n
        }\r\n
        \r\n
        // ------------------------------\r\n
        // "Planet update posts" content\r\n
        // ------------------------------\r\n
        \r\n
        $planetUpdatePost1_cacheKey = 'planetUpdatePost1_'.$todaysDateUnix;\r\n
        \r\n
        $planetUpdatePost1Array = get_transient( $planetUpdatePost1_cacheKey );\r\n
        \r\n
        if ( false === $planetUpdatePost1Array ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $post1Title = $planetUpdatePost1Array[0];\r\n
          $post1Link = $planetUpdatePost1Array[1];\r\n
          $post1Glyph1 = $planetUpdatePost1Array[2];\r\n
          $post1Glyph2 = $planetUpdatePost1Array[3];\r\n
          $post1Glyph3 = $planetUpdatePost1Array[4];\r\n
          $post1PublishDate = $planetUpdatePost1Array[5];\r\n
          $publishDate1Formatted = $planetUpdatePost1Array[6];\r\n
          $post1Content = apply_filters( 'the_content', $planetUpdatePost1Array[7] );\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-section printview-planetupdates">';\r\n
        \r\n
          $calendarPrintView .= '<h3>'.$post1Glyph1.''.$post1Glyph2.''.$post1Glyph3.''.$post1Title.'</h3>';\r\n
        \r\n
          $calendarPrintView .= '<div>'.$post1Content.'</div>';\r\n
        \r\n
          $calendarPrintView .= '</div>';\r\n
        \r\n
        }\r\n
        \r\n
        $planetUpdatePost2_cacheKey = 'planetUpdatePost2_'.$todaysDateUnix;\r\n
        \r\n
        $planetUpdatePost2Array = get_transient( $planetUpdatePost2_cacheKey );\r\n
        \r\n
        if ( false === $planetUpdatePost2Array ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $post2Title = $planetUpdatePost2Array[0];\r\n
          $post2Link = $planetUpdatePost2Array[1];\r\n
          $post2Glyph1 = $planetUpdatePost2Array[2];\r\n
          $post2Glyph2 = $planetUpdatePost2Array[3];\r\n
          $post2Glyph3 = $planetUpdatePost2Array[4];\r\n
          $post2PublishDate = $planetUpdatePost2Array[5];\r\n
          $publishDate1Formatted = $planetUpdatePost2Array[6];\r\n
          $post2Content = apply_filters( 'the_content', $planetUpdatePost2Array[7] );\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-section printview-planetupdates">';\r\n
        \r\n
          $calendarPrintView .= '<h3>'.$post2Glyph1.''.$post2Glyph2.''.$post2Glyph3.''.$post2Title.'</h3>';\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-planetupdates">'.$post2Content.'</div>';\r\n
        \r\n
          $calendarPrintView .= '</div>';\r\n
          \r\n
        }\r\n
        \r\n
        $planetUpdatePost3_cacheKey = 'planetUpdatePost3_'.$todaysDateUnix;\r\n
        \r\n
        $planetUpdatePost3Array = get_transient( $planetUpdatePost3_cacheKey );\r\n
        \r\n
        if ( false === $planetUpdatePost3Array ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          $post3Title = $planetUpdatePost3Array[0];\r\n
          $post3Link = $planetUpdatePost3Array[1];\r\n
          $post3Glyph1 = $planetUpdatePost3Array[2];\r\n
          $post3Glyph2 = $planetUpdatePost3Array[3];\r\n
          $post3Glyph3 = $planetUpdatePost3Array[4];\r\n
          $post3PublishDate = $planetUpdatePost3Array[5];\r\n
          $publishDate1Formatted = $planetUpdatePost3Array[6];\r\n
          $post3Content = apply_filters( 'the_content', $planetUpdatePost3Array[7] );\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-section printview-planetupdates">';\r\n
        \r\n
          $calendarPrintView .= '<h3>'.$post3Glyph1.''.$post3Glyph2.''.$post3Glyph3.''.$post3Title.'</h3>';\r\n
        \r\n
          $calendarPrintView .= '<div class="printview-planetupdates">'.$post3Content.'</div>';\r\n
        \r\n
          $calendarPrintView .= '</div>';\r\n
          \r\n
        }\r\n
        \r\n
        // ------------------------------\r\n
        // "Key Influences" content\r\n
        // ------------------------------\r\n
        \r\n
        if ( $calType === 'paid' ) {\r\n
        \r\n
          if ( false === $influencesArray ) {\r\n
        \r\n
          } else {\r\n
        \r\n
            $calendarPrintView .= '<h2 class="printview-section-title">Your Transits</h2>';\r\n
        \r\n
            foreach ( $influencesArray as $influencesArrayItem ) {\r\n
        \r\n
              $influenceType = $influencesArrayItem['influence_type'];\r\n
              $newTransit = $influencesArrayItem['new_transit'];\r\n
              $currentDayUnix = $influencesArrayItem['currentday_unix'];\r\n
              $dateStart = $influencesArrayItem['datestart'];\r\n
              $dateStartFormatted = $influencesArrayItem['datestart_formatted'];\r\n
              $dateStartUnix = $influencesArrayItem['datestart_unix'];\r\n
              $dateEnd = $influencesArrayItem['dateend'];\r\n
              $dateEndFormatted = $influencesArrayItem['dateend_formatted'];\r\n
              $dateEndUnix = $influencesArrayItem['dateend_unix'];\r\n
              $periodTerm = $influencesArrayItem['periodterm'];\r\n
              $dateProgress = $influencesArrayItem['dateprogress'];\r\n
              $dateProgressRemaining = 100 - $dateProgress;\r\n
              $firstPlanet = $influencesArrayItem['firstplanet'];\r\n
              $firstPlanetIndex = $influencesArrayItem['firstplanetindex'];\r\n
              $combinationAspect = $influencesArrayItem['combinationaspect'];\r\n
              $secondPlanet = $influencesArrayItem['secondplanet'];\r\n
              $planetAspectGlyphs = $influencesArrayItem['planetaspect_glyphs'];\r\n
              $summary = $influencesArrayItem['summary'];\r\n
              $summaryString = $influencesArrayItem['summarystring'];\r\n
              $summaryStringCurrentDay = $influencesArrayItem['summarystring_currentday'];\r\n
              $heading = $influencesArrayItem['heading'];\r\n
              $text = $influencesArrayItem['text'];\r\n
              $description = $influencesArrayItem['description'];\r\n
              $categoryIcons = $influencesArrayItem['category_icons'];\r\n
              $categoryClasses = $influencesArrayItem['category_classes'];\r\n
        \r\n
        \r\n
              if ( ($firstPlanet == 'Sun') || ($firstPlanet == 'Mercury') || ($firstPlanet == 'Venus') || ($firstPlanet == 'Mars') ) {\r\n
        \r\n
                $calendarPrintView .= '<div class="printview-section influences printview-'.$influenceType.'">';\r\n
        \r\n
              } else {\r\n
        \r\n
                $calendarPrintView .= '<div class="printview-section influences printview-'.$influenceType.'" style="display: none;">';\r\n
        \r\n
              }\r\n
        \r\n
              if ( ($firstPlanet == 'Sun') || ($firstPlanet == 'Mercury') || ($firstPlanet == 'Venus') || ($firstPlanet == 'Mars') ) {\r\n
        \r\n
                $calendarPrintView .= '<div class="influences-wrapper short-influences-wrapper '.$categoryClasses.'">';\r\n
        \r\n
              } else {\r\n
        \r\n
                $calendarPrintView .= '<div class="influences-wrapper long-influences-wrapper '.$categoryClasses.'">';\r\n
        \r\n
              }\r\n
        \r\n
              if ( ($firstPlanet == 'Sun') || ($firstPlanet == 'Mercury') || ($firstPlanet == 'Venus') || ($firstPlanet == 'Mars') ) {\r\n
        \r\n
                $calendarPrintView .= '<div class="influence-type">Short-term</div>';\r\n
        \r\n
              } else {\r\n
        \r\n
                $calendarPrintView .= '<div class="influence-type">Long-term</div>';\r\n
        \r\n
              }\r\n
        \r\n
        \r\n
              $calendarPrintView .= '<h3>'.$planetAspectGlyphs.''.$summary.': '.$heading.'</h3>';\r\n
        \r\n
              $calendarPrintView .= '<div class="period-printview">';\r\n
        \r\n
              if ( ($firstPlanet == 'Sun') || ($firstPlanet == 'Mercury') || ($firstPlanet == 'Venus') || ($firstPlanet == 'Mars') ) {\r\n
        \r\n
                $calendarPrintView .= '<div>'.$periodTerm.' ('.$dateProgress.'%)</div>';\r\n
        \r\n
              } else {\r\n
        \r\n
                if ( (strpos($periodTerm, 'Longer') !== false) || (strpos($periodTerm, 'From') !== false) || (strpos($periodTerm, 'Up') !== false) ) {\r\n
        \r\n
                  $calendarPrintView .= '<div>'.$periodTerm.'</div>';\r\n
        \r\n
                } else {\r\n
        \r\n
                  $calendarPrintView .= '<div>'.$periodTerm.' ('.$dateProgress.'%)</div>';\r\n
        \r\n
                }\r\n
        \r\n
              }\r\n
        \r\n
              $calendarPrintView .= '<div class="progress progress-printview"><div class="bar" style="width:'.$dateProgress.'%"></div><div class="bar bar-remaining" style="width:'.$dateProgressRemaining.'%"></div></div>';\r\n
        \r\n
              $calendarPrintView .= '</div>';\r\n
        \r\n
              $calendarPrintView .= '<div class="cal-category-icons">'.$categoryIcons.'</div>';\r\n
        \r\n
              $calendarPrintView .= '<div class="influences-content">';\r\n
        \r\n
              $calendarPrintView .= '<p>'.$text.'</p>';\r\n
        \r\n
              $calendarPrintView .= '<p>'.$description.'</p>';\r\n
        \r\n
              $calendarPrintView .= '</div>';\r\n
        \r\n
              $calendarPrintView .= '</div>';\r\n
        \r\n
              $calendarPrintView .= '</div>';\r\n
        \r\n
            }\r\n
        \r\n
          }\r\n
        \r\n
        } else {}\r\n
        \r\n
        $calendarPrintView .= '</div>';\r\n
        \r\n
        if ( false === $celebBirthdayArray ) {\r\n
        \r\n
        } else {\r\n
        \r\n
          if ( $calType === 'free' ) {\r\n
        \r\n
            $upsellImage = '<img class="upsell-img" src="/wp-content/uploads/images/screenshots/kelli_fox_the_astrologer_personalized_forecast_calendar_sm.png" />';\r\n
        \r\n
            $personalTransit = '<img class="transit-ss" src="/wp-content/uploads/images/screenshots/kelli_fox_the_astrologer_member_forecast_calendar_transits_personalized_shortterm.png" />';\r\n
        \r\n
            $upsell = '<div id="upgrade" class="row calendar-upsell">';\r\n
            $upsell .= '<div class="col-lg-12">';\r\n
            $upsell .= '<h2 class="printview-section-title">Upgrade to a Personalized Calendar</h2>';\r\n
            $upsell .= '<div class="printview-section">';\r\n
            $upsell .= '<p>'.$upsellImage.'The personalized Forecast Calendar is your very own unique almanac that applies the current planetary influences to your natal or birth planets each and every day! This stellar phenomenon are what astrologers call transits, but the difference is that your transits are displayed in a familiar calendar format that\'s only for you.</p>';\r\n
            $upsell .= '<p>The way that the transiting planets interact with your natal planets creates focal points of energy at various points in time and for multiple durations. Your transits correlate to assorted areas of your life that are highlighted by the category icons within the Forecast Calendar. These icons represent auspicious timing for your <img class="inline-icon" src="/wp-content/uploads/images/glyphs/career.png"> career, when to <img class="inline-icon" src="/wp-content/uploads/images/glyphs/communication.png"> speak up, make a presentation or communicate, the best time to focus on <img class="inline-icon" src="/wp-content/uploads/images/glyphs/diet.png"> fitness, take charge of <img class="inline-icon" src="/wp-content/uploads/images/glyphs/money.png"> money matters, rekindle or find new <img class="inline-icon" src="/wp-content/uploads/images/glyphs/romance.png"> romance, host a party as well as advantageous timing for <img class="inline-icon" src="/wp-content/uploads/images/glyphs/traveling.png"> travel. Every one of your transits listed in the Forecast Calendar has an associated category icon which means your customized astrology has never before been as easy to understand or as simple to apply to your life.</p>';\r\n
            $upsell .= $personalTransit;\r\n
            $upsell .= '<p>For thousands of years, humankind have been using calendars and clocks to manage and schedule our time. It\'s how we keep our lives and routines efficient and functioning.  Now, imagine being able to use these ancient cosmic energies to your benefit. It\'s like the secrets of the Universe are suddenly revealed via a familiar format exclusively for you. Use the Forecast Calendar for insight and guidance, help you make better informed decisions, anticipate problems before they occur and give you tools to cope with changes and life\'s transitions. Best of all, the Forecast Calendar offers comfort in knowing there are wonderful days ahead.</p>';\r\n
        \r\n
            $upsell .= '<h3>Get the Personalized Calendar Now</h3>';\r\n
        \r\n
            $upsell .= '<p>You can select your made-to-order online calendar for any time period you prefer. View the calendar one to twelve months ahead from the date you start/renew your subscription. All yours just a few clicks away at:</p><p style="text-align:center;font-size:1.25em;"><strong><span class="hidden-xs">https://new.theastrologer.com/pfc/</span><span class="visible-xs-block"><a href="https://new.theastrologer.com/pfc/">https://new.theastrologer.com/pfc/</a></span></strong></p>'; \r\n
        \r\n
            $upsell .= '</div>';\r\n
            $upsell .= '</div>';\r\n
            $upsell .= '</div>';\r\n
        \r\n
          } else {}\r\n
        \r\n
        }\r\n
        \r\n
        echo $calendarPrintView;\r\n
        \r\n
        if ( $calType === 'paid' ) {\r\n
        \r\n
          echo $calendarPrintViewExtra;\r\n
        \r\n
        } else {\r\n
        \r\n
          echo $upsell;\r\n
        \r\n
        }\r\n
        \r\n
        // echo '<h3>Calendar date: '.$calendarDate.'</h3>';\r\n
        \r\n
        // echo '<p>'.$dailyMoonphase_cacheKey.'</p>';\r\n
        // echo '<pre>';\r\n
        // print_r($dailyMoonphaseArray);\r\n
        // echo '</pre>';\r\n
        \r\n
        // echo '<p>'.$celebBirthday_cacheKey.'</p>';\r\n
        // echo '<pre>';\r\n
        // print_r($celebBirthdayArray);\r\n
        // echo '</pre>';\r\n
        \r\n
        // echo '<p>'.$moonInSignToday_cacheKey.'</p>';\r\n
        // echo '<pre>';\r\n
        // print_r($moonInSignTodayArray);\r\n
        // echo '</pre>';\r\n
        \r\n
        // echo '<p>'.$moonInSignTomorrow_cacheKey.'</p>';\r\n
        // echo '<pre>';\r\n
        // print_r($moonInSignTomorrowArray);\r\n
        // echo '</pre>';\r\n
        \r\n
        // echo '<p>'.$dailyAspects1_cacheKey.'</p>';\r\n
        // echo '<pre>';\r\n
        // print_r($dailyAspects1);\r\n
        // echo '</pre>';\r\n
        \r\n
        // echo '<p>'.$planetUpdatePost1_cacheKey.'</p>';\r\n
        // echo '<pre>';\r\n
        // print_r($planetUpdatePost1Array);\r\n
        // echo '</pre>';\r\n
        \r\n
        // echo '<p>'.$influences_cacheKey.'</p>';\r\n
        // echo '<pre>';\r\n
        // print_r($influencesArray);\r\n
        // echo '</pre>';
        """
      "attribute_value" => "paid"
      "attribute_key" => "cal_type"
    ]
    
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
plugins
/
global-content-blocks-bk
/
global-content-blocks.php
        if(is_numeric($id)) {     
            $entry = gcb::get_entry_by_id(intval($id));
        } else {
            $entry = gcb::get_entry_by_custom_id($id);
        }        
    
        if(is_array($entry)) {            
            $content = htmlspecialchars_decode(stripslashes($entry['value']));
            
            //process the attributes
            if(is_array($attributes)&& count($attributes)){
                foreach($attributes as $attribute_key=>$attribute_value){
                    $content = str_replace("%%".$attribute_key."%%",$attribute_value,$content);
                }
            }            
            
            if($entry['type'] == "php") {
                //execute the php code
                ob_start();
                $result = eval(" ".$content);
                $output = ob_get_contents();
                ob_end_clean();
                
                return apply_filters('gcb_block_output', do_shortcode($output . $result));//run the shortcodes as well
            }
            elseif($entry['type'] == "html") {   // alloyphoto: enable PHP code in < ?php ... ? > tags inside blocks
                ob_start();
                eval("?>$content<?php ");
                $output = ob_get_contents();
                ob_end_clean();
                
                return apply_filters('gcb_block_output', do_shortcode($output));//run the shortcodes as well
            }
            else {
                return apply_filters('gcb_block_output', do_shortcode($content));//make sure we also run the shortcodes in here
            }
        }
        else
        {   return "";    }
    }
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
plugins
/
global-content-blocks-bk
/
global-content-blocks.php
                    $entries[count($entries)-1]["custom_id"] = (sanitize_title_with_dashes(base64_decode($row[4])));
                } else {
                $entries[count($entries)-1]["custom_id"] = "";
                }      
            }        
            foreach($entries as $e) {      
                gcb::add_entry($e);       
            }            
            return "Imported ".count($entries)." blocks.";            
        } else {
            return "Please Make sure you have a file uploaded.";
        }
    }
    
    function gcb_shortcode_replacer($atts, $content=null, $code="") {
        $a = shortcode_atts( array('id' => 0), $atts );
        
        if((is_numeric($a["id"]) && $a["id"]==0) || (!strlen($a["id"]))) return "";
        
        return gcb($a["id"],$atts);
    }
    
    /*
        * The processing function can also receive a number of arbitrary parameters, that we'll pass along and replace into the content
    */
    function gcb($id,$attributes=array()) {        
        //determine condition, since we can fetch blocks by 2 types of ids
        if(is_numeric($id)) {     
            $entry = gcb::get_entry_by_id(intval($id));
        } else {
            $entry = gcb::get_entry_by_custom_id($id);
        }        
    
        if(is_array($entry)) {            
            $content = htmlspecialchars_decode(stripslashes($entry['value']));
            
            //process the attributes
            if(is_array($attributes)&& count($attributes)){
                foreach($attributes as $attribute_key=>$attribute_value){
                    $content = str_replace("%%".$attribute_key."%%",$attribute_value,$content);
Arguments
  1. "forecast-calendar-print-view"
    
  2. array:2 [
      "id" => "forecast-calendar-print-view"
      "cal_type" => "paid"
    ]
    
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
shortcodes.php
     * Filters whether to call a shortcode callback.
     *
     * Passing a truthy value to the filter will effectively short-circuit the
     * shortcode generation process, returning that value instead.
     *
     * @since 4.7.0
     *
     * @param bool|string $return      Short-circuit return value. Either false or the value to replace the shortcode with.
     * @param string       $tag         Shortcode name.
     * @param array|string $attr        Shortcode attributes array or empty string.
     * @param array        $m           Regular expression match array.
     */
    $return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m );
    if ( false !== $return ) {
        return $return;
    }
 
    $content = isset( $m[5] ) ? $m[5] : null;
 
    $output = $m[1] . call_user_func( $shortcode_tags[ $tag ], $attr, $content, $tag ) . $m[6];
 
    /**
     * Filters the output created by a shortcode callback.
     *
     * @since 4.7.0
     *
     * @param string       $output Shortcode output.
     * @param string       $tag    Shortcode name.
     * @param array|string $attr   Shortcode attributes array or empty string.
     * @param array        $m      Regular expression match array.
     */
    return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
}
 
/**
 * Search only inside HTML elements for shortcodes and process them.
 *
 * Any [ or ] characters remaining inside elements will be HTML encoded
 * to prevent interference with shortcodes that are outside the elements.
 * Assumes $content processed by KSES already.  Users with unfiltered_html
Arguments
  1. array:2 [
      "id" => "forecast-calendar-print-view"
      "cal_type" => "paid"
    ]
    
  2. ""
    
  3. "contentblock"
    
[internal]
Arguments
  1. array:7 [
      0 => "[contentblock id=forecast-calendar-print-view cal_type=paid]"
      1 => ""
      2 => "contentblock"
      3 => " id=forecast-calendar-print-view cal_type=paid"
      4 => ""
      5 => ""
      6 => ""
    ]
    
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
shortcodes.php
 
    if ( false === strpos( $content, '[' ) ) {
        return $content;
    }
 
    if (empty($shortcode_tags) || !is_array($shortcode_tags))
        return $content;
 
    // Find all registered tag names in $content.
    preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
    $tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );
 
    if ( empty( $tagnames ) ) {
        return $content;
    }
 
    $content = do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames );
 
    $pattern = get_shortcode_regex( $tagnames );
    $content = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $content );
 
    // Always restore square braces so we don't break things like <!--[if IE ]>
    $content = unescape_invalid_shortcodes( $content );
 
    return $content;
}
 
/**
 * Retrieve the shortcode regular expression for searching.
 *
 * The regular expression combines the shortcode tags in the regular expression
 * in a regex class.
 *
 * The regular expression contains 6 different sub matches to help with parsing.
 *
 * 1 - An extra [ to allow for escaping shortcodes with double [[]]
 * 2 - The shortcode name
 * 3 - The shortcode argument list
 * 4 - The self closing /
 * 5 - The content of a shortcode when it wraps some content.
Arguments
  1. "/\[(\[?)(contentblock)(?![\w-])([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)/"
    
  2. "do_shortcode_tag"
    
  3. "[contentblock id=forecast-calendar-print-view cal_type=paid]\n"
    
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
class-wp-hook.php
        }
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] );
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if( ! $this->doing_action ) {
                    $args[ 0 ] = $value;
                }
 
                // Avoid the array_slice if possible.
                if ( $the_['accepted_args'] == 0 ) {
                    $value = call_user_func_array( $the_['function'], array() );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int)$the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Executes the callback functions hooked on a specific action hook.
     *
     * @since 4.7.0
     *
     * @param mixed $args Arguments to pass to the hook callbacks.
Arguments
  1. "[contentblock id=forecast-calendar-print-view cal_type=paid]\n"
    
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
plugin.php
        $args = func_get_args();
        _wp_call_all_hook($args);
    }
 
    if ( !isset($wp_filter[$tag]) ) {
        if ( isset($wp_filter['all']) )
            array_pop($wp_current_filter);
        return $value;
    }
 
    if ( !isset($wp_filter['all']) )
        $wp_current_filter[] = $tag;
 
    if ( empty($args) )
        $args = func_get_args();
 
    // don't pass the tag name to WP_Hook
    array_shift( $args );
 
    $filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Execute functions hooked on a specific filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 * functions hooked to `$tag` are supplied using an array.
 *
 * @global array $wp_filter         Stores all of the filters
 * @global array $wp_current_filter Stores the list of current filters with the current one last
 *
 * @param string $tag  The name of the filter hook.
 * @param array  $args The arguments supplied to the functions hooked to $tag.
 * @return mixed The filtered value after all hooked functions are applied to it.
Arguments
  1. "[contentblock id=forecast-calendar-print-view cal_type=paid]\n"
    
  2. array:1 [
      0 => "[contentblock id=forecast-calendar-print-view cal_type=paid]\n"
    ]
    
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
post-template.php
 
/**
 * Display the post content.
 *
 * @since 0.71
 *
 * @param string $more_link_text Optional. Content for when there is more text.
 * @param bool   $strip_teaser   Optional. Strip teaser content before the more text. Default is false.
 */
function the_content( $more_link_text = null, $strip_teaser = false) {
    $content = get_the_content( $more_link_text, $strip_teaser );
 
    /**
     * Filters the post content.
     *
     * @since 0.71
     *
     * @param string $content Content of the current post.
     */
    $content = apply_filters( 'the_content', $content );
    $content = str_replace( ']]>', ']]&gt;', $content );
    echo $content;
}
 
/**
 * Retrieve the post content.
 *
 * @since 0.71
 *
 * @global int   $page      Page number of a single post/page.
 * @global int   $more      Boolean indicator for whether single post/page is being viewed.
 * @global bool  $preview   Whether post/page is in preview mode.
 * @global array $pages     Array of all pages in post/page. Each array element contains part of the content separated by the <!--nextpage--> tag.
 * @global int   $multipage Boolean indicator for whether multiple pages are in play.
 *
 * @param string $more_link_text Optional. Content for when there is more text.
 * @param bool   $strip_teaser   Optional. Strip teaser content before the more text. Default is false.
 * @return string
 */
function get_the_content( $more_link_text = null, $strip_teaser = false ) {
Arguments
  1. "the_content"
    
  2. "[contentblock id=forecast-calendar-print-view cal_type=paid]"
    
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
themes
/
bb-theme-child
/
content-page.php
        <?php if (is_front_page()) : ?>
        <h1 class="fl-post-title" itemprop="headline"><?php the_title(); ?></h1>
        <?php edit_post_link(__('Edit', 'fl-automator')); ?>
        <?php endif; ?>
        <?php if ( ! is_page( array( 55088, 62301, 62302, 62303, 62304, 62313, 62314 ) ) ) : ?>
            <?php
            global $mobile_smart;
            if ($mobile_smart->switcher_isMobile()) : ?>
                <?php echo gcb(110); ?>
            <?php endif; ?>
        <?php endif; ?>
        <?php if (!is_front_page()) : ?>
        <h1 class="fl-post-title" itemprop="headline"><?php the_title(); ?></h1>
        <?php edit_post_link(__('Edit', 'fl-automator')); ?>
        <?php endif; ?>
    </header><!-- .fl-post-header -->
    
    <div class="fl-post-content clearfix" itemprop="text">
        <?php 
            the_content(); 
        
            wp_link_pages(array(
                'before' => '<div class="fl-post-page-nav">' . __('Pages:', 'fl-automator'), 
                'after' => '</div>', 
                'next_or_number' => 'number'
            ));
        ?>
    </div><!-- .fl-post-content -->
 
    <div class="row">
        <div class="col-md-8">    
            <?php comments_template(); ?>
        </div>
        <div class="col-md-4">    
        </div>
    </div>
    
</article>
<!-- .fl-post -->
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
template.php
 * @global int        $user_ID
 *
 * @param string $_template_file Path to template file.
 * @param bool   $require_once   Whether to require_once or require. Default true.
 */
function load_template( $_template_file, $require_once = true ) {
    global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;
 
    if ( is_array( $wp_query->query_vars ) ) {
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    if ( $require_once ) {
        require_once( $_template_file );
    } else {
        require( $_template_file );
    }
}
 
Arguments
  1. "/www/newtheastrologercom_455/public/wp-content/themes/bb-theme-child/content-page.php"
    
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
template.php
 */
function locate_template($template_names, $load = false, $require_once = true ) {
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( !$template_name )
            continue;
        if ( file_exists(STYLESHEETPATH . '/' . $template_name)) {
            $located = STYLESHEETPATH . '/' . $template_name;
            break;
        } elseif ( file_exists(TEMPLATEPATH . '/' . $template_name) ) {
            $located = TEMPLATEPATH . '/' . $template_name;
            break;
        } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
            $located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
            break;
        }
    }
 
    if ( $load && '' != $located )
        load_template( $located, $require_once );
 
    return $located;
}
 
/**
 * Require the template file with WordPress environment.
 *
 * The globals are set up for the template file to ensure that the WordPress
 * environment is available from within the function. The query variables are
 * also available.
 *
 * @since 1.5.0
 *
 * @global array      $posts
 * @global WP_Post    $post
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query
 * @global WP_Rewrite $wp_rewrite
 * @global wpdb       $wpdb
 * @global string     $wp_version
Arguments
  1. "/www/newtheastrologercom_455/public/wp-content/themes/bb-theme-child/content-page.php"
    
  2. false
    
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
general-template.php
     * Fires before the specified template part file is loaded.
     *
     * The dynamic portion of the hook name, `$slug`, refers to the slug name
     * for the generic template part.
     *
     * @since 3.0.0
     *
     * @param string      $slug The slug name for the generic template.
     * @param string|null $name The name of the specialized template.
     */
    do_action( "get_template_part_{$slug}", $slug, $name );
 
    $templates = array();
    $name = (string) $name;
    if ( '' !== $name )
        $templates[] = "{$slug}-{$name}.php";
 
    $templates[] = "{$slug}.php";
 
    locate_template($templates, true, false);
}
 
/**
 * Display search form.
 *
 * Will first attempt to locate the searchform.php file in either the child or
 * the parent, then load it. If it doesn't exist, then the default search form
 * will be displayed. The default search form is HTML, which will be displayed.
 * There is a filter applied to the search form HTML in order to edit or replace
 * it. The filter is {@see 'get_search_form'}.
 *
 * This function is primarily used by themes which want to hardcode the search
 * form into the sidebar and also by the search widget in WordPress.
 *
 * There is also an action that is called whenever the function is run called,
 * {@see 'pre_get_search_form'}. This can be useful for outputting JavaScript that the
 * search relies on or various formatting that applies to the beginning of the
 * search. To give a few examples of what it can be used for.
 *
 * @since 2.7.0
Arguments
  1. array:2 [
      0 => "content-page.php"
      1 => "content.php"
    ]
    
  2. true
    
  3. false
    
/
www
/
newtheastrologercom_455
/
public
/
wp-content
/
themes
/
bb-theme
/
tpl-no-header-footer.php
<?php
 
/*
Template Name: No Header/Footer
Template Post Type: post, page
*/
 
add_filter( 'fl_topbar_enabled', '__return_false' );
add_filter( 'fl_fixed_header_enabled', '__return_false' );
add_filter( 'fl_header_enabled', '__return_false' );
add_filter( 'fl_footer_enabled', '__return_false' );
get_header();
 
?>
 
<div class="fl-content-full container">
    <div class="row">
        <div class="fl-content col-md-12">
            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                <?php get_template_part( 'content', 'page' ); ?>
            <?php endwhile;
endif; ?>
        </div>
    </div>
</div>
 
<?php get_footer(); ?>
 
Arguments
  1. "content"
    
  2. "page"
    
/
www
/
newtheastrologercom_455
/
public
/
wp-includes
/
template-loader.php
    elseif ( is_single()         && $template = get_single_template()         ) :
    elseif ( is_page()           && $template = get_page_template()           ) :
    elseif ( is_singular()       && $template = get_singular_template()       ) :
    elseif ( is_category()       && $template = get_category_template()       ) :
    elseif ( is_tag()            && $template = get_tag_template()            ) :
    elseif ( is_author()         && $template = get_author_template()         ) :
    elseif ( is_date()           && $template = get_date_template()           ) :
    elseif ( is_archive()        && $template = get_archive_template()        ) :
    else :
        $template = get_index_template();
    endif;
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    if ( $template = apply_filters( 'template_include', $template ) ) {
        include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
endif;
 
Arguments
  1. "/www/newtheastrologercom_455/public/wp-content/themes/bb-theme/tpl-no-header-footer.php"
    
/
www
/
newtheastrologercom_455
/
public
/
wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( !isset($wp_did_header) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once( dirname(__FILE__) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
Arguments
  1. "/www/newtheastrologercom_455/public/wp-includes/template-loader.php"
    
/
www
/
newtheastrologercom_455
/
public
/
index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);
 
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
 
Arguments
  1. "/www/newtheastrologercom_455/public/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"nginx/1.21.5"
REQUEST_URI
"/forecast-calendar/member/print/"
USER
"newtheastrologercom"
HOME
"/www/newtheastrologercom_455"
HTTP_CF_WORKER
"kinsta.cloud"
HTTP_X_KINSTA_EDGE_LB
"KCW"
HTTP_X_KINSTA_EDGE_INCOMINGIP
"3.237.27.159"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_DEVICE_TYPE
"desktop"
HTTP_CF_CONNECTING_IP
"3.237.27.159"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_CDN_LOOP
"cloudflare; subreqs=1"
HTTP_CF_EW_VIA
"15"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_RAY
"754e526293339c3d-IAD"
HTTP_X_FORWARDED_FOR
"3.237.27.159"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_CONNECTION
"Keep-Alive"
SCRIPT_FILENAME
"/www/newtheastrologercom_455/public/index.php"
REDIRECT_STATUS
"200"
WP_ENVIRONMENT_TYPE
"production"
KINSTA_CACHE_ZONE
"KINSTAWP"
SERVER_NAME
"new.theastrologer.com"
SERVER_PORT
"443"
SERVER_ADDR
"10.0.10.34"
REMOTE_PORT
""
REMOTE_ADDR
"3.237.27.159"
GATEWAY_INTERFACE
"CGI/1.1"
HTTP_HOST
"new.theastrologer.com"
HTTPS
"on"
SERVER_PROTOCOL
"HTTP/1.1"
DOCUMENT_ROOT
"/www/newtheastrologercom_455/public"
DOCUMENT_URI
"/index.php"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
"1664890747.3977"
REQUEST_TIME
"1664890747"
empty
0. Whoops\Handler\PrettyPageHandler