Changeset 2105404
- Timestamp:
- 06/13/2019 09:29:58 AM (7 years ago)
- Location:
- dokan-lite/trunk
- Files:
-
- 1 added
- 8 edited
-
assets/css/style.css (modified) (11 diffs)
-
assets/js/dokan.js (modified) (1 diff)
-
dokan.php (modified) (2 diffs)
-
includes/class-theme-support.php (modified) (1 diff)
-
includes/template-tags.php (modified) (2 diffs)
-
includes/theme-support/class-rehub.php (added)
-
languages/dokan-lite.pot (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
templates/global/dashboard-nav.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dokan-lite/trunk/assets/css/style.css
r2103681 r2105404 1932 1932 background-color: #242424; 1933 1933 } 1934 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu {1934 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu { 1935 1935 background: #242424; 1936 1936 list-style: none; … … 1938 1938 padding: 0; 1939 1939 } 1940 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li {1940 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li { 1941 1941 margin: 0; 1942 1942 border-bottom: 1px solid #454545; 1943 1943 position: relative; 1944 1944 } 1945 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li a {1945 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a { 1946 1946 padding: 10px 0 10px 18px; 1947 1947 display: block; … … 1951 1951 text-decoration: none; 1952 1952 } 1953 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li a i {1953 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a i { 1954 1954 font-size: 17px; 1955 1955 padding-right: 15px; 1956 1956 } 1957 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li:hover {1957 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover { 1958 1958 background: #f05025; 1959 1959 color: #fff; 1960 1960 } 1961 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li.dokan-common-links:hover {1961 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links:hover { 1962 1962 background: none !important; 1963 1963 } 1964 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li.dokan-common-links a {1964 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a { 1965 1965 display: inline-block !important; 1966 1966 width: 33.333333%; … … 1969 1969 border-right: 1px solid #454545; 1970 1970 } 1971 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li.dokan-common-links a:hover {1971 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a:hover { 1972 1972 background: #f05025; 1973 1973 color: #fff; 1974 1974 } 1975 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li.dokan-common-links a:last-child {1975 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a:last-child { 1976 1976 border-right: none; 1977 1977 } 1978 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li.active {1978 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active { 1979 1979 position: relative; 1980 1980 background: #f05025; 1981 1981 } 1982 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li.active:after {1982 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active:after { 1983 1983 left: 93%; 1984 1984 top: 50%; … … 1994 1994 margin-top: -16px; 1995 1995 } 1996 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li ul.sub-menu {1996 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.sub-menu { 1997 1997 background: #fff; 1998 1998 margin: 0; … … 2009 2009 border-bottom: 1px solid #ECECEC; 2010 2010 } 2011 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li ul.sub-menu a {2011 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.sub-menu a { 2012 2012 padding: 2px 0 2px 10px; 2013 2013 font-size: 13px; … … 2015 2015 font-weight: normal; 2016 2016 } 2017 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li ul.sub-menu a:hover {2017 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.sub-menu a:hover { 2018 2018 background: #f37655; 2019 2019 color: #fff; 2020 2020 } 2021 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li ul.sub-menu li {2021 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.sub-menu li { 2022 2022 border-bottom: 1px solid #ccc; 2023 2023 } 2024 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li ul.sub-menu li:last-child {2024 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.sub-menu li:last-child { 2025 2025 border-bottom: none; 2026 2026 } 2027 .dokan-dashboard .dokan-dash-sidebar #dokan-navigationul.dokan-dashboard-menu li.settings i.pull-right {2027 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.settings i.pull-right { 2028 2028 padding-top: 5px; 2029 2029 } … … 2031 2031 display: none; 2032 2032 } 2033 #dokan-navigation > label { 2034 display: block; 2033 .dokan-dashboard .dokan-dash-sidebar #dokan-navigation #mobile-menu-icon { 2034 display: none; 2035 } 2036 .dokan-dashboard .dokan-dash-sidebar #dokan-navigation > #mobile-menu-icon { 2035 2037 font-size: 17px; 2036 2038 color: #fff; … … 2039 2041 right: 15px; 2040 2042 width: 33px; 2043 z-index: 99999; 2041 2044 cursor: pointer; 2042 2045 -webkit-touch-callout: none; … … 2050 2053 padding: 3px 8px; 2051 2054 } 2052 #dokan-navigation > input:checked + ul.dokan-dashboard-menu {2055 .dokan-dashboard .dokan-dash-sidebar #dokan-navigation > input:checked + ul.dokan-dashboard-menu { 2053 2056 display: block !important; 2054 clear: both;2055 top: 48px;2056 position: absolute;2057 2057 background: #000; 2058 2058 color: #fff; 2059 z-index: 9999;2060 2059 animation: showNav 350ms ease-in-out both; 2061 2060 } … … 2069 2068 } 2070 2069 @media only screen and (max-width: 450px) { 2071 #dokan-navigation { 2072 display: #303030; 2070 .dokan-dashboard .dokan-dash-sidebar #dokan-navigation { 2073 2071 background: #000; 2074 2072 height: 48px; 2075 } 2076 #dokan-navigation #toggle-mobile-menu { 2077 display: block; 2078 } 2079 #dokan-navigation ul.dokan-dashboard-menu { 2073 position: relative; 2074 } 2075 .dokan-dashboard .dokan-dash-sidebar #dokan-navigation #mobile-menu-icon { 2076 display: block !important; 2077 } 2078 .dokan-dashboard .dokan-dash-sidebar #dokan-navigation #toggle-mobile-menu { 2079 display: none !important; 2080 } 2081 .dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu { 2080 2082 display: none; 2081 2083 height: auto !important; 2084 padding-top: 48px !important; 2082 2085 } 2083 2086 } -
dokan-lite/trunk/assets/js/dokan.js
r2103681 r2105404 574 574 $('body, #dokan-product-images').on('click', 'a.add-product-images', this.gallery.addImages ); 575 575 $('body, #dokan-product-images').on( 'click', 'a.action-delete', this.gallery.deleteImage ); 576 $('body, #dokan-product-images').on( 'click', 'a.delete', this.gallery.deleteImage );577 576 this.gallery.sortable(); 578 577 -
dokan-lite/trunk/dokan.php
r2103681 r2105404 4 4 Plugin URI: https://wordpress.org/plugins/dokan-lite/ 5 5 Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs. 6 Version: 2.9.1 66 Version: 2.9.17 7 7 Author: weDevs, LLC 8 8 Author URI: https://wedevs.com/ … … 79 79 * @var string 80 80 */ 81 public $version = '2.9.1 6';81 public $version = '2.9.17'; 82 82 83 83 /** -
dokan-lite/trunk/includes/class-theme-support.php
r1997957 r2105404 32 32 */ 33 33 private function include_support() { 34 switch ( $this->theme ) { 35 case 'storefront': 36 require_once __DIR__ . '/theme-support/class-' . $this->theme . '.php'; 37 break; 34 $themes = apply_filters( 'dokan_load_theme_support_files', [ 35 'storefront', 36 'flatsome', 37 'divi', 38 'rehub' 39 ] ); 38 40 39 case 'flatsome': 40 require_once __DIR__ . '/theme-support/class-' . $this->theme . '.php'; 41 break; 42 43 case 'divi': 44 require_once __DIR__ . '/theme-support/class-' . $this->theme . '.php'; 45 break; 46 } 41 return in_array( $this->theme, $themes ) ? $this->load_file( $this->theme ) : false; 47 42 } 48 43 44 /** 45 * Load file classes 46 * 47 * @param string $file 48 * 49 * @since 2.9.17 50 * 51 * @return string|null on failure 52 */ 53 private function load_file( $file ) { 54 $file = __DIR__ . '/theme-support/class-' . $file . '.php'; 55 56 if ( ! file_exists( $file ) ) { 57 return; 58 } 59 60 require_once $file; 61 } 49 62 } -
dokan-lite/trunk/includes/template-tags.php
r2103681 r2105404 471 471 } 472 472 473 $menu = '<ul class="dokan-dashboard-menu">'; 473 $menu = ''; 474 $hamburger_menu = apply_filters( 'dokan_load_hamburger_menu', true ); 475 476 if ( $hamburger_menu ) { 477 $menu .= '<div id="dokan-navigation" area-label="Menu">'; 478 $menu .= '<label id="mobile-menu-icon" for="toggle-mobile-menu" aria-label="Menu">☰</label>'; 479 $menu .= '<input id="toggle-mobile-menu" type="checkbox" />'; 480 } 481 482 $menu .= '<ul class="dokan-dashboard-menu">'; 474 483 475 484 foreach ( $urls as $key => $item ) { … … 487 496 488 497 $menu .= '</ul>'; 498 499 if ( $hamburger_menu ) { 500 $menu .= '</div>'; 501 } 489 502 490 503 return $menu; -
dokan-lite/trunk/languages/dokan-lite.pot
r2103681 r2105404 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Dokan 2.9.1 6\n"5 "Project-Id-Version: Dokan 2.9.17\n" 6 6 "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n" 7 "POT-Creation-Date: 2019-06-1 1 03:21:00+00:00\n"7 "POT-Creation-Date: 2019-06-13 09:18:57+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 4132 4132 msgstr "" 4133 4133 4134 #: includes/template-tags.php:4 81templates/settings/header.php:134134 #: includes/template-tags.php:490 templates/settings/header.php:13 4135 4135 #: templates/store-lists-loop.php:71 4136 4136 msgid "Visit Store" 4137 4137 msgstr "" 4138 4138 4139 #: includes/template-tags.php:4 82templates/global/header-menu.php:484139 #: includes/template-tags.php:491 templates/global/header-menu.php:48 4140 4140 msgid "Edit Account" 4141 4141 msgstr "" 4142 4142 4143 #: includes/template-tags.php:4 834143 #: includes/template-tags.php:492 4144 4144 msgid "Log out" 4145 4145 msgstr "" -
dokan-lite/trunk/readme.txt
r2103681 r2105404 275 275 == Changelog == 276 276 277 v2.9.17 -> June 13, 2019 278 ------------------------------------ 279 - **Fix*** Remove unwanted code to fix conflict with yith plugin 280 - **Tweak*** Dokan theme support and responsive menu 281 277 282 v2.9.16 -> June 11, 2019 278 283 ------------------------------------ -
dokan-lite/trunk/templates/global/dashboard-nav.php
r2103681 r2105404 5 5 6 6 <div class="dokan-dash-sidebar"> 7 <nav id="dokan-navigation" area-label="Menu"> 8 <label for="toggle-mobile-menu" aria-label="Menu">☰</label> 9 <input id="toggle-mobile-menu" type="checkbox" /> 10 11 <?php echo dokan_dashboard_nav( $active_menu ); ?> 12 </nav> 7 <?php echo dokan_dashboard_nav( $active_menu ); ?> 13 8 </div>
Note: See TracChangeset
for help on using the changeset viewer.