當前位置: 首頁>>代碼示例>>PHP>>正文


PHP RevSliderNavigation::add_placeholder_modifications方法代碼示例

本文整理匯總了PHP中RevSliderNavigation::add_placeholder_modifications方法的典型用法代碼示例。如果您正苦於以下問題:PHP RevSliderNavigation::add_placeholder_modifications方法的具體用法?PHP RevSliderNavigation::add_placeholder_modifications怎麽用?PHP RevSliderNavigation::add_placeholder_modifications使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在RevSliderNavigation的用法示例。


在下文中一共展示了RevSliderNavigation::add_placeholder_modifications方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: putJS


//.........這裏部分代碼省略.........
            echo '							keyboard_direction: "' . esc_attr($keyboard_direction) . '",' . "\n";
            echo '							mouseScrollNavigation:"' . esc_attr($mousescroll_enabled) . '",' . "\n";
            echo ' 							mouseScrollReverse:"' . esc_attr($mousescroll_reverse) . '",' . "\n";
            if ($slider_type !== 'hero') {
                echo '							onHoverStop:"' . esc_attr($this->slider->getParam("stop_on_hover", "on")) . '",' . "\n";
            }
            $add_comma = false;
            if ($touch_enabled == 'on') {
                $add_comma = true;
                echo '							touch:{' . "\n";
                echo '								touchenabled:"' . esc_attr($touch_enabled) . '",' . "\n";
                echo '								swipe_threshold: ' . esc_attr($swipe_velocity) . ',' . "\n";
                echo '								swipe_min_touches: ' . esc_attr($swipe_min_touches) . ',' . "\n";
                echo '								swipe_direction: "' . esc_attr($swipe_direction) . '",' . "\n";
                echo '								drag_block_vertical: ';
                echo $drag_block_vertical == 'true' ? 'true' : 'false';
                echo "\n";
                echo '							}' . "\n";
            }
            if ($enable_arrows == 'on') {
                $navigation_arrow_style = $this->slider->getParam('navigation_arrow_style', 'round');
                $arrows_always_on = $this->slider->getParam('arrows_always_on', 'true') == 'true' ? 'true' : 'false';
                $hide_arrows_on_mobile = $this->slider->getParam('hide_arrows_on_mobile', 'off') == 'on' ? 'true' : 'false';
                $hide_arrows_over = $this->slider->getParam('hide_arrows_over', 'off') == 'on' ? 'true' : 'false';
                $arr_tmp = '';
                $ff = false;
                if (!empty($all_navs)) {
                    foreach ($all_navs as $cur_nav) {
                        if ($cur_nav['handle'] == $navigation_arrow_style) {
                            if (isset($cur_nav['markup']['arrows'])) {
                                $arr_tmp = $cur_nav['markup']['arrows'];
                            }
                            if (isset($cur_nav['css']['arrows'])) {
                                $nav_css .= $rs_nav->add_placeholder_modifications($cur_nav['css']['arrows'], $cur_nav['handle'], 'arrows', $cur_nav['settings'], $this->slider, $this) . "\n";
                            }
                            $ff = true;
                            break;
                        }
                    }
                }
                if ($ff == false) {
                    $navigation_arrow_style = '';
                }
                $navigation_arrow_style = $rs_nav->translate_navigation($navigation_arrow_style);
                if ($add_comma) {
                    echo '							,' . "\n";
                }
                $add_comma = true;
                echo '							arrows: {' . "\n";
                echo '								style:"' . esc_attr($navigation_arrow_style) . '",' . "\n";
                echo '								enable:';
                echo $this->slider->getParam('enable_arrows', 'off') == 'on' ? 'true' : 'false';
                echo ',' . "\n";
                echo $this->slider->getParam('rtl_arrows', 'off') == 'on' ? '								rtl:true,' . "\n" : '';
                echo '								hide_onmobile:' . $hide_arrows_on_mobile . ',' . "\n";
                if ($hide_arrows_on_mobile === 'true') {
                    echo '								hide_under:' . esc_attr($this->slider->getParam('arrows_under_hidden', '0', RevSlider::FORCE_NUMERIC)) . ',' . "\n";
                }
                if ($hide_arrows_over === 'true') {
                    echo '								hide_over:' . esc_attr($this->slider->getParam('arrows_over_hidden', '0', RevSlider::FORCE_NUMERIC)) . ',' . "\n";
                }
                echo '								hide_onleave:' . $arrows_always_on . ',' . "\n";
                if ($arrows_always_on === 'true') {
                    echo '								hide_delay:' . esc_attr($this->slider->getParam('hide_arrows', '200', RevSlider::FORCE_NUMERIC)) . ',' . "\n";
                    echo '								hide_delay_mobile:' . esc_attr($this->slider->getParam('hide_arrows_mobile', '1200', RevSlider::FORCE_NUMERIC)) . ',' . "\n";
                }
開發者ID:surreal8,項目名稱:wptheme,代碼行數:67,代碼來源:output.class.php


注:本文中的RevSliderNavigation::add_placeholder_modifications方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。