Skip to content

Commit

Permalink
edite sameAS
Browse files Browse the repository at this point in the history
  • Loading branch information
webjetclouds-agency committed Oct 16, 2020
1 parent 998a14d commit bf14930
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 20 deletions.
4 changes: 2 additions & 2 deletions language/en-GB/en-GB.mod_metatags.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
; @package Module for Joomla >= 3.9
; @subpackage mod_metatags
; @version 4.3.2
; @version 4.3.3
; @author Alexon Balangue
; @link https://alexonbstudio.fr
; @copyright (C) 2012-2020 AlexonbStudio. All rights reserved.
; @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html


MOD_METATAGS="Module - MetaTags"
MOD_METATAGS_XML_DESCRIPTION="MetaTags: this module makes life easier to improve your natural referencing SEO and several features including share button, analytics & marketing, chatbot, Json-LD and much more if I forgot nothing<br /> <br /> Développer par Alexon Balangue pour joomla 3.x seulement<br /> <h3>Version actuel: 4.3.2</h3> <hr /> "
MOD_METATAGS_XML_DESCRIPTION="MetaTags: this module makes life easier to improve your natural referencing SEO and several features including share button, analytics & marketing, chatbot, Json-LD and much more if I forgot nothing<br /> <br /> Développer par Alexon Balangue pour joomla 3.x seulement<br /> <h3>Version actuel: 4.3.3</h3> <hr /> "


JFIELD_MOD_METATAGS_CHOOSE="Choose"
4 changes: 2 additions & 2 deletions language/en-GB/en-GB.mod_metatags.sys.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
; @package Module for Joomla >= 3.9
; @subpackage mod_metatags
; @version 4.3.2
; @version 4.3.3
; @author Alexon Balangue
; @link https://alexonbstudio.fr
; @copyright (C) 2012-2020 AlexonbStudio. All rights reserved.
; @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html


MOD_METATAGS="Module - MetaTags"
MOD_METATAGS_XML_DESCRIPTION="MetaTags: this module makes life easier to improve your natural referencing SEO and several features including share button, analytics & marketing, chatbot, Json-LD and much more if I forgot nothing<br /> <br /> Développer par Alexon Balangue pour joomla 3.x seulement<br /> <h3>Version actuel: 4.3.2</h3> <hr /> "
MOD_METATAGS_XML_DESCRIPTION="MetaTags: this module makes life easier to improve your natural referencing SEO and several features including share button, analytics & marketing, chatbot, Json-LD and much more if I forgot nothing<br /> <br /> Développer par Alexon Balangue pour joomla 3.x seulement<br /> <h3>Version actuel: 4.3.3</h3> <hr /> "


JFIELD_MOD_METATAGS_CHOOSE="Choose"
4 changes: 2 additions & 2 deletions language/fr-FR/fr-FR.mod_metatags.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
; @package Module for Joomla >= 3.9
; @subpackage mod_metatags
; @version 4.3.2
; @version 4.3.3
; @author Alexon Balangue
; @link https://alexonbstudio.fr
; @copyright (C) 2012-2020 AlexonbStudio. All rights reserved.
; @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html


MOD_METATAGS="Module - MetaTags"
MOD_METATAGS_XML_DESCRIPTION="MetaTags: ce module vous falicitez la vie pour améliorer votre référencement naturel et plusieurs fonctionnalité incluant les button de partage, analytics & marketing, chatbot, le Json-LD et plein plus encore si j'ai rien oublié<br /> <br /> Développer par Alexon Balangue pour joomla 3.x seulement<br /> <h3>Version actuel: 4.3.2</h3> <hr /> "
MOD_METATAGS_XML_DESCRIPTION="MetaTags: ce module vous falicitez la vie pour améliorer votre référencement naturel et plusieurs fonctionnalité incluant les button de partage, analytics & marketing, chatbot, le Json-LD et plein plus encore si j'ai rien oublié<br /> <br /> Développer par Alexon Balangue pour joomla 3.x seulement<br /> <h3>Version actuel: 4.3.3</h3> <hr /> "


