public function postflight($type, $parent, $results) { if (class_exists('AppRequirements')) { $requirements = new AppRequirements(); $requirements->checkRequirements(); $requirements->displayResults(); } if (class_exists('App')) { // get zoo instance $app = App::getInstance('zoo'); $app->module->enable('mod_zooquickicon', 'icon'); $app->plugin->enable('zooshortcode'); $app->plugin->enable('zoosmartsearch'); $app->plugin->enable('zoosearch'); $app->plugin->enable('zooevent'); } // updateservers url update workaround if ('update' == $type) { JFactory::getDBO()->setQuery("DELETE a, b, c FROM `#__update_sites_extensions` a" . " LEFT JOIN `#__update_sites` b ON b.update_site_id = a.update_site_id" . " LEFT JOIN `#__updates` c ON c.update_site_id = a.update_site_id" . " WHERE a.extension_id = (SELECT `extension_id` FROM `#__extensions` WHERE `type` = 'package' AND `element` = 'pkg_zoo')")->execute(); } $extensions = array(); foreach ($results as $result) { $extensions[] = (object) array('name' => $result['name'] == 'com_zoo' ? 'ZOO extension' : $result['name'], 'status' => $result['result'], 'message' => $result['result'] ? ($type == 'update' ? 'Updated' : 'Installed') . ' successfully' : 'NOT Installed'); } // display extension installation results self::displayResults($extensions, 'Extensions', 'Extension'); }
public function preflight($type, $parent) { // check ZOO requirements require_once $parent->getParent()->getPath('source') . '/admin/installation/requirements.php'; $requirements = new AppRequirements(); if (true !== ($error = $requirements->checkRequirements())) { $parent->getParent()->abort(JText::_('Component') . ' ' . JText::_('Install') . ': ' . JText::sprintf('Minimum requirements not fulfilled (%s: %s).', $error['name'], $error['info'])); return false; } }
public function postflight($type, $parent, $results) { if (class_exists('AppRequirements')) { $requirements = new AppRequirements(); $requirements->checkRequirements(); $requirements->displayResults(); } if (class_exists('App')) { // get zoo instance $app = App::getInstance('zoo'); $app->module->enable('mod_zooquickicon', 'icon'); $app->plugin->enable('zooshortcode'); $app->plugin->enable('zoosmartsearch'); $app->plugin->enable('zoosearch'); $app->plugin->enable('zooevent'); } $extensions = array(); foreach ($results as $result) { $extensions[] = (object) array('name' => $result['name'] == 'com_zoo' ? 'ZOO extension' : $result['name'], 'status' => $result['result'], 'message' => $result['result'] ? ($type == 'update' ? 'Updated' : 'Installed') . ' successfully' : 'NOT Installed'); } // display extension installation results self::displayResults($extensions, 'Extensions', 'Extension'); }
* @package WP Pipes plugin - PIPES * @version $Id: default.php 170 2014-01-26 06:34:40Z thongta $ * @author wppipes.com * @copyright 2014 wppipes.com. All rights reserved. * @license GNU/GPL v3, see LICENSE */ defined('PIPES_CORE') or die('Restricted access'); wp_enqueue_style('pipes-font-awesome-css'); wp_enqueue_style('pipes-bootstrap-min'); wp_enqueue_style('pipes-bootstrap-extended'); wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css'); wp_enqueue_script('jquery-ui-datepicker'); wp_enqueue_script('pipes-bootstrap-min'); require_once OBGRAB_HELPERS . 'requirements.php'; $requirements = new AppRequirements(); $requirements->checkRequirements(); ?> <h2><?php echo __('WP Pipes plugin Settings'); ?> </h2> <?php echo PIPES::show_message(false); ?> <div id="col-container"> <div class="welcome-panel"> <form method="post" action=""> <table class="form-table"> <?php
function metabox_help($data = '') { require_once OBGRAB_HELPERS . 'requirements.php'; $requirements = new AppRequirements(); ?> <div class="welcome-panel" id="welcome-panel"> <input type="hidden" value="d497f3bcac" name="welcomepanelnonce" id="welcomepanelnonce"> <a id="dismiss_help_btn" href="#" class="welcome-panel-close">Dismiss</a> <div class="welcome-panel-content"> <h3>Hello, I'm WP Pipes! I'm here to do automatic data migration jobs for you.</h3> <p class="about-description">Includes: post to social networks, post to wordpress.com or blogspot, create RSS Feed, CSV to WooCommerce, ...</p> <div class="welcome-panel-column-container"> <div class="welcome-panel-column"> <h4>Get Started</h4> <a href="admin.php?page=pipes.pipe" class="button button-primary button-hero">Create a new Pipe</a> <p class="hide-if-no-customize"> or </p> <a href="admin.php?page=pipes.pipes&task=import_from_file&url=http://wpbriz.com/wp-content/uploads/pipes/sample-with-techcrunch.pipe" class="button button-primary button-default">Import Sample Pipe</a> </div> <div class="welcome-panel-column"> <h4>Next Steps</h4> <ul> <?php if (is_array($requirements->checkRequirements())) { ?> <li style="color:red;"> <i class="fa fa-wrench fa-fw fa-lg"></i> <a href="admin.php?page=pipes.settings" style="color:red;">Check requirements</a> </li> <?php } ?> <li> <i class="fa fa-flash fa-fw fa-lg"></i> <a href="admin.php?page=pipes.settings">Control cronjob/schedule</a> </li> <li> <i class="fa fa-download fa-fw fa-lg"></i> <a href="javascript:void();" onclick="jQuery('#contextual-help-link').click();jQuery('#tab-link-my_help_tab1 a').click();">Export your Pipes to share or sell</a> </li> <li> <i class="fa fa-puzzle-piece fa-fw fa-lg"></i> <a href="admin.php?page=pipes.plugins">Empower me by adding more addons.</a> </li> <li> <i class="fa fa-shopping-cart fa-fw fa-lg"></i> <a href="http://foob.la/pipestore" target="_blank">Checkout Pipes Marketplace</a> </li> </ul> </div> <div class="welcome-panel-column welcome-panel-last"> <h4>Explore my power</h4> <ul> <li> Create Posts from RSS Feed, Facebook... </li> <li> Create RSS Feed from Posts, WooCommerce... </li> <li> Create WooCommerce Products from Amazon... </li> <li> </li> </ul> <p>Find out <a href="http://foob.la/pipepower" target="_blank">more things you can do with me</a></p> </div> </div> </div> </div> <?php }