public function __construct() { global $_LANG; $this->info = array('plugin' => 'p_ckeditor', 'title' => 'CKEditor', 'description' => $_LANG['CK_DESCRIPTION'], 'author' => 'InstantCMS Team', 'version' => '4.4.5', 'published' => 1, 'plugin_type' => 'wysiwyg'); $this->events = array('INSERT_WYSIWYG'); parent::__construct(); }
public function __construct() { $this->info['plugin'] = 'p_related_posts'; $this->info['title'] = 'Похожие записи в блогах'; $this->info['description'] = 'Добавляет в конец каждого поста список похожих записей'; $this->info['author'] = 'Pasha && InstantCMS Team'; $this->info['version'] = '1.0'; $this->info['published'] = '1'; $this->events[] = 'GET_POST'; $this->config['search_mode'] = 2; // Режим поиска по титлам и контенту $this->config['tags_mode'] = 1; // Режим поиска по тегам $this->config['add_mode'] = 1; // Дополнение предыдущими-следующими $this->config['limit'] = 4; // Количество похожих блогов $this->config['truncate'] = 200; // Кол-во символов после которого текст будет обрезан $this->config['blank_photo'] = 'no_image.png'; // Путь к изображению-заглушке $this->config['cash_time'] = 24; // Время жизни кеша в часах parent::__construct(); }
public function __construct() { parent::__construct(); global $_LANG; $this->info = array('plugin' => 'p_ckeditor', 'title' => 'CKEditor', 'description' => $_LANG['CK_DESCRIPTION'], 'author' => 'vadyus Team', 'version' => '4.4.5', 'published' => 1, 'plugin_type' => 'wysiwyg'); $this->config = array('iswatermark' => 0, 'photo_width' => 600, 'photo_height' => 600, 'is_compatible' => 1, 'entermode' => 'CKEDITOR.ENTER_P', 'skin' => 'moono', 'upload_for_groups' => array(2)); $this->events = array('INSERT_WYSIWYG'); }
public function __construct() { parent::__construct(); $this->info['plugin'] = 'p_new_msg'; $this->info['title'] = 'Анимация при новом сообщении'; $this->info['description'] = 'Анимация при новом сообщении'; $this->info['author'] = 'vadyus Team'; $this->info['version'] = '1.0'; $this->events[] = 'PRINT_PAGE_HEAD'; }
public function __construct() { parent::__construct(); $this->info['plugin'] = 'p_usermaps_photo'; $this->info['title'] = 'Фото на карте'; $this->info['description'] = 'Позволяет привязать фотографию к точке на карте'; $this->info['author'] = 'NeoChapay'; $this->info['version'] = '0.6'; $this->events[] = 'GET_PHOTO'; }
public function __construct() { parent::__construct(); $this->info['plugin'] = 'p_fckeditor'; $this->info['title'] = 'FCKEditor'; $this->info['description'] = 'Визуальный редактор'; $this->info['author'] = 'F. C. Knabben'; $this->info['version'] = '2.63'; $this->info['type'] = 'wysiwyg'; $this->events[] = 'INSERT_WYSIWYG'; }
public function __construct() { // Информация о плагине $this->info['plugin'] = 'p_demo_route'; $this->info['title'] = 'Demo Plugin'; $this->info['description'] = 'Пример плагина - для роутера /users/get_demo.html'; $this->info['author'] = 'InstantCMS Team'; $this->info['version'] = '1.10'; // События, которые будут отлавливаться плагином $this->events[] = 'GET_ROUTE_USERS'; $this->events[] = 'GET_USERS_ACTION_GET_DEMO'; parent::__construct(); }
public function __construct() { parent::__construct(); // Информация о плагине $this->info['plugin'] = 'p_front_editor'; $this->info['title'] = 'Фронт-редактор'; $this->info['description'] = 'Позволяет редактировать контент с фронтэнда без перезагрузки страницы'; $this->info['author'] = 'Marat Fatikhov'; $this->info['version'] = '1.0.1'; // Настройки по-умолчанию // События, которые будут отлавливаться плагином $this->events[] = 'GET_ARTICLE'; $this->events[] = 'GET_POST'; }
public function __construct() { parent::__construct(); // Информация о плагине $this->info['plugin'] = 'p_usertab'; $this->info['title'] = 'Demo Profile Plugin'; $this->info['description'] = 'Пример плагина - Добавляет вкладку "Статьи" в профили всех пользователей'; $this->info['author'] = 'vadyus Team'; $this->info['version'] = '1.10.3'; // Настройки по-умолчанию $this->config['PU_LIMIT'] = 10; // События, которые будут отлавливаться плагином $this->events[] = 'USER_PROFILE'; }
public function __construct() { parent::__construct(); // Информация о плагине $this->info['plugin'] = 'p_bloges'; $this->info['title'] = 'Блоги'; $this->info['description'] = 'Пример плагина - Добавляет вкладку "Блоги" в профили всех пользователей'; $this->info['author'] = 'Instant'; $this->info['version'] = '1'; // Настройки по-умолчанию $this->config['PU_LIMIT'] = 10; // События, которые будут отлавливаться плагином $this->events[] = 'USER_PROFILE'; }
public function __construct() { parent::__construct(); global $_LANG; // Информация о плагине $this->info['plugin'] = 'p_kcaptcha'; $this->info['title'] = $_LANG['P_CAPTCHA_TITLE']; $this->info['description'] = $_LANG['P_CAPTCHA_DESCRIPTION']; $this->info['author'] = 'vadyus Team'; $this->info['version'] = '1.0'; $this->info['published'] = 1; $this->info['plugin_type'] = 'captcha'; $this->events[] = 'GET_CAPTCHA'; $this->events[] = 'CHECK_CAPTCHA'; }
public function __construct() { parent::__construct(); // Информация о плагине $this->info['plugin'] = 'p_morecontent'; $this->info['title'] = 'Похожие статьи'; $this->info['description'] = 'Добавляет в конец каждой статьи список похожих статей.'; $this->info['author'] = 'Maximov & vadyus Team'; $this->info['version'] = '1.10.3'; // События, которые будут отлавливаться плагином $this->events[] = 'GET_ARTICLE'; // Настройки по-умолчанию $this->config['P_LIMIT'] = 5; $this->config['P_UNSORT'] = 1; }
public function __construct() { parent::__construct(); // Информация о плагине $this->info['plugin'] = 'p_bpublics'; $this->info['title'] = 'Історії та публікації'; $this->info['description'] = 'Виводить записи с блогу автора'; $this->info['author'] = 'promodigy'; $this->info['version'] = '1.0'; // Настройки по-умолчанию $this->config['text'] = 'Історії та публікації'; $this->config['Кількість записів'] = '10'; // События, которые будут отлавливаться плагином $this->events[] = 'GET_ITEM_UC'; }
public function __construct() { parent::__construct(); // Информация о плагине $this->info['plugin'] = 'p_userbattleways'; $this->info['title'] = 'Бойовий шлях'; $this->info['description'] = 'Бойовий шлях'; $this->info['author'] = 'promodigy'; $this->info['version'] = '1'; $this->info['tab'] = 'Бойовий шлях'; //-- Заголовок закладки в профиле // Настройки по-умолчанию $this->config['Кількість записів'] = 10; // События, которые будут отлавливаться плагином $this->events[] = 'USER_PROFILE'; }
public function __construct() { parent::__construct(); // Информация о плагине $this->info['plugin'] = 'p_usernotes'; $this->info['title'] = 'Записки пользователя'; $this->info['description'] = 'Записки пользовательские для 1.10'; $this->info['author'] = 'Amurland'; $this->info['version'] = '1.3'; $this->info['tab'] = 'Записки'; //-- Заголовок закладки в профиле // Настройки по-умолчанию $this->config['Количество записей'] = 10; // События, которые будут отлавливаться плагином $this->events[] = 'USER_PROFILE'; }
public function __construct() { parent::__construct(); // Информация о плагине $this->info['plugin'] = 'p_demo'; $this->info['title'] = 'Demo Plugin'; $this->info['description'] = 'Пример плагина - Добавляет текст в конец каждой статьи на сайте'; $this->info['author'] = 'vadyus Team'; $this->info['version'] = '1.0'; // Настройки по-умолчанию $this->config['text'] = 'Added By Plugin From Parameter'; $this->config['color'] = 'blue'; $this->config['counter'] = 1; // События, которые будут отлавливаться плагином $this->events[] = 'GET_ARTICLE'; }
public function __construct() { parent::__construct(); // Информация о плагине $this->info['plugin'] = 'p_usermaps_sosedi'; $this->info['title'] = 'Рядом на карте'; $this->info['description'] = 'Добавляет вкладку "Рядом" в профили всех пользователей'; $this->info['author'] = 'Сергей Игоревич (NeoChapay)'; $this->info['version'] = '0.1'; $this->info['tab'] = 'Рядом'; //-- Заголовок закладки в профиле // Настройки по-умолчанию $this->config['Количество объектов'] = 10; $this->config['Квадрат поиска в метрах'] = 500; // События, которые будут отлавливаться плагином $this->events[] = 'USER_PROFILE'; }
public function __construct() { parent::__construct(); // Информация о плагине $this->info['plugin'] = 'p_loginza'; $this->info['title'] = 'Авторизация Loginza'; $this->info['description'] = 'Позволяет посетителям авторизоваться на сайте, используя аккаунты популярных социальных сетей'; $this->info['author'] = 'InstantCMS Team'; $this->info['version'] = '1.10.4'; // Настройки по-умолчанию $this->config['PL_PROVIDERS'] = 'vkontakte,facebook,mailruapi,google,yandex,openid,twitter,webmoney,rambler,flickr,mailru,loginza,myopenid,lastfm,verisign,aol,steam'; $this->config['PL_LANG'] = 'ru'; // События, которые будут отлавливаться плагином $this->events[] = 'LOGINZA_BUTTON'; $this->events[] = 'LOGINZA_AUTH'; cmsCore::loadModel('registration'); $this->reg_model = new cms_model_registration(); }
public function __construct() { // Информация о плагине $this->info['plugin'] = 'p_ping'; $this->info['title'] = 'Пинг поисковых систем'; $this->info['description'] = 'Пингует Яндекс и Гугл при добавлении статей, объявлений и постов в блоги'; $this->info['author'] = 'InstantCMS Team'; $this->info['version'] = '1.10'; // Настройки по-умолчанию $this->config['Yandex HOST'] = 'ping.blogs.yandex.ru'; $this->config['Yandex PATH'] = '/RPC2'; $this->config['Google HOST'] = 'blogsearch.google.com'; $this->config['Google PATH'] = '/ping/RPC2'; // События, которые будут отлавливаться плагином $this->events[] = 'ADD_POST_DONE'; $this->events[] = 'ADD_ARTICLE_DONE'; $this->events[] = 'ADD_BOARD_DONE'; parent::__construct(); }
public function __construct() { // Информация о плагине $this->info['plugin'] = 'p_hidetext'; $this->info['title'] = 'Скрытый текст'; $this->info['description'] = 'Скрывает содержимое тега [hide] от незарегистрированных'; $this->info['author'] = 'InstantCMS Team'; $this->info['version'] = '1.12'; // События, которые будут отлавливаться плагином $this->events[] = 'GET_POSTS'; $this->events[] = 'GET_POSTS_MODULE'; $this->events[] = 'GET_POST'; $this->events[] = 'GET_COMMENTS'; $this->events[] = 'GET_COMMENTS_MODULE'; $this->events[] = 'GET_COMMENT'; $this->events[] = 'GET_FORUM_POST'; $this->events[] = 'GET_FORUM_POSTS'; $this->events[] = 'GET_FORUM_POSTS_MODULE'; $this->events[] = 'GET_WALL_POSTS'; parent::__construct(); }
public function __construct() { parent::__construct(); // Информация о плагине $this->info['plugin'] = 'p_auto_forum'; $this->info['title'] = 'Автофорум'; $this->info['description'] = 'Создает тему на форуме для обсуждения статьи'; $this->info['author'] = 'InstantCMS Team'; $this->info['version'] = '1.1'; // Настройки по-умолчанию // Ключи массива должны быть латиницей в верхнем регистре // если вы хотите, чтобы название опций было на нужном вам языке // создайте соответствующий lang файл, например /languages/ru/plugins/p_auto_forum.php // ключи языковых переменных должны совпадать с ключами массива конфигурации $this->config['AF_DELETE_THREAD'] = 1; $this->config['AF_LINK_TREAD'] = 1; $this->config['AF_ADDTREADFORUM_ID'] = 0; $this->config['AF_NOCREATETREAD'] = 0; // События, которые будут отлавливаться плагином $this->events[] = 'DELETE_ARTICLE'; $this->events[] = 'GET_ARTICLE'; $this->events[] = 'ADD_ARTICLE_DONE'; $this->events[] = 'UPDATE_ARTICLE'; }