Skip to content
This repository was archived by the owner on Feb 8, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# SEOPro
**Author:** Sterc (<modx@sterc.nl>)
**Version:** 1.2.2
**Version:** 2.0.0

## Warning: This version is developed for MODX 3+

## Description
[SEOPro][2] is a MODX Extra developed by [Sterc][1]. This Extra offers you guidelines in the process of optimizing your webpage for search engines. It enables you to enter focus keywords per page. Based on that input, SEOPro provides you with feedback on the SEO quality of your pagetitle, longtitle, description and alias by checking if the keywords are present.
Expand Down
4 changes: 2 additions & 2 deletions _build/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"lowCaseName": "seopro",
"description": "MODX SEO Pro is a MODX package that helps you when performing Search Engine Optimization (SEO) in MODX.",
"author": "Sterc",
"version": "1.3.0-pl",
"version": "2.0.0-pl",
"package":{
"elements": {
"plugins": [{
Expand Down Expand Up @@ -82,4 +82,4 @@
"source": "setup.options.php"
}
}
}
}
2 changes: 2 additions & 0 deletions _build/gpm_resolvers/gpm.resolve.tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
$modx->addPackage('seopro', $modelPath, null);



$manager = $modx->getManager();

$manager->createObjectContainer('seoKeywords');


break;
}
}
Expand Down
Binary file added _packages/seopro-2.0.0-pl.transport.zip
Binary file not shown.
9 changes: 5 additions & 4 deletions assets/components/seopro/css/mgr23.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@
padding-left: 20px;
}

.seopro-counter .green{
color: #919191 !important;
}

.seopro-counter-chars {
position: absolute;
top: 29px;
Expand All @@ -102,6 +98,11 @@
.seopro-counter-keywords{
padding-left: 30px;
}

#seopro-counter-keywords-alias {
margin-right: 30px;
}

.x-btn-seopro button{
/* background-image: url(../img/tips.png);
background-position: 0px 0px !important;*/
Expand Down
23 changes: 11 additions & 12 deletions assets/components/seopro/js/mgr/seopro.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Ext.extend(seoPro, Ext.Component, {
id: 'seopro-resource-' + field,
class: 'seopro-counter',
html: '<span class="seopro-counter-wrap seopro-counter-keywords" id="seopro-counter-keywords-' + field + '" title="' + _('seopro.keywords') + '"><strong>' + _('seopro.keywords') + ':&nbsp;&nbsp;</strong><span id="seopro-counter-keywords-' + field + '-current">0</span></span>\
<span class="seopro-counter-wrap seopro-counter-chars" id="seopro-counter-chars-' + field + '" title="' + _('seopro.characters.allowed') + '"><span class="current" id="seopro-counter-chars-' + field + '-current">1</span>/<span class="allowed" id="seopro-counter-chars-' + field + '-allowed">' + seoPro.config.chars[field] + '</span></span>'
<span class="seopro-counter-wrap seopro-counter-chars green" id="seopro-counter-chars-' + field + '" title="' + _('seopro.characters.allowed') + '"><span class="current" id="seopro-counter-chars-' + field + '-current">1</span>/<span class="allowed" id="seopro-counter-chars-' + field + '-allowed">' + seoPro.config.chars[field] + '</span></span>'
});
seoPro.count(field);
}
Expand All @@ -64,7 +64,7 @@ Ext.extend(seoPro, Ext.Component, {
name: 'keywords',
id: 'seopro-keywords',
fieldLabel: _('seopro.focuskeywords'),
description: '[[+seoPro.keywords]]',
description: _('seopro.focuskeywords_desc'),
value: seoPro.config.record,
enableKeyEvents: true,
anchor: '100%',
Expand All @@ -80,18 +80,13 @@ Ext.extend(seoPro, Ext.Component, {
}
}
});
var fieldDesc = new Ext.form.Label({
forId: 'pagetitle',
text: _('seopro.focuskeywords_desc'),
cls: 'desc-under'
});

