public function eventRmcommonGetSystemTools($tools) { load_plugin_locale('akismet', '', 'rmcommon'); $rtn = array('link' => RMCURL . '/plugins.php?action=configure&plugin=akismet', 'icon' => RMCURL . '/plugins/akismet/comments.gif', 'caption' => __('Akismet options', 'akismet')); $tools[] = $rtn; return $tools; }
public function eventRmcommonGetSystemTools($tools) { load_plugin_locale('avatars', '', 'rmcommon'); $rtn = array('link' => RMCURL . '/plugins.php?action=configure&plugin=avatars', 'icon' => RMCURL . '/plugins/avatars/gravatar.jpg', 'caption' => __('Avatars options', 'avatars')); $tools[] = $rtn; return $tools; }
function __construct() { // Load language if (function_exists('load_plugin_locale')) { load_plugin_locale('booster', '', 'rmcommon'); $this->info = array('name' => __('Xoops Booster', 'booster'), 'description' => __('Plugin to speed up your Xoops Web site by reducing load times.', 'booster'), 'version' => '1.0.1.20', 'author' => 'Eduardo Cortés', 'email' => '*****@*****.**', 'web' => 'http://redmexico.com.mx', 'dir' => 'booster', 'hasmain' => true); } }
public function __construct() { // Load language load_plugin_locale('minifier', '', 'rmcommon'); $this->info = array('name' => __('Minifier Plugin', 'minifier'), 'description' => __('This plugin allows to minify scripts and stylesheets automatically.', 'lightbox'), 'version' => '0.1.0.0', 'author' => 'Eduardo Cortés', 'email' => '*****@*****.**', 'web' => 'http://www.redmexico.com.mx', 'dir' => 'minifier'); }
public function __construct() { // Load language load_plugin_locale('lightbox', '', 'rmcommon'); $this->info = array('name' => __('Lightbox Plugin', 'lightbox'), 'description' => __('This plugin allows to use jQuery Colorbox in modules and other elements.', 'lightbox'), 'version' => array('major' => 1, 'minor' => 12, 'stage' => 0, 'name' => 'Lightbox Plugin'), 'author' => 'Eduardo Cortés', 'email' => '*****@*****.**', 'web' => 'http://eduardocortes.mx', 'dir' => 'lightbox', 'updateurl' => 'https://www.xoopsmexico.net/modules/vcontrol/', 'hasmain' => true); }
public function __construct() { // Load language load_plugin_locale('lightbox', '', 'rmcommon'); $this->info = array('name' => __('LighBox Plugin', 'lightbox'), 'description' => __('This plugin allows to use jQuery LightBox in modules and other elements.', 'lightbox'), 'version' => '1.0.3.80', 'author' => 'Eduardo Cortés', 'email' => '*****@*****.**', 'web' => 'http://redmexico.com.mx', 'dir' => 'lightbox'); }
public function __construct() { // Load language load_plugin_locale('avatars', '', 'rmcommon'); $this->info = array('name' => __('Avatars Plugin', 'avatars'), 'description' => __('Plugin to use gravatar or other avatars system in Common Utilities', 'avatars'), 'version' => '1.0.0.0', 'author' => 'Eduardo Cortés', 'email' => '*****@*****.**', 'web' => 'http://redmexico.com.mx', 'dir' => 'avatars'); }
/** * This function allows to plugins to show their own options */ function main_rm_plugin($dir) { $path = RMCPATH . '/plugins'; if (!file_exists($path . '/' . $dir . '/' . strtolower($dir) . '-plugin.php')) { header("location: plugins.php"); die; } $plugin = new RMPlugin($dir); if ($plugin->isNew()) { header("location: plugins.php"); die; } if (!$plugin->get_info('hasmain')) { header("location: plugins.php"); die; } $class = ucfirst($dir) . 'CUPlugin'; $plugin = new $class(); if (!method_exists($plugin, 'main')) { header("location: plugins.php"); die; } load_plugin_locale($dir); $plugin->main(); }
function __construct() { // Load language load_plugin_locale('recaptcha', '', 'rmcommon'); $this->info = array('name' => __('Recaptcha Plugin', 'recaptcha'), 'description' => __('Plugin to insert a recaptcha field on comments and other forms', 'recaptcha'), 'version' => '1.0.2.5', 'author' => 'Eduardo Cortés', 'email' => '*****@*****.**', 'web' => 'http://redmexico.com.mx', 'dir' => 'recaptcha'); }
function __construct() { // Load language load_plugin_locale('ayah', '', 'rmcommon'); $this->info = array('name' => __('AYAH Plugin', 'ayah'), 'description' => __('Plugin to insert a "Are You A Human" field on comments and other forms', 'ayah'), 'version' => '0.1.0.0', 'author' => 'Eduardo Cortés', 'email' => '*****@*****.**', 'web' => 'http://www.xoopsmexico.net', 'dir' => 'ayah'); }
function __construct() { // Load language load_plugin_locale('flickr', '', 'rmcommon'); $this->info = array('name' => __('MyFlickr', 'topdf'), 'description' => __('Plugin to show flickr photos wherever you want.', 'flickr'), 'version' => '1.0.0.0', 'author' => 'Eduardo Cortés', 'email' => '*****@*****.**', 'web' => 'http://redmexico.com.mx', 'dir' => 'flickr'); }
public function eventRmcommonGetSystemTools($tools) { load_plugin_locale('recaptcha', '', 'rmcommon'); $rtn = array('link' => RMCURL . '/plugins.php?action=configure&plugin=recaptcha', 'icon' => RMCURL . '/plugins/recaptcha/recaptcha.png', 'caption' => __('Recaptcha options', 'recaptcha')); $tools[] = $rtn; return $tools; }
/** * Genera el bloque a partir de su función */ function buildBlock() { global $xoopsConfig, $xoopsOption; $block = array(); // M for module block, S for system block C for Custom if ($this->getVar("type") != "custom") { // get block display function $show_func = $this->getVar('show_func'); if (!$show_func) { return false; } // Bloque de Módulo // Comprobamos si se trata de un bloque de plugin de sistema if ($this->getVar('element_type') == 'plugin') { $file = XOOPS_ROOT_PATH . '/modules/' . $this->getVar('element') . '/plugins/' . $this->getVar('dirname') . '/blocks/' . $this->getVar('file'); load_plugin_locale($this->getVar('dirname'), '', $this->getVar('element')); } else { $file = XOOPS_ROOT_PATH . "/modules/" . $this->getVar('dirname') . "/blocks/" . $this->getVar('file'); if (file_exists(XOOPS_ROOT_PATH . "/modules/" . $this->getVar('dirname') . "/language/" . $xoopsConfig['language'] . "/blocks.php")) { include_once XOOPS_ROOT_PATH . "/modules/" . $this->getVar('dirname') . "/language/" . $xoopsConfig['language'] . "/blocks.php"; } elseif (file_exists(XOOPS_ROOT_PATH . "/modules/" . $this->getVar('dirname') . "/language/english/blocks.php")) { include_once XOOPS_ROOT_PATH . "/modules/" . $this->getVar('dirname') . "/language/english/blocks.php"; } else { load_mod_locale($this->getVar('dirname')); } } include_once $file; $options = $this->getVar("options"); $option = is_array($options) ? $options : explode('|', $options); if (function_exists($show_func)) { $block = $show_func($option); if (!$block) { return false; } } } else { // Bloque Personalizado. Solo devolvemos el contenido $block['content'] = $this->getContent("S", $this->getVar("content_type")); if (empty($block['content'])) { return false; } } return $block; }
function __construct() { // Load language load_plugin_locale('metaseo', '', 'rmcommon'); $this->info = array('name' => __('Meta Optimizer', 'recaptcha'), 'description' => __('Plugin to optimize search engines by adding meta description and keywords to your theme heads', 'recaptcha'), 'version' => '1.0.0.0', 'author' => 'Eduardo Cortés', 'email' => '*****@*****.**', 'web' => 'http://redmexico.com.mx', 'dir' => 'metaseo'); }
public function __construct() { // Load language load_plugin_locale('akismet', '', 'rmcommon'); $this->info = array('name' => __('Akismet Plugin', 'avatars'), 'description' => __('Maintan SPAM aware from your comments and your posts', 'akismet'), 'version' => '1.0.0.0', 'author' => 'Eduardo Cortés', 'email' => '*****@*****.**', 'web' => 'http://redmexico.com.mx', 'dir' => 'akismet'); }