Adding any code to BODY or HEAD.
boshnik / counters Goto Github PK
View Code? Open in Web Editor NEWAdding any code to BODY or HEAD.
Home Page: https://counters.boshnik.com/docs/
Adding any code to BODY or HEAD.
Home Page: https://counters.boshnik.com/docs/
Adding any code to BODY or HEAD.
Привет)
К сожелению не запустился твой замечательный пакет на Revolution 3.0.0-alpha1 решил тебе сообщить.
Вот что он отдает на Front
И не большая фриза с кнопками навигации ExtJS
Лог ошибок при установке
Консоль запущена...
Пробуем установить пакет с подписью: counters-1.0.2-pl
Пакет найден... сейчас идёт подготовка к его установке.
Загрузка рабочего пространства пакета...
Рабочее пространство загружено, сейчас устанавливаем пакет...
modx.modNamespace is deprecated since version 3.0. Replace references to class modx.modNamespace with MODX\Revolution\modNamespace to take advantage of PSR-4 autoloading.
modNamespace is deprecated since version 3.0. Replace references to class modNamespace with MODX\Revolution\modNamespace to take advantage of PSR-4 autoloading.
modNamespace is deprecated since version 3.0. Replace references to class modNamespace with MODX\Revolution\modNamespace to take advantage of PSR-4 autoloading.
modx.modMenu is deprecated since version 3.0. Replace references to class modx.modMenu with MODX\Revolution\modMenu to take advantage of PSR-4 autoloading.
modMenu is deprecated since version 3.0. Replace references to class modMenu with MODX\Revolution\modMenu to take advantage of PSR-4 autoloading.
modMenu is deprecated since version 3.0. Replace references to class modMenu with MODX\Revolution\modMenu to take advantage of PSR-4 autoloading.
modx.modCategory is deprecated since version 3.0. Replace references to class modx.modCategory with MODX\Revolution\modCategory to take advantage of PSR-4 autoloading.
modCategory is deprecated since version 3.0. Replace references to class modCategory with MODX\Revolution\modCategory to take advantage of PSR-4 autoloading.
modCategory is deprecated since version 3.0. Replace references to class modCategory with MODX\Revolution\modCategory to take advantage of PSR-4 autoloading.
modPlugin is deprecated since version 3.0. Replace references to class modPlugin with MODX\Revolution\modPlugin to take advantage of PSR-4 autoloading.
modPlugin is deprecated since version 3.0. Replace references to class modPlugin with MODX\Revolution\modPlugin to take advantage of PSR-4 autoloading.
modPlugin is deprecated since version 3.0. Replace references to class modPlugin with MODX\Revolution\modPlugin to take advantage of PSR-4 autoloading.
modPluginEvent is deprecated since version 3.0. Replace references to class modPluginEvent with MODX\Revolution\modPluginEvent to take advantage of PSR-4 autoloading.
modPluginEvent is deprecated since version 3.0. Replace references to class modPluginEvent with MODX\Revolution\modPluginEvent to take advantage of PSR-4 autoloading.
modPluginEvent is deprecated since version 3.0. Replace references to class modPluginEvent with MODX\Revolution\modPluginEvent to take advantage of PSR-4 autoloading.
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Could not find legacy class CountersItem after converting to MODX\Revolution\CountersItem
Успешно установлен пакет counters-1.0.2-pl
В версии 1.0.2 изменил способ получения объектов в плагине на getCollection, который возвращает массив с объектами, а в итерации обращаешься как к массиву:
<?php
/** @var modX $modx */
if($modx->event->name == 'OnWebPageInit') {
$modx->addPackage('counters', MODX_CORE_PATH . 'components/counters/model/');
$counters = $modx->getCollection('CountersItem');
foreach($counters as $counter) {
if($counter['active'] && ($counter['all_context'] || $modx->context->key == $counter['context'])) {
$code = $counter['content'];
if($counter['position'] == 'Head') {
$modx->regClientStartupHTMLBlock($code);
} else {
$modx->regClientHTMLBlock($code);
}
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.