'') { if (SQ_Classes_Helpers_Tools::getOption('sq_use')) { if (isset($view->post) && $view->post && isset($view->post->hash) && $view->post->hash <> '') { $patterns = SQ_Classes_Helpers_Tools::getOption('patterns'); $socials = json_decode(json_encode(SQ_Classes_Helpers_Tools::getOption('socials'))); $codes = json_decode(json_encode(SQ_Classes_Helpers_Tools::getOption('codes'))); //Check if the patterns are loaded for this post $loadpatterns = true; if (!SQ_Classes_Helpers_Tools::getOption('sq_auto_pattern') || !$view->post->sq->do_pattern) { $loadpatterns = false; } //Clear the Title and Description for admin use only $view->post->sq->title = $view->post->sq->getClearedTitle(); $view->post->sq->description = $view->post->sq->getClearedDescription(); if ($view->post->sq->og_media == '') { if ($og = SQ_Classes_ObjController::getClass('SQ_Models_Services_OpenGraph')) { $images = $og->getPostImages(); if (!empty($images)) { $image = current($images); if (isset($image['src'])) { if ($view->post->sq->og_media == '') $view->post->sq->og_media = $image['src']; } } } } if ($view->post->sq->tw_media == '') { if ($tc = SQ_Classes_ObjController::getClass('SQ_Models_Services_TwitterCard')) { $images = $tc->getPostImages(); if (!empty($images)) { $image = current($images); if (isset($image['src'])) { if ($view->post->sq->tw_media == '') $view->post->sq->tw_media = $image['src']; } } } } if ($view->post->ID > 0 && function_exists('get_sample_permalink')) { list($permalink, $post_name) = get_sample_permalink($view->post->ID); if (strpos($permalink, '%postname%') !== false || strpos($permalink, '%pagename%') !== false) { $view->post->url = str_replace(array('%pagename%', '%postname%'), esc_html($post_name), esc_html(urldecode($permalink))); } } //Set the preview title and description in case Squirrly SEO is switched off for Title and Description $preview_title = (SQ_Classes_Helpers_Tools::getOption('sq_auto_title') ? $view->post->sq->title : $view->post->post_title); $preview_description = (SQ_Classes_Helpers_Tools::getOption('sq_auto_description') ? $view->post->sq->description : $view->post->post_excerpt); $preview_keywords = (SQ_Classes_Helpers_Tools::getOption('sq_auto_keywords') ? $view->post->sq->keywords : ''); ?>
x
post->sq->do_metas) { ?>
SEO Settings%s. Squirrly SEO will not load for this post type on the frontend', _SQ_PLUGIN_NAME_), '' . $view->post->post_type . '', '', '') ?>
:
post->post_title <> __('Auto Draft') && $view->post->post_title <> __('AUTO-DRAFT')) { ?>
:
post->sq_adm->title_maxlength); ?>
post->sq_adm->title) ?>/post->sq_adm->title_maxlength ?>
: post->sq->title ?>
post->post_title) && $view->post->post_title <> '') { ?>
: post->post_title ?>
post->sq_adm->patterns->title <> '') { ?>
' . $view->post->sq_adm->patterns->title . '' : '') ?>
:
post->sq_adm->description_maxlength); ?>
post->sq_adm->description) ?>/post->sq_adm->description_maxlength ?>
post->sq->description) && $view->post->sq->description <> '') { ?>
: post->sq->description ?>
post->post_excerpt) && $view->post->post_excerpt <> '') { ?>
: post->post_excerpt ?>
post->sq_adm->patterns->description <> '') { ?>
' . $view->post->sq_adm->patterns->description . '' : '') ?>
:
:
:
post->url) && $view->post->url <> '') { ?>
: post->url) ?>
post->sq->do_jsonld) { ?>
SEO Settings > Automation%s.', _SQ_PLUGIN_NAME_), $view->post->post_type, '', '') ?>
post->sq_adm->jsonld <> '') ? $view->post->sq_adm->jsonld : (apply_filters('sq_json_ld', false) ? wp_json_encode(apply_filters('sq_json_ld', false)) : false))) { $jsonld_data = wp_unslash($jsonld_data); $jsonld_data = trim($jsonld_data, '""'); $jsonld_data = strip_tags($jsonld_data); } else { $jsonld_data = ''; } ?>
:
post->sq_adm->jsonld == '') ? 'style="display: none;"' : '') ?>>
:
', ''); ?>
:
post->sq->do_og) { ?>
SEO Settings%s. Squirrly SEO will not load for this post type on the frontend', _SQ_PLUGIN_NAME_), '' . $view->post->post_type . '', '', '') ?>
:
post->sq->og_media <> '') { @list($width, $height) = getimagesize($view->post->sq->og_media); if ((int)$width > 0 && (int)$width < 500) { ?>
post->post_title <> __('Auto Draft') && $view->post->post_title <> __('AUTO-DRAFT')) { ?>
    post->sq->og_media <> '') { ?>
  • post->post_attachment <> '') { ?>
  • post->sq->og_title <> '' ? $view->post->sq->og_title : SQ_Classes_Helpers_Sanitize::truncate($view->post->sq->title, 10, $view->post->sq->og_title_maxlength)) ?>
  • post->sq->og_description <> '' ? $view->post->sq->og_description : SQ_Classes_Helpers_Sanitize::truncate($view->post->sq->description, 10, $view->post->sq->og_description_maxlength)) ?>
:
x
:
post->sq_adm->og_title_maxlength); ?>
post->sq_adm->og_title) ?>/post->sq_adm->og_title_maxlength ?>
: post->sq->og_title ?>
post->post_title) && $view->post->post_title <> '') { ?>
: post->post_title ?>
post->sq_adm->patterns->title <> '') { ?>
' . $view->post->sq_adm->patterns->title . '' : '') ?>
:
post->sq_adm->og_description_maxlength); ?>
post->sq_adm->og_description) ?>/post->sq_adm->og_description_maxlength ?>
post->sq->og_description) && $view->post->sq->og_description <> '') { ?>
: post->sq->og_description ?>
post->post_excerpt) && $view->post->post_excerpt <> '') { ?>
: post->post_excerpt ?>
post->sq_adm->patterns->description <> '') { ?>
' . $view->post->sq_adm->patterns->description . '' : '') ?>
:
:
post->sq->do_twc) { ?>
SEO Settings%s. Squirrly SEO will not load for this post type on the frontend', _SQ_PLUGIN_NAME_), '' . $view->post->post_type . '', '', '') ?>
:
post->sq->tw_media <> '') { @list($width, $height) = getimagesize($view->post->sq->tw_media); if ((int)$width > 0 && (int)$width < 500) { ?>
post->post_title <> __('Auto Draft') && $view->post->post_title <> __('AUTO-DRAFT')) { ?>
    post->sq->tw_media <> '') { ?>
  • post->post_attachment <> '') { ?>
  • post->sq->tw_title <> '' ? $view->post->sq->tw_title : SQ_Classes_Helpers_Sanitize::truncate($view->post->sq->title, 10, $view->post->sq->tw_title_maxlength)) ?>
  • post->sq->tw_description <> '' ? $view->post->sq->tw_description : SQ_Classes_Helpers_Sanitize::truncate($view->post->sq->description, 10, $view->post->sq->tw_description_maxlength)) ?>
:
x
:
post->sq_adm->og_title_maxlength); ?>
post->sq_adm->tw_title) ?>/post->sq_adm->tw_title_maxlength ?>
: post->sq->tw_title ?>
post->post_title) && $view->post->post_title <> '') { ?>
: post->post_title ?>
post->sq_adm->patterns->title <> '') { ?>
' . $view->post->sq_adm->patterns->title . '' : '') ?>
:
post->sq_adm->og_description_maxlength); ?>
post->sq_adm->tw_description) ?>/post->sq_adm->tw_description_maxlength ?>
post->sq->tw_description) && $view->post->sq->tw_description <> '') { ?>
: post->sq->tw_description ?>
post->post_excerpt) && $view->post->post_excerpt <> '') { ?>
: post->post_excerpt ?>
post->sq_adm->patterns->description <> '') { ?>
' . $view->post->sq_adm->patterns->description . '' : '') ?>
:
', ''); ?>
post->sq->do_fpixel) { ?>
SEO Settings > Automation%s.', _SQ_PLUGIN_NAME_), '', '') ?>
post->sq_adm->fpixel <> '') ? $view->post->sq_adm->fpixel : $sq_facebook_pixel); ?>
:
post->sq_adm->fpixel == '') ? 'style="display: none;"' : '') ?>>
:
', ''); ?>
:
facebook_pixel <> '') { ?>
SEO Settings > Tracking Tools%s.', _SQ_PLUGIN_NAME_), '', '') ?>
Reading%s. It's important to uncheck that option.", _SQ_PLUGIN_NAME_), __('Discourage search engines from indexing this site'), '', '') ?>
post->post_type]['noindex']) && $patterns[$view->post->post_type]['noindex']) { ?>
SEO Settings > Automation%s.', _SQ_PLUGIN_NAME_), $view->post->post_type, '', '') ?>
post->sq_adm->noindex == 0) ? 'checked="checked"' : ''; ?> value="0"/>
post->post_type]['nofollow']) && $patterns[$view->post->post_type]['nofollow']) { ?>
SEO Settings > Automation%s.', _SQ_PLUGIN_NAME_), $view->post->post_type, '', '') ?>
post->sq_adm->nofollow == 0) ? 'checked="checked"' : ''; ?> value="0"/>
post->sq->do_sitemap) { ?>
SEO Settings > Automation%s.', _SQ_PLUGIN_NAME_), $view->post->post_type, '', '') ?>
post->sq_adm->nositemap == 0) ? 'checked="checked"' : ''; ?> value="0"/>
x
x
x
x
', '') ?>