fp.insert(3, field);
fp.insert(4, fieldDesc);
fp.doLayout();
},
addPanel: function() {
var fp = Ext.getCmp('modx-resource-main-left');
fp.insert(5, {
fp.insert(4, {
xtype: 'panel',
anchor: '100%',
border: false,
Expand All @@ -108,7 +103,7 @@ Ext.extend(seoPro, Ext.Component, {
items: [{
xtype: 'box',
id: 'seopro-google-title',
style: 'background-color: #fbfbfb; background-image: url(https://www.google.com/s2/favicons?domain='+MODx.config.site_url+');',
style: 'background-image: url(https://www.google.com/s2/favicons?domain='+MODx.config.site_url+');',
cls: seoPro.config.searchEngine,
html: '',
border: false
Expand Down Expand Up @@ -176,9 +171,9 @@ Ext.extend(seoPro, Ext.Component, {
}

if (charCount > maxchars || charCount === 0) {
Ext.get('seopro-counter-chars-' + field).addClass('red');
Ext.get('seopro-counter-chars-' + field).addClass('red').removeClass('green');
} else {
Ext.get('seopro-counter-chars-' + field).removeClass('red');
Ext.get('seopro-counter-chars-' + field).addClass('green').removeClass('red');
}
},
changePrevBox: function(field) {
Expand Down Expand Up @@ -227,7 +222,11 @@ Ext.extend(seoPro, Ext.Component, {
if (!MODx.isEmpty(seoPro.config.values['introtext']) && !introCheck) {
description = seoPro.config.values['introtext'];
} else {
var label = Ext.get('modx-resource-description').dom.labels[0].innerText;

label = label.replace(/:$/, '').toLowerCase();
description = _('seopro.emptymetadescription');
description = description.replace(/\<span class="seopro-google-description--field"\>(.*)\<\/span\>/, label);
}
} else {
description = seoPro.config.values['description'];
Expand Down
3 changes: 3 additions & 0 deletions core/components/seopro/docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changelog for SEO Pro.

SEO Pro 2.0.0 pl
- Release for modx 3

SEO Pro 1.3.0 pl
==============
- Change type of modResource.description to be "text" instead of "varchar". (#74)
Expand Down
4 changes: 3 additions & 1 deletion core/components/seopro/docs/readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
--------------------
SEO Pro
--------------------
Version: 1.2.2-pl
Version: 2.0.0-pl
Author: Sterc <modx@sterc.nl>
--------------------

Warning: This version is developed for modx 3+

SEO Pro is a MODX Extra developed by Sterc. This Extra offers you guidance in the process of optimising your website for search engines. It enables you to enter focus keywords per page. Based on that input, SEO Pro provides you feedback on the SEO quality of your pagetitle, longtitle, description and alias by checking if the keywords are present.

Workflow:
Expand Down
2 changes: 1 addition & 1 deletion core/components/seopro/lexicon/de/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$_lang['seopro.focuskeywords_desc'] = 'durch Komma getrennt, ohne Leerzeichen';
$_lang['seopro.prevbox'] = 'Google-Vorschau';
$_lang['seopro.prevbox_yandex'] = 'Yandex-Vorschau';
$_lang['seopro.emptymetadescription']='<i>Bitte geben Sie eine Beschreibung ein.</i>';
$_lang['seopro.emptymetadescription']='<i>Bitte geben Sie eine <span class="seopro-google-description--field">Beschreibung</span> ein.</i>';
$_lang['seopro.branding_text']='This site is optimized with the Sterc seoPro plugin - https://github.com/Sterc/SEOPro.';

$_lang['setting_seopro.delimiter'] = 'Trennzeichen in Google-Vorschau';
Expand Down
2 changes: 1 addition & 1 deletion core/components/seopro/lexicon/en/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$_lang['seopro.focuskeywords_desc'] = 'Enter your keywords comma-separated (example: table, chair)';
$_lang['seopro.prevbox'] = 'Google Preview';
$_lang['seopro.prevbox_yandex'] = 'Yandex Preview';
$_lang['seopro.emptymetadescription']='<i>Please enter a description</i>';
$_lang['seopro.emptymetadescription']='<i>Please enter a <span class="seopro-google-description--field">description</span></i>';
$_lang['seopro.branding_text']='This site is optimized with the Sterc seoPro plugin - https://github.com/Sterc/SEOPro.';

$_lang['setting_seopro.delimiter'] = 'Delimiter in Google/Yandex Preview.';
Expand Down
2 changes: 1 addition & 1 deletion core/components/seopro/lexicon/fr/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$_lang['seopro.focuskeywords_desc'] = 'Séparés par des virgules';
$_lang['seopro.prevbox'] = 'Dans Google ça donne quoi?';
$_lang['seopro.prevbox_yandex'] = 'Dans Yandex ça donne quoi?';
$_lang['seopro.emptymetadescription']='<i>Remplissez la description avant de prévisualiser</i>';
$_lang['seopro.emptymetadescription']='<i>Remplissez la <span class="seopro-google-description--field">description</span> avant de prévisualiser</i>';
$_lang['seopro.branding_text']='This site is optimized with the Sterc seoPro plugin - https://github.com/Sterc/SEOPro.';

$_lang['setting_seopro.delimiter'] = 'Séparateur dans Google/Yandex preview.';
Expand Down
2 changes: 1 addition & 1 deletion core/components/seopro/lexicon/it/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
$_lang['seopro.focuskeywords_desc'] = 'Separate da virgole';
$_lang['seopro.prevbox'] = 'Come verrà visualizzato in Google?';
$_lang['seopro.prevbox_yandex'] = 'Come verrà visualizzato in Yandex?';
$_lang['seopro.emptymetadescription']='<i>Please enter a description</i>';
$_lang['seopro.emptymetadescription']='<i>Please enter a <span class="seopro-google-description--field">description</span></i>';
$_lang['seopro.branding_text']='This site is optimized with the Sterc seoPro plugin - https://github.com/Sterc/SEOPro.';
2 changes: 1 addition & 1 deletion core/components/seopro/lexicon/nl/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$_lang['seopro.focuskeywords_desc'] = 'Vul je keywords komma-gescheiden in.';
$_lang['seopro.prevbox'] = 'Google Preview';
$_lang['seopro.prevbox_yandex'] = 'Yandex Preview';
$_lang['seopro.emptymetadescription']='<i>Vul een omschrijving in</i>';
$_lang['seopro.emptymetadescription']='<i>Vul een <span class="seopro-google-description--field">omschrijving</span> in</i>';
$_lang['seopro.branding_text']='Deze website is geoptimaliseerd met de Sterc seoPro plugin - https://github.com/Sterc/SEOPro.';

$_lang['setting_seopro.delimiter'] = 'Scheidingsteken in Google/Yandex preview.';
Expand Down
2 changes: 1 addition & 1 deletion core/components/seopro/lexicon/pl/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$_lang['seopro.focuskeywords_desc'] = 'Wprowadź frazy oddzielone przecinkami (przykład: stół,krzesło)';
$_lang['seopro.prevbox'] = 'Jak to wygląda w Google?';
$_lang['seopro.prevbox_yandex'] = 'Jak to wygląda w Yandex?';
$_lang['seopro.emptymetadescription']='<i>Wprowadź opis aby zobaczyć podgląd</i>';
$_lang['seopro.emptymetadescription']='<i>Wprowadź <span class="seopro-google-description--field">opis</span> aby zobaczyć podgląd</i>';
$_lang['seopro.branding_text']='This site is optimized with the Sterc seoPro plugin - https://github.com/Sterc/SEOPro.';

$_lang['setting_seopro.delimiter'] = 'Separator';
Expand Down
2 changes: 1 addition & 1 deletion core/components/seopro/lexicon/ru/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$_lang['seopro.focuskeywords_desc'] = 'Разделённые запятой';
$_lang['seopro.prevbox'] = 'Как это будет выглядеть в Google?';
$_lang['seopro.prevbox_yandex'] = 'Как это будет выглядеть в Yandex?';
$_lang['seopro.emptymetadescription']='<i>Для предварительного просмотра заполните поле Описание</i>';
$_lang['seopro.emptymetadescription']='<i>Для предварительного просмотра заполните поле <span class="seopro-google-description--field">Описание</span></i>';
$_lang['seopro.branding_text']='This site is optimized with the Sterc seoPro plugin - https://github.com/Sterc/SEOPro.';

$_lang['setting_seopro.delimiter'] = 'Разделитель в сниппете Google/Yandex';
Expand Down