'effect', 'slices' => 'slices', 'prevText' => 'prevText', 'nextText' => 'nextText', 'delay' => 'pauseTime', 'animationSpeed' => 'animSpeed', 'hoverPause' => 'pauseOnHover', 'spw' => 'boxCols', 'sph' => 'boxRows', 'navigation' => 'controlNav', 'links' => 'directionNav', 'autoPlay' => 'autoPlay' ); if (isset($params[$param])) { return $params[$param]; } return false; } /** * Enqueue scripts */ public function enqueue_scripts() { parent::enqueue_scripts(); // If a theme is set then we need to load the default Nivo theme $theme = get_post_meta($this->id, 'metaslider_slideshow_theme', true); if ('true' === $this->get_setting('printCss') || $theme) { wp_enqueue_style('metaslider-' . $this->get_setting('type') . '-slider-default', METASLIDER_ASSETS_URL . "sliders/nivoslider/themes/default/default.css", false, METASLIDER_ASSETS_VERSION); } } /** * Build the HTML for a slider. * * @return string slider markup. */ protected function get_html() { $return_value = "
"; foreach ($this->slides as $slide) { $return_value .= $slide; } $return_value .= "
"; return apply_filters('metaslider_nivo_slider_get_html', $return_value, $this->id, $this->settings); } }