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( \"[contentblock id=long-term-vcal-data]\" );\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->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>\';
"""
"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"
]