Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ViorelEremia committed Nov 15, 2017
1 parent 023f1a4 commit b6c431c
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ public function _action_add_meta() {
case 'front_page' :
$description = fw_ext_seo_parse_meta_tags( fw_get_db_ext_settings_option( $this->get_parent()->get_name(),
$prefix . 'homepage-description' ) );

if ( ! empty( $description ) ) {
$data['description'] = array(
'content' => $description,
Expand All @@ -238,6 +239,7 @@ public function _action_add_meta() {
} elseif ( isset( $location['id'] ) ) {
$description = fw_ext_seo_parse_meta_tags( fw_get_db_post_option( $location['id'],
$prefix . 'description' ) );

if ( ! empty( $description ) ) {
$data['description'] = array(
'content' => $description,
Expand All @@ -246,9 +248,7 @@ public function _action_add_meta() {
}
}

if ( fw_get_db_ext_settings_option( $this->get_parent()->get_name(),
'seo-titles-metas-metakeywords' ) === true
) {
if ( fw_get_db_ext_settings_option( $this->get_parent()->get_name(), 'seo-titles-metas-metakeywords' ) === true ) {
$meta_keywords = fw_ext_seo_parse_meta_tags( fw_get_db_ext_settings_option( $this->get_parent()->get_name(),
$prefix . 'homepage-metakeywords' ) );

Expand All @@ -260,10 +260,11 @@ public function _action_add_meta() {
} elseif ( isset( $location['id'] ) ) {
$meta_keywords = fw_ext_seo_parse_meta_tags( fw_get_db_post_option( $location['id'],
$prefix . 'metakeywords' ) );

if ( ! empty( $meta_keywords ) ) {
$data['keywords'] = array(
'content' => $meta_keywords,
'name' => 'description'
'name' => 'keywords'
);
}
}
Expand Down

0 comments on commit b6c431c

Please sign in to comment.