8889841cViewHelpIndex.php000064400000007401150515625010007772 0ustar00conflict = Conflict::getInstance(); } public function display() { $this->layout = new LayoutDefault($this); $this->layout->addBreadcrumb(n2_('Help center'), '', $this->getUrlHelp()); $this->layout->addContent($this->render('Index')); $this->layout->render(); } public function getConflicts() { return $this->conflict->getConflicts(); } public function getDebugConflicts() { return $this->conflict->getDebugConflicts(); } public function getCurlLog() { return $this->conflict->getCurlLog(); } /** * @return array */ public function getArticles() { $arr = array( array( 'url' => 'https://smartslider.helpscoutdocs.com/article/1923-free-vs-pro', 'label' => 'Free vs Pro' ), array( 'url' => 'https://smartslider.helpscoutdocs.com/article/1918-upgrading-from-free-to-pro', 'label' => 'How to update to the Pro version?' ) ); return array_merge($arr, array( array( 'url' => 'https://smartslider.helpscoutdocs.com/article/1916-slide-editing-in-smart-slider-3#why-is-the-slider-so-tall-on-mobile', 'label' => 'Why is the slider tall on mobile?' ), array( 'url' => 'https://smartslider.helpscoutdocs.com/article/1916-slide-editing-in-smart-slider-3', 'label' => 'Slide editing in Smart Slider 3' ), array( 'url' => 'https://smartslider.helpscoutdocs.com/article/1922-how-to-set-your-background-image#cropped', 'label' => 'Why are my images cropped?' ), array( 'url' => 'https://smartslider.helpscoutdocs.com/article/1924-how-to-add-a-video', 'label' => 'How can I add a video?' ), array( 'url' => 'https://smartslider.helpscoutdocs.com/article/1807-slider-settings-autoplay', 'label' => 'Where is the autoplay?' ), array( 'url' => 'https://smartslider.helpscoutdocs.com/article/1919-video-autoplay-handling', 'label' => 'Why isn\'t my video autoplaying?' ), array( 'url' => 'https://smartslider.helpscoutdocs.com/article/1925-how-to-speed-up-your-site', 'label' => 'How can I speed up my site?' ), array( 'url' => 'https://smartslider.helpscoutdocs.com/category/1699-publishing', 'label' => 'How can I publish my sliders?' ), array( 'url' => 'https://smartslider.helpscoutdocs.com/article/1828-using-your-own-fonts', 'label' => 'How to use different fonts in the slider?' ), array( 'url' => 'https://smartslider.helpscoutdocs.com/article/1725-dynamic-slide-basics', 'label' => 'What is a dynamic slide?' ), array( 'url' => 'https://smartslider.helpscoutdocs.com/collection/1712-troubleshooting', 'label' => 'Troubleshooting' ) )); } }Template/Index.php000064400000026335150515625010010110 0ustar00getConflicts(); ?>
getArticles() as $article) { ?>
getVar('HTTP_USER_AGENT'), '' ); $curlLog = $this->getCurlLog(); if (!empty($curlLog)) { $debug = array_merge($debug, $curlLog); $debug[] = ''; } if (function_exists('ini_get')) { $debug[] = 'PHP: ' . phpversion(); $debug[] = 'PHP - memory_limit: ' . ini_get('memory_limit'); $debug[] = 'PHP - max_input_vars: ' . ini_get('max_input_vars'); $opcache = ini_get('opcache.enable'); $debug[] = 'PHP - opcache.enable: ' . intval($opcache); if ($opcache) { $debug[] = 'PHP - opcache.revalidate_freq: ' . ini_get('opcache.revalidate_freq'); } $debug[] = ''; } if (extension_loaded('gd')) { $debug[] = 'GD modules status:'; foreach (gd_info() as $module => $status) { $debug[] = $module . ' : ' . (!empty($status) ? $status : "0"); } } $debug[] = ''; if (function_exists('get_loaded_extensions')) { $debug[] = 'Uncommon PHP extensions:'; $debug[] = implode(" \t", array_diff(get_loaded_extensions(), array( 'Core', 'openssl', 'pcre', 'zlib', 'SPL', 'session', 'standard', 'cgi-fcgi', 'mysqlnd', 'PDO', 'bz2', 'calendar', 'filter', 'hash', 'Reflection', 'zip', 'Zend OPcache', 'shmop', 'sodium', 'date', 'dom', 'ctype', 'xml', 'libxml', 'fileinfo', 'ftp', 'gettext', 'iconv', 'intl', 'json', 'exif', 'mysqli', 'pdo_mysql', 'Phar', 'posix', 'readline', 'SimpleXML', 'soap', 'sockets', 'sysvmsg', 'sysvsem', 'sysvshm', 'tokenizer', 'wddx', 'xmlreader', 'xmlwriter', 'xsl' ))); $debug[] = ''; } $debugConflicts = $this->getDebugConflicts(); if (empty($debugConflicts)) { $debug[] = 'No conflicts detected'; } else { $debug[] = 'Conflicts:'; foreach ($debugConflicts as $conflict) { $debug[] = ' - ' . $conflict; } $debug[] = ''; } $debug = array_merge($debug, Platform::getDebug()); ?>
ControllerHelp.php000064400000004634150515625010010220 0ustar00display(); } public function actionBrowserIncompatible() { $view = new ViewHelpBrowserIncompatible($this); $view->display(); } public function actionTestApi() { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, Api::getApiUrl()); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $errorFile = dirname(__FILE__) . '/curl_error.txt'; $out = fopen($errorFile, "w"); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_STDERR, $out); $proxy = new WP_HTTP_Proxy(); if ($proxy->is_enabled() && $proxy->send_through_proxy(Api::getApiUrl())) { curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt($ch, CURLOPT_PROXY, $proxy->host()); curl_setopt($ch, CURLOPT_PROXYPORT, $proxy->port()); if ($proxy->use_authentication()) { curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_PROXYUSERPWD, $proxy->authentication()); } } $output = curl_exec($ch); curl_close($ch); fclose($out); $log = array("API Connection Test"); $log[] = htmlspecialchars(file_get_contents($errorFile)); unlink($errorFile); if (!empty($output)) { $log[] = "RESPONSE: " . htmlspecialchars($output); } if (strpos($output, 'ACTION_MISSING') === false) { Notification::error(sprintf(n2_('Unable to connect to the API (%1$s). %2$s See %3$sDebug Information%4$s for more details!'), Api::getApiUrl(), '
', '', '')); } else { Notification::notice(n2_('Successful connection with the API.')); } $log[] = '------------------------------------------'; $log[] = ''; StorageSectionManager::getStorage('smartslider') ->set('log', 'api', json_encode($log)); $this->redirect($this->getUrlHelp()); } }ViewHelpBrowserIncompatible.php000064400000001702150515625010012673 0ustar00layout = new LayoutError($this); $browsers = array( sprintf(n2_('%s or later'), 'Chrome 68'), sprintf(n2_('%s or later'), 'Firefox 52'), sprintf(n2_('%s or later'), 'Safari 10'), sprintf(n2_('%s or later'), 'Opera 55'), sprintf(n2_('%s or later'), 'Edge 18'), ); $this->layout->setError(n2_('You are using an unsupported browser!'), sprintf(n2_('Smart Slider 3 does not support your current browser for editing. Supported browsers are the following: %s.'), implode(', ', $browsers)), 'https://smartslider.helpscoutdocs.com/article/1716-system-requirements'); $this->layout->render(); } }