| @@ -106,24 +106,37 @@ | ||
| 106 | 106 | ], |
| 107 | 107 | |
| 108 | 108 | 'grid-layout3' => [ |
| 109 | 109 | 'title' => esc_html__( 'Grid Layout 3', 'shopbuilder' ), |
| 110 | - 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-03.png' ) ), | |
| 110 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-3.png' ) ), | |
| 111 | 111 | 'is_pro' => $status, |
| 112 | 112 | ], |
| 113 | + 'grid-layout4' => [ | |
| 114 | + 'title' => esc_html__( 'Grid Layout 4', 'shopbuilder' ), | |
| 115 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-4.png' ) ), | |
| 116 | + 'is_pro' => $status, | |
| 117 | + ], | |
| 118 | + 'grid-layout5' => [ | |
| 119 | + 'title' => esc_html__( 'Grid Layout 5', 'shopbuilder' ), | |
| 120 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-5.png' ) ), | |
| 121 | + 'is_pro' => $status, | |
| 122 | + ], | |
| 123 | + 'grid-layout6' => [ | |
| 124 | + 'title' => esc_html__( 'Grid Layout 6', 'shopbuilder' ), | |
| 125 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-6.png' ) ), | |
| 126 | + 'is_pro' => $status, | |
| 127 | + ], | |
| 128 | + 'grid-layout7' => [ | |
| 129 | + 'title' => esc_html__( 'Grid Layout 7', 'shopbuilder' ), | |
| 130 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-7.png' ) ), | |
| 131 | + 'is_pro' => $status, | |
| 132 | + ], | |
| 133 | + 'grid-layout8' => [ | |
| 134 | + 'title' => esc_html__( 'Grid Layout 8', 'shopbuilder' ), | |
| 135 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-8.png' ) ), | |
| 136 | + 'is_pro' => $status, | |
| 137 | + ], | |
| 113 | 138 | |
| 114 | - // TODO: Will be activated later. | |
| 115 | - // 'grid-layout4' => [ | |
| 116 | - // 'title' => esc_html__( 'Grid Layout 4', 'shopbuilder' ), | |
| 117 | - // 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-02.png' ) ), | |
| 118 | - // 'is_pro' => $status, | |
| 119 | - // ], | |
| 120 | - // | |
| 121 | - // 'grid-layout5' => [ | |
| 122 | - // 'title' => esc_html__( 'Grid Layout 5', 'shopbuilder' ), | |
| 123 | - // 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-01.png' ) ), | |
| 124 | - // 'is_pro' => $status, | |
| 125 | - // ], | |
| 126 | 139 | ] |
| 127 | 140 | ); |
| 128 | 141 | } |
| 129 | 142 | |
| @@ -156,8 +169,54 @@ | ||
| 156 | 169 | ); |
| 157 | 170 | } |
| 158 | 171 | |
| 159 | 172 | /** |
| 173 | + * Multi Step Checkout Layouts | |
| 174 | + * | |
| 175 | + * @return array | |
| 176 | + */ | |
| 177 | + public static function multi_step_checkout_layouts() { | |
| 178 | + $status = ! rtsb()->has_pro(); | |
| 179 | + | |
| 180 | + return apply_filters( | |
| 181 | + 'rtsb/elements/elementor/single_product_tab_layouts', | |
| 182 | + [ | |
| 183 | + 'layout1' => [ | |
| 184 | + 'title' => esc_html__( 'Layout 1', 'shopbuilder' ), | |
| 185 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/tab-01.png' ) ), | |
| 186 | + ], | |
| 187 | + | |
| 188 | + ] | |
| 189 | + ); | |
| 190 | + } | |
| 191 | + | |
| 192 | + /** | |
| 193 | + * Single Advanced Product Tab Layouts | |
| 194 | + * | |
| 195 | + * @return array | |
| 196 | + */ | |
| 197 | + public static function single_advanced_product_tab_layouts() { | |
| 198 | + // TODO:: Check If the FUnction Used Or Not. | |
| 199 | + return apply_filters( | |
| 200 | + 'rtsb/elements/elementor/single_advanced_product_tab_layouts', | |
| 201 | + [ | |
| 202 | + 'default' => [ | |
| 203 | + 'title' => esc_html__( 'Default Layout', 'shopbuilder' ), | |
| 204 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/tab-01.png' ) ), | |
| 205 | + ], | |
| 206 | + 'custom-layout1' => [ | |
| 207 | + 'title' => esc_html__( 'Accordion Layout', 'shopbuilder' ), | |
| 208 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/tab-02.png' ) ), | |
| 209 | + ], | |
| 210 | + 'custom-layout2' => [ | |
| 211 | + 'title' => esc_html__( 'Tab Layout', 'shopbuilder' ), | |
| 212 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/tab-03.png' ) ), | |
| 213 | + ], | |
| 214 | + ] | |
| 215 | + ); | |
| 216 | + } | |
| 217 | + | |
| 218 | + /** | |
| 160 | 219 | * Slider Layouts |
| 161 | 220 | * |
| 162 | 221 | * @return array |
| 163 | 222 | */ |
| @@ -176,26 +235,44 @@ | ||
| 176 | 235 | 'title' => esc_html__( 'Slider Layout 2', 'shopbuilder' ), |
| 177 | 236 | 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-Layout-2.png' ) ), |
| 178 | 237 | ], |
| 179 | 238 | |
| 180 | - // TODO: Will be activated later. | |
| 181 | - // 'slider-layout3' => [ | |
| 182 | - // 'title' => esc_html__( 'Slider Layout 3', 'shopbuilder' ), | |
| 183 | - // 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-03.png' ) ), | |
| 184 | - // 'is_pro' => $status, | |
| 185 | - // ], | |
| 186 | - // | |
| 187 | - // 'slider-layout4' => [ | |
| 188 | - // 'title' => esc_html__( 'Slider Layout 4', 'shopbuilder' ), | |
| 189 | - // 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-02.png' ) ), | |
| 190 | - // 'is_pro' => $status, | |
| 191 | - // ], | |
| 192 | - // | |
| 193 | - // 'slider-layout5' => [ | |
| 194 | - // 'title' => esc_html__( 'Slider Layout 5', 'shopbuilder' ), | |
| 195 | - // 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-01.png' ) ), | |
| 196 | - // 'is_pro' => $status, | |
| 197 | - // ], | |
| 239 | + 'slider-layout3' => [ | |
| 240 | + 'title' => esc_html__( 'Slider Layout 3', 'shopbuilder' ), | |
| 241 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/slider-style-3.png' ) ), | |
| 242 | + 'is_pro' => $status, | |
| 243 | + ], | |
| 244 | + | |
| 245 | + 'slider-layout4' => [ | |
| 246 | + 'title' => esc_html__( 'Slider Layout 4', 'shopbuilder' ), | |
| 247 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/slider-style-4.png' ) ), | |
| 248 | + 'is_pro' => $status, | |
| 249 | + ], | |
| 250 | + 'slider-layout5' => [ | |
| 251 | + 'title' => esc_html__( 'Slider Layout 5', 'shopbuilder' ), | |
| 252 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/slider-style-5.png' ) ), | |
| 253 | + 'is_pro' => $status, | |
| 254 | + ], | |
| 255 | + 'slider-layout6' => [ | |
| 256 | + 'title' => esc_html__( 'Slider Layout 6', 'shopbuilder' ), | |
| 257 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/slider-style-6.png' ) ), | |
| 258 | + 'is_pro' => $status, | |
| 259 | + ], | |
| 260 | + 'slider-layout7' => [ | |
| 261 | + 'title' => esc_html__( 'Slider Layout 7', 'shopbuilder' ), | |
| 262 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/slider-style-7.png' ) ), | |
| 263 | + 'is_pro' => $status, | |
| 264 | + ], | |
| 265 | + 'slider-layout8' => [ | |
| 266 | + 'title' => esc_html__( 'Slider Layout 8', 'shopbuilder' ), | |
| 267 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/list-style-6.png' ) ), | |
| 268 | + 'is_pro' => $status, | |
| 269 | + ], | |
| 270 | + 'slider-layout9' => [ | |
| 271 | + 'title' => esc_html__( 'Slider Layout 9', 'shopbuilder' ), | |
| 272 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-8.png' ) ), | |
| 273 | + 'is_pro' => $status, | |
| 274 | + ], | |
| 198 | 275 | ] |
| 199 | 276 | ); |
| 200 | 277 | } |
| 201 | 278 | |
| @@ -213,25 +290,37 @@ | ||
| 213 | 290 | 'list-layout1' => [ |
| 214 | 291 | 'title' => esc_html__( 'List Layout 1', 'shopbuilder' ), |
| 215 | 292 | 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/list-Layout-1.png' ) ), |
| 216 | 293 | ], |
| 217 | - | |
| 218 | 294 | 'list-layout2' => [ |
| 219 | 295 | 'title' => esc_html__( 'List Layout 2', 'shopbuilder' ), |
| 220 | 296 | 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/list-Layout-2.png' ) ), |
| 221 | 297 | ], |
| 222 | - | |
| 223 | 298 | 'list-layout3' => [ |
| 224 | 299 | 'title' => esc_html__( 'List Layout 3', 'shopbuilder' ), |
| 225 | - 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/list-style-02.png' ) ), | |
| 300 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/list-style-3.png' ) ), | |
| 226 | 301 | 'is_pro' => $status, |
| 227 | 302 | ], |
| 228 | - // TODO: Will be activated later. | |
| 229 | - // 'list-layout4' => [ | |
| 230 | - // 'title' => esc_html__( 'List Layout 4', 'shopbuilder' ), | |
| 231 | - // 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/list-style-01.png' ) ), | |
| 232 | - // 'is_pro' => $status, | |
| 233 | - // ], | |
| 303 | + 'list-layout4' => [ | |
| 304 | + 'title' => esc_html__( 'List Layout 4', 'shopbuilder' ), | |
| 305 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/list-style-4.png' ) ), | |
| 306 | + 'is_pro' => $status, | |
| 307 | + ], | |
| 308 | + 'list-layout5' => [ | |
| 309 | + 'title' => esc_html__( 'List Layout 5', 'shopbuilder' ), | |
| 310 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/list-style-5.png' ) ), | |
| 311 | + 'is_pro' => $status, | |
| 312 | + ], | |
| 313 | + 'list-layout6' => [ | |
| 314 | + 'title' => esc_html__( 'List Layout 6', 'shopbuilder' ), | |
| 315 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/list-style-6.png' ) ), | |
| 316 | + 'is_pro' => $status, | |
| 317 | + ], | |
| 318 | + 'list-layout7' => [ | |
| 319 | + 'title' => esc_html__( 'List Layout 7', 'shopbuilder' ), | |
| 320 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/list-style-7.png' ) ), | |
| 321 | + 'is_pro' => $status, | |
| 322 | + ], | |
| 234 | 323 | ] |
| 235 | 324 | ); |
| 236 | 325 | } |
| 237 | 326 | |
| @@ -247,28 +336,21 @@ | ||
| 247 | 336 | 'rtsb/elements/elementor/category_layouts', |
| 248 | 337 | [ |
| 249 | 338 | 'category-layout1' => [ |
| 250 | 339 | 'title' => esc_html__( 'Category Layout 1', 'shopbuilder' ), |
| 251 | - 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-01.png' ) ), | |
| 340 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/categories-1.png' ) ), | |
| 252 | 341 | ], |
| 253 | 342 | |
| 254 | 343 | 'category-layout2' => [ |
| 255 | 344 | 'title' => esc_html__( 'Category Layout 2', 'shopbuilder' ), |
| 256 | - 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-01.png' ) ), | |
| 345 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/categories-2.png' ) ), | |
| 257 | 346 | ], |
| 347 | + 'category-layout3' => [ | |
| 348 | + 'title' => esc_html__( 'Category Layout 3', 'shopbuilder' ), | |
| 349 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/categories-3.png' ) ), | |
| 350 | + 'is_pro' => $status, | |
| 351 | + ], | |
| 258 | 352 | |
| 259 | - // TODO: Will be activated later. | |
| 260 | - // 'category-layout3' => [ | |
| 261 | - // 'title' => esc_html__( 'Category Layout 3', 'shopbuilder' ), | |
| 262 | - // 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-01.png' ) ), | |
| 263 | - // 'is_pro' => $status, | |
| 264 | - // ], | |
| 265 | - // | |
| 266 | - // 'category-layout4' => [ | |
| 267 | - // 'title' => esc_html__( 'Category Layout 4', 'shopbuilder' ), | |
| 268 | - // 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-01.png' ) ), | |
| 269 | - // 'is_pro' => $status, | |
| 270 | - // ], | |
| 271 | 353 | ] |
| 272 | 354 | ); |
| 273 | 355 | } |
| 274 | 356 | |
| @@ -391,23 +473,16 @@ | ||
| 391 | 473 | 'rtsb/elements/elementor/category_single_layouts', |
| 392 | 474 | [ |
| 393 | 475 | 'category-single-layout1' => [ |
| 394 | 476 | 'title' => esc_html__( 'Single Category Layout 1', 'shopbuilder' ), |
| 395 | - 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-01.png' ) ), | |
| 477 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/single-category-1.png' ) ), | |
| 396 | 478 | ], |
| 397 | 479 | |
| 398 | - // TODO: Will be activated later. | |
| 399 | - // 'category-single-layout2' => [ | |
| 400 | - // 'title' => esc_html__( 'Single Category Layout 2', 'shopbuilder' ), | |
| 401 | - // 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-01.png' ) ), | |
| 402 | - // 'is_pro' => $status, | |
| 403 | - // ], | |
| 404 | - // | |
| 405 | - // 'category-single-layout3' => [ | |
| 406 | - // 'title' => esc_html__( 'Single Category Layout 3', 'shopbuilder' ), | |
| 407 | - // 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/grid-style-01.png' ) ), | |
| 408 | - // 'is_pro' => $status, | |
| 409 | - // ], | |
| 480 | + 'category-single-layout2' => [ | |
| 481 | + 'title' => esc_html__( 'Single Category Layout 2', 'shopbuilder' ), | |
| 482 | + 'url' => esc_url( rtsb()->get_assets_uri( 'images/layout/single-category-2.png' ) ), | |
| 483 | + 'is_pro' => $status, | |
| 484 | + ], | |
| 410 | 485 | ] |
| 411 | 486 | ); |
| 412 | 487 | } |
| 413 | 488 | |
| @@ -459,13 +534,14 @@ | ||
| 459 | 534 | * @return array |
| 460 | 535 | */ |
| 461 | 536 | public static function filter_products() { |
| 462 | 537 | return [ |
| 463 | - 'recent' => esc_html__( 'Recent Products', 'shopbuilder' ), | |
| 464 | - 'featured' => esc_html__( 'Featured Products', 'shopbuilder' ), | |
| 465 | - 'best-selling' => esc_html__( 'Best Selling Products', 'shopbuilder' ), | |
| 466 | - 'sale' => esc_html__( 'Sale Products', 'shopbuilder' ), | |
| 467 | - 'top-rated' => esc_html__( 'Top Rated Products', 'shopbuilder' ), | |
| 538 | + 'recent' => esc_html__( 'Default', 'shopbuilder' ), | |
| 539 | + 'featured' => esc_html__( 'Featured Products', 'shopbuilder' ), | |
| 540 | + 'best-selling' => esc_html__( 'Best Selling Products', 'shopbuilder' ), | |
| 541 | + 'sale' => esc_html__( 'On Sale Products', 'shopbuilder' ), | |
| 542 | + 'top-rated' => esc_html__( 'Top Rated Products', 'shopbuilder' ), | |
| 543 | + 'recently-viewed' => esc_html__( 'Recently Viewed Products', 'shopbuilder' ), | |
| 468 | 544 | ]; |
| 469 | 545 | } |
| 470 | 546 | |
| 471 | 547 | /** |