8889841cViewHelpIndex.php 0000644 00000007401 15051562501 0007772 0 ustar 00 conflict = 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.php 0000644 00000026335 15051562501 0010110 0 ustar 00 getConflicts(); ?>
ControllerHelp.php 0000644 00000004634 15051562501 0010220 0 ustar 00 display(); } 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(), '