JFIELD_MOD_METATAGS_CHOOSE="Choisir"
Expand Down
4 changes: 2 additions & 2 deletions language/fr-FR/fr-FR.mod_metatags.sys.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
; @package Module for Joomla >= 3.9
; @subpackage mod_metatags
; @version 4.3.2
; @version 4.3.3
; @author Alexon Balangue
; @link https://alexonbstudio.fr
; @copyright (C) 2012-2020 AlexonbStudio. All rights reserved.
; @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html


MOD_METATAGS="Module - MetaTags"
MOD_METATAGS_XML_DESCRIPTION="MetaTags: ce module vous falicitez la vie pour améliorer votre référencement naturel et plusieurs fonctionnalité incluant les button de partage, analytics & marketing, chatbot, le Json-LD et plein plus encore si j'ai rien oublié<br /> <br /> Développer par Alexon Balangue pour joomla 3.x seulement<br /> <h3>Version actuel: 4.3.2</h3> <hr /> "
MOD_METATAGS_XML_DESCRIPTION="MetaTags: ce module vous falicitez la vie pour améliorer votre référencement naturel et plusieurs fonctionnalité incluant les button de partage, analytics & marketing, chatbot, le Json-LD et plein plus encore si j'ai rien oublié<br /> <br /> Développer par Alexon Balangue pour joomla 3.x seulement<br /> <h3>Version actuel: 4.3.3</h3> <hr /> "


JFIELD_MOD_METATAGS_CHOOSE="Choisir"
2 changes: 1 addition & 1 deletion mod_metatags.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @package Module for Joomla!
* @subpackage mod_metatags
* @version 4.3.2
* @version 4.3.3
* @author Alexon Balangue
* @copyright (C) 2012-2020 Alexonbstudio. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
Expand Down
2 changes: 1 addition & 1 deletion mod_metatags.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="utf-8"?><extension type="module" version="3.9" client="site" method="upgrade"> <name>module - metatags</name> <author>Alexon Balangue</author> <creationDate>19 april 2019</creationDate> <copyright>Copyright (C) 2012-2020 AlexnbStudio. All rights reserved.</copyright> <license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license> <authorEmail>[email protected]</authorEmail> <authorUrl>www.alexonbstudio.fr</authorUrl> <version>4.3.2</version> <description>MOD_METATAGS_XML_DESCRIPTION</description> <files> <filename module="mod_metatags">mod_metatags.php</filename> <filename>mod_metatags.xml</filename> <folder>tmpl</folder> <filename>index.html</filename> </files> <languages folder="language"> <language tag="en-GB">en-GB/en-GB.mod_metatags.ini</language> <language tag="en-GB">en-GB/en-GB.mod_metatags.sys.ini</language> <language tag="fr-FR">fr-FR/fr-FR.mod_metatags.ini</language> <language tag="fr-FR">fr-FR/fr-FR.mod_metatags.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="robots" type="text" default="index, follow" label="robots" description="" /> <field type="media" name="logo" default="" label="Logo" description="" directory="" /> </fieldset> <fieldset name="socialmedia" label="Social Media"> <field name="twitter-card" type="text" default="summary" label="Twitter Card" description="" /> <field type="text" name="twitter-user" label="Twitter username" default="alexonbstudio" description="" /> <field name="og-type" type="list" default="article" label="OG Type" description=""> <option value="website">website</option> <option value="article">article</option> </field> <field name="fb-admins" type="text" default="" label="Facebook admins ID" description="" /> <field name="fb-app-id" type="text" default="" label="Facebook apps ID" description="" /> <field name="fb-profils-id" type="text" default="" label="Facebook Profils ID" description="" /> </fieldset> <fieldset name="custom" label="Custom script and Backlinks"> <field name="head-script-frontend" type="textarea" default="" label="Enter some html (HEAD)" description="" rows="3" /> <field name="footer-script-frontend" type="textarea" default="" label="Enter some html (BODY)" description="" rows="3" /> </fieldset> <fieldset name="jsonld" label="JSONLD"> <field name="jld-type" type="list" default="Person" label="Json-LD - Type" description=""> <option value="Person">person</option> <option value="Organisation">organisation</option> </field> <field name="jld-socialURL" type="textarea" default="" label="sameAs Social with Quote and comma." description="ex: &quot;https://social.tld/username&quot;, &quot;https://social2.tld/username&quot;, etc..." rows="3" /> </fieldset> <fieldset name="analysticsmarketing" label="Analystic and Marketing"> <field name="g-tagmanger" type="text" default="" label="Google Tags Manager" description="api Code GTM" /> <field name="g-analytics" type="text" default="" label="Google Analystics" description="api UA-xxxx-x" /> <field name="g-adsense" type="text" default="" label="Google Adsense" description="api ca-xxxxxxxx" /> <field name="yx-analytics" type="text" default="" label="Yandex Analystics API xxxxxxx" description="" /> <field name="m-33across" type="text" default="" label="33Across" description="API xxxxxxx" /> <field name="m-awin" type="text" default="" label="Awin" description="API xxxxxxx" /> <field name="m-uiz" type="text" default="" label="UIZ" description="Short link auto API;xxxxxxx" /> <field name="m-quantcast" type="text" default="" label="Quantcast" description="API xxxxxxx" /> </fieldset> <fieldset name="sharessocial" label="Shares Social Networks"> <field name="s-shareaholic" type="text" default="" label="shareaholic" description="Site ID API xxxxxxx" /> <field name="s-addthis" type="text" default="" label="addthis" description="Site ID API xxxxxxx" /> </fieldset> <fieldset name="chatbot" label="Chatbot"> <field name="crisp" type="text" default="" label="crisp" description="API xxxxxxx" /> <field name="tidio" type="text" default="" label="tidio" description="api xxxxxxx" /> </fieldset> </fields> </config> <updateservers> <server type="collection">https://raw.githubusercontent.com/alexonbstudio/joomla-update/master/extention.xml</server> <server type="extension" priority="2" name="Module metatags Updates">https://raw.githubusercontent.com/alexonbstudio/joomla-update/master/public/module-metatags.xml</server> </updateservers></extension>
<?xml version="1.0" encoding="utf-8"?><extension type="module" version="3.9" client="site" method="upgrade"> <name>module - metatags</name> <author>Alexon Balangue</author> <creationDate>19 april 2019</creationDate> <copyright>Copyright (C) 2012-2020 AlexnbStudio. All rights reserved.</copyright> <license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license> <authorEmail>[email protected]</authorEmail> <authorUrl>www.alexonbstudio.fr</authorUrl> <version>4.3.3</version> <description>MOD_METATAGS_XML_DESCRIPTION</description> <files> <filename module="mod_metatags">mod_metatags.php</filename> <filename>mod_metatags.xml</filename> <folder>tmpl</folder> <filename>index.html</filename> </files> <languages folder="language"> <language tag="en-GB">en-GB/en-GB.mod_metatags.ini</language> <language tag="en-GB">en-GB/en-GB.mod_metatags.sys.ini</language> <language tag="fr-FR">fr-FR/fr-FR.mod_metatags.ini</language> <language tag="fr-FR">fr-FR/fr-FR.mod_metatags.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="robots" type="text" default="index, follow" label="robots" description="" /> <field type="media" name="logo" default="" label="Logo" description="" directory="" /> </fieldset> <fieldset name="socialmedia" label="Social Media"> <field name="twitter-card" type="text" default="summary" label="Twitter Card" description="" /> <field type="text" name="twitter-user" label="Twitter username" default="alexonbstudio" description="" /> <field name="og-type" type="list" default="article" label="OG Type" description=""> <option value="website">website</option> <option value="article">article</option> </field> <field name="fb-admins" type="text" default="" label="Facebook admins ID" description="" /> <field name="fb-app-id" type="text" default="" label="Facebook apps ID" description="" /> <field name="fb-profils-id" type="text" default="" label="Facebook Profils ID" description="" /> </fieldset> <fieldset name="custom" label="Custom script and Backlinks"> <field name="head-script-frontend" type="textarea" default="" label="Enter some html (HEAD)" description="" rows="3" /> <field name="footer-script-frontend" type="textarea" default="" label="Enter some html (BODY)" description="" rows="3" /> </fieldset> <fieldset name="jsonld" label="JSONLD"> <field name="jld-type" type="list" default="Person" label="Json-LD - Type" description=""> <option value="Person">person</option> <option value="Organisation">organisation</option> </field> <field name="jld-socialURL" type="textarea" default="" label="sameAs Social Json-LD" description="ex: facebook, twitter, twitch, etc..." rows="3" /> </fieldset> <fieldset name="analysticsmarketing" label="Analystic and Marketing"> <field name="g-tagmanger" type="text" default="" label="Google Tags Manager" description="api Code GTM" /> <field name="g-analytics" type="text" default="" label="Google Analystics" description="api UA-xxxx-x" /> <field name="g-adsense" type="text" default="" label="Google Adsense" description="api ca-xxxxxxxx" /> <field name="yx-analytics" type="text" default="" label="Yandex Analystics API xxxxxxx" description="" /> <field name="m-33across" type="text" default="" label="33Across" description="API xxxxxxx" /> <field name="m-awin" type="text" default="" label="Awin" description="API xxxxxxx" /> <field name="m-uiz" type="text" default="" label="UIZ" description="Short link auto API;xxxxxxx" /> <field name="m-quantcast" type="text" default="" label="Quantcast" description="API xxxxxxx" /> </fieldset> <fieldset name="sharessocial" label="Shares Social Networks"> <field name="s-shareaholic" type="text" default="" label="shareaholic" description="Site ID API xxxxxxx" /> <field name="s-addthis" type="text" default="" label="addthis" description="Site ID API xxxxxxx" /> </fieldset> <fieldset name="chatbot" label="Chatbot"> <field name="crisp" type="text" default="" label="crisp" description="API xxxxxxx" /> <field name="tidio" type="text" default="" label="tidio" description="api xxxxxxx" /> </fieldset> </fields> </config> <updateservers> <server type="collection">https://raw.githubusercontent.com/alexonbstudio/joomla-update/master/extention.xml</server> <server type="extension" priority="2" name="Module metatags Updates">https://raw.githubusercontent.com/alexonbstudio/joomla-update/master/public/module-metatags.xml</server> </updateservers></extension>
Expand Down
16 changes: 6 additions & 10 deletions tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,7 @@
$docs->setMetaData('twitter:image:src', $logo);
$docs->setMetaData('twitter:description', $desciption);
}
/* else {
$docs->setMetaData('twitter:site', '@'.$auteur);
$docs->setMetaData('twitter:card', $twitter_card);
$docs->setMetaData('twitter:title', $sitename.' - '.$title);
$docs->setMetaData('twitter:domain', $_SERVER['SERVER_NAME']);
$docs->setMetaData('twitter:image:src', $logo);
$docs->setMetaData('twitter:description', $desciption);
}*/


/***************Facebook & Open Graph***********************/
$docs->setMetaData('og:site_name', $sitename, 'property');
Expand Down Expand Up @@ -341,7 +334,10 @@ function(retValue, success) {
}

/*********************[ Json-LD ]************************/

$jld_socialURLs = explode(' ',str_replace(',', '', $jld_socialURL));
foreach ($jld_socialURLs as $arrayjld_socialURL) {
$SameAsSocial = '"'.$arrayjld_socialURL.'", ';
}
$docs->addCustomTag('<script type="application/ld+json">
[{
"@context": "https://schema.org",
Expand Down Expand Up @@ -401,7 +397,7 @@ function(retValue, success) {
"logo": "'.$logo.'",
"name": "'.$sitename.'",
"sameAs":[
'.$jld_socialURL.'
'.$SameAsSocial.'
]
}]
</script>');
Expand Down

0 comments on commit bf14930

Please sign in to comment.