Skip to content

Commit

Permalink
view page article add
Browse files Browse the repository at this point in the history
  • Loading branch information
mediafoks committed Oct 18, 2024
1 parent 255e7da commit 9d694a0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ksopengraph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<copyright>Copyright (C) 2024 Sergey Kuznetsov</copyright>
<license>MIT</license>
<authorEmail>mediafoks@google.com</authorEmail>
<version>1.2.0</version>
<version>1.2.1</version>
<description>PLG_CONTENT_KS_OPEN_GRAPH_XML_DESCRIPTION</description>
<namespace path="src">Joomla\Plugin\Content\KsOpenGraph</namespace>
<files>
Expand Down
2 changes: 1 addition & 1 deletion services/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*
* @return void
*
* @since 1.2.0
* @since 1.2.1
*/
public function register(Container $container)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Extension/KsOpenGraph.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* @version 1.2.0
* @version 1.2.1
* @package ksopengraph (plugin)
* @author Sergey Kuznetsov - mediafoks@google.com
* @copyright Copyright (c) 2024 Sergey Kuznetsov
Expand Down Expand Up @@ -195,7 +195,7 @@ public function onContentAfterDisplay(AfterDisplayEvent $event): void
$thisDescription = $event->getItem()->con_position;
$thisImage = $event->getItem()->image;
$this->pluginNr = 1;
} else {
} elseif ($view == 'article' && $this->pluginNr == 0) {
$article_page_title = $event->getItem()->params['article_page_title'];
$menu_metasesc = $app->getParams()->get('menu-meta_description');
$metadesc = $event->getItem()->metadesc;
Expand All @@ -222,7 +222,7 @@ public function onContentAfterDisplay(AfterDisplayEvent $event): void
$thisImage = $thisImageDefault;
}
$this->pluginNr = 1;
}
} else return;

$this->renderTag('og:site_name', $config->get('sitename'), $type);
$this->renderTag('og:title', $thisTitle, $type);
Expand Down
4 changes: 2 additions & 2 deletions update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<element>ksopengraph</element>
<type>plugin</type>
<folder>content</folder>
<version>1.2.0</version>
<version>1.2.1</version>
<downloads>
<downloadurl type="full" format="zip">https://github.com/mediafoks/plg_content_ksopengraph/archive/refs/tags/v1.2.0.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/mediafoks/plg_content_ksopengraph/archive/refs/tags/v1.2.1.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
Expand Down

0 comments on commit 9d694a0

Please sign in to comment.