+ All Categories
Home > Documents > Dante: Commit bede93f0dante.swiftideas.net/changelog/assets/dante_v2.5_change... · 2016-10-18 ·...

Dante: Commit bede93f0dante.swiftideas.net/changelog/assets/dante_v2.5_change... · 2016-10-18 ·...

Date post: 27-Jun-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
1
bede93f0 bede93f0 v2.5 Signed-o-by: Ed Cousins <[email protected]> Ed Cousins at 09:29 PM, March 19th, 2014 buddypress/css/buddypress.css Show dibuddypress/groups/groups-loop.php Show dibuddypress/groups/index.php Show dicss/responsive.css Show diheader.php Show diincludes/plugin-includes.php Show diincludes/sf-blog.php Show diincludes/sf-colour-scheme.php Show diincludes/sf-custom-styles.php Show diincludes/sf-header.php Show diincludes/sf-options.php Show diincludes/sf-portfolio.php Show diincludes/sf-theme-functions.php Show dijs/functions.js Show dijs/sf-admin.js Show disingle-portfolio.php Show distyle.css Show diswift-framework/meta-box/inc/fields/sidebars.php Show diswift-framework/page-builder/assets/css/jquery.minicolors.css Show diswift-framework/page-builder/assets/css/jquery.nouislider.min.css Show diswift-framework/page-builder/assets/css/page-builder.css Show diswift-framework/page-builder/assets/img/asset_icons/icon_box.png Show diswift-framework/page-builder/assets/img/asset_icons/[email protected] Show diswift-framework/page-builder/assets/img/asset_icons/widget_area.png Show diswift-framework/page-builder/assets/img/asset_icons/[email protected] Show diswift-framework/page-builder/assets/img/asset_icons/widget_sidebar.png Show diswift-framework/page-builder/assets/img/asset_icons/[email protected] Show diswift-framework/page-builder/assets/img/jquery.minicolors.png Show diswift-framework/page-builder/assets/img/menu_icons/menu_icon_box.png Show diswift-framework/page-builder/assets/img/menu_icons/[email protected] Show diswift-framework/page-builder/assets/img/menu_icons/menu_widget_area.png Show diswift-framework/page-builder/assets/img/menu_icons/[email protected] Show diswift-framework/page-builder/assets/img/menu_icons/menu_widget_sidebar.png Show diswift-framework/page-builder/assets/img/menu_icons/[email protected] Show diswift-framework/page-builder/assets/js/jquery.minicolors.min.js Show diswift-framework/page-builder/assets/js/jquery.nouislider.min.js Show diswift-framework/page-builder/assets/js/page-builder.js Show diswift-framework/page-builder/builder/build.php Show diswift-framework/page-builder/builder/lib/default-map.php Show diswift-framework/page-builder/builder/lib/layouts.php Show diswift-framework/page-builder/builder/lib/shortcodes.php Show diswift-framework/page-builder/builder/shortcodes/clients.php Show diswift-framework/page-builder/builder/shortcodes/icon-boxes.php Show diswift-framework/page-builder/builder/shortcodes/row.php Show diswift-framework/page-builder/builder/shortcodes/search.php Show diswift-framework/page-builder/builder/shortcodes/sidebar-widget.php Show diswift-framework/page-builder/builder/shortcodes/tabs.php Show diswift-framework/page-builder/builder/spb-includes.php Show diswift-framework/sf-megamenu/sf-megamenu.php Show diswift-framework/sf-shortcodes/interface.php Show diswift-framework/sf-shortcodes/sf.shortcode.embed.js Show diswift-framework/shortcodes.php Show diswift-framework/widgets/widget-portfolio-grid.php Show diswift-framework/widgets/widget-portfolio.php Show diswift-framework/widgets/widget-posts.php Show diwoocommerce/cart/cart.php Show diwoocommerce/cart/cross-sells.php Show diwoocommerce/content-single-product.php Show diwoocommerce/single-product/add-to-cart/simple.php Show diwoocommerce/single-product/product-image.php Show diwoocommerce/single-product/tabs/tabs.php Show di© 2007-2014, Wildbit LLC. All rights reserved. Blog Twitter Shop System Status Privacy Policy Terms of Use Dante Dashboard Repositories 2 Users 1 Ed Cousins Account Logout Help Activity Browse Branches Deployments Settings Search Dante repository 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 } /* -------------------------------------------- + GROUPS +-------------------------------------------- */ + +#group-create-tabs { + height: auto; + overflow: hidden; + margin-bottom: 30px; +} +#group-create-tabs ul li span { + line-height: 30px; + padding: 0 5px; + opacity: 0.8; +} +#group-create-body #previous-next { + margin-top: 40px; +} +#group-creation-previous { + display: inline-block; + font-size: 12px; + line-height: 18px; + height: auto; + padding: 14px 22px; + margin: 0 10px 20px 0; + font-weight: bold; + -webkit-transition: all .3s ease-out; + -moz-transition: all .3s ease-out; + transition: all .3s ease-out; + border: 0; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; + float: left; +} +#group-create-body .left-menu { + float: left; + width: 100px; +} +#group-create-body .main-column { + margin-left: 130px; +} +#group-create-body .main-column p { + margin-bottom: 12px; +} +#group-create-body .main-column input[type="file"] { + margin-bottom: 10px; +} +#breadcrumbs a.bp-title-button { + display: none; +} +#buddypress #groups-order-select > label { + float: left; + line-height: 40px; + margin-right: 10px; +} +#buddypress #groups-order-by { + width: auto; + height: 30px; +} +.groups-nav-wrap .item-list-tabs { + float: left; +} +#buddypress #groups-list li { + border: 1px solid #e3e3e3; + padding: 20px; + margin-top: 20px; +} +#buddypress #groups-list li:first-child { + margin-top: 0; +} +#buddypress #groups-list li .item-avatar { + float: left; + margin-right: 20px; + margin-top: 6px; +} +#buddypress #groups-list li .item { + float: left; +} +#buddypress #groups-list li.even { + background: #f7f7f7; +} +#buddypress #groups-list li .item-title { + margin-bottom: 5px; + float: left; + margin-right: 8px; +} +#buddypress #groups-list li .item-meta { + font-size: 12px; + float: left; +} +#buddypress #groups-list li .action { + clear: both; +} +.bp-title-button { + display: none; +} +.create-group-button { + float: right; + font-size: 12px; + padding: 5px 8px; + border: 1px solid #999; + display: inline-block; + margin-right: 0; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; + line-height: 18px; + height: auto; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; +} + +/* -------------------------------------------- RESPONSIVE -------------------------------------------- */ 370 371 372 373 374 375 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 #buddypress div.dir-search label { width: 65%; } - #buddypress div.dir-search #members_search { + #buddypress div.dir-search input[type="text"] { width: 100%; margin: 0; } - #buddypress div.dir-search #members_search_submit { + #buddypress div.dir-search input[type="submit "] { margin-left: 2%; width: 33%; } 396 397 398 399 400 401 402 403 404 405 406 510 511 512 513 514 515 516 517 518 519 520 -webkit-background-clip: padding-box; background-clip: padding-box; } - - -/* -------------------------------------------- - MEMBERS --------------------------------------------- */ - -#buddypress #member-group-links { - float: left; - max-width: 70%; -} -#buddypress #member-group-links li { - float: left; - margin-right: 10px; -} -#buddypress #member-group-links li a { - font-size: 12px; - padding: 9px 14px; - border: 1px solid #999; - display: inline-block; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - border-radius: 2px; - line-height: 18px; - -moz-background-clip: padding; - -webkit-background-clip: padding-box; - background-clip: padding-box; - margin-right: 0; +#buddypress .item-list-tabs li a span { + padding-left: 5px; } #buddypress div.dir-search { margin: 0; float: right; max-width: 50%; } -#buddypress #members-dir-search { - float: right; -} #buddypress div.dir-search label { display: inline-block; float: left; margin-bottom: 0; } -#buddypress div.dir-search #members_search { +#buddypress div.dir-search input[type="text"] { margin: 0 10px 0; padding: 7px; float: left; font-size: 12px!important; width: 170px; } -#buddypress div.dir-search #members_search_submit { +#buddypress div.dir-search input[type="submit "] { padding: 10px 22px; display: inline-block; margin-bottom: 0; margin-right: 0; } -#buddypress #members-directory-form { +#buddypress .dir-form { border-top: 1px solid #e3e3e3; margin-top: 30px; padding-top: 30px; + clear: both; } -#buddypress #members-directory-form #subnav { +#buddypress .dir-form #subnav { height: auto; overflow: hidden; } -#buddypress #members-directory-form #subnav ul, #buddypress #members-directory-form #subnav ul select, #buddypress #members-directo +#buddypress .dir-form #subnav ul, #buddypress .dir-form #subnav ul select, #buddypress .dir-form #subnav ul label { margin-bottom: 0; } + + +/* -------------------------------------------- + MEMBERS +-------------------------------------------- */ + +#buddypress #member-group-links { + float: left; + max-width: 70%; +} +#buddypress #member-group-links li { + float: left; + margin-right: 10px; +} +#buddypress #member-group-links li a { + font-size: 12px; + padding: 9px 14px; + border: 1px solid #999; + display: inline-block; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; + line-height: 18px; + -moz-background-clip: padding; + -webkit-background-clip: padding-box; + background-clip: padding-box; + margin-right: 0; +} #buddypress #members-order-select > label { float: left; line-height: 40px; dante dante / / buddypress buddypress / / css css / / buddypress.css buddypress.css Download patch Download patch Blame Blame 43 44 45 46 47 48 49 50 51 43 44 45 46 47 48 49 50 51 52 53 </div> <div class="item"> - <div class="item-title"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div> - <div class="item-meta"><span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); - + <div class="item-title-wrap clearfix"> + <div class="item-title"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div> + <div class="item-meta"><span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active( + </div> + <div class="item-desc"><?php bp_group_description_excerpt(); ?></div> <?php do_action( 'bp_directory_groups_item' ); ?> dante dante / / buddypress buddypress / / groups groups / / groups-loop.php groups-loop.php Download patch Download patch Blame Blame 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 6 7 8 9 10 11 12 13 14 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 <?php do_action( 'bp_before_directory_groups' ); ?> <?php do_action( 'bp_before_directory_groups_content' ); ?> - - <div id="group-dir-search" class="dir-search" role="search"> - <?php bp_directory_groups_search_form(); ?> - </div><!-- #group-dir-search --> - - <form action="" method="post" id="groups-directory-form" class="dir-form"> - - <?php do_action( 'template_notices' ); ?> - - <div class="item-list-tabs" role="navigation"> + + <div class="group-top clearfix"> + + <div id="group-links" class="item-list-tabs" role="navigation"> <ul> <li class="selected" id="groups-all"><a href="<?php bp_groups_directory_permalink(); ?>"><?php printf( __( 'All Grou </ul> </div><!-- .item-list-tabs --> + + <div id="group-dir-search" class="dir-search" role="search"> + <?php bp_directory_groups_search_form(); ?> + </div><!-- #group-dir-search --> + + </div> - <div class="item-list-tabs" id="subnav" role="navigation"> - <ul> - <?php do_action( 'bp_groups_directory_group_types' ); ?> - - <li id="groups-order-select" class="last filter"> - - <label for="groups-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label> - - <select id="groups-order-by"> - <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> - <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option> - <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option> - <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> + <form action="" method="post" id="groups-directory-form" class="dir-form"> - <?php do_action( 'bp_groups_directory_order_options' ); ?> - </select> - </li> - </ul> + <?php do_action( 'template_notices' ); ?> + + <div class="groups-nav-wrap clearfix"> + <div class="item-list-tabs" id="subnav" role="navigation"> + <ul> + <?php do_action( 'bp_groups_directory_group_types' ); ?> + + <li id="groups-order-select" class="last filter"> + + <label for="groups-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label> + + <select id="groups-order-by"> + <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> + <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option> + <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option> + <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> + + <?php do_action( 'bp_groups_directory_order_options' ); ?> + </select> + </li> + </ul> + </div> + + <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) { ?> + <a class="create-group-button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() + <?php } ?> + </div> - + <div id="groups-dir-list" class="groups dir-list"> <?php bp_get_template_part( 'groups/groups-loop' ); ?> </div><!-- #groups-dir-list --> dante dante / / buddypress buddypress / / groups groups / / index.php index.php Download patch Download patch Blame Blame } /* WIDGETS */ - .caroufredsel_wrapper { + .caroufredsel_wrapper, .product-carousel .caroufredsel_wrapper { margin-left: -30px!important; } .carousel-wrap .carousel-items > li { 94 95 96 97 98 99 100 94 95 96 97 98 99 100 padding-right: 410px; } + /* BLOG */ + .blog-masonry-fw .col-sm-3 { + width: 20%; + } } @media only screen and (min-width: 1980px) { 125 126 127 128 129 130 125 126 127 128 129 130 131 132 133 134 opacity: 1!important; top: 50%!important; } + .mobile-browser iframe.fw-video { + height: 90%; + } + + /* BLOG */ + .blog-masonry-fw .col-sm-3 { + width: 33.3%; + } } /* -------------------------------------------- 231 232 233 234 235 236 235 236 237 238 239 240 241 242 243 244 245 246 247 248 } /* POSTS */ + .blog-masonry-fw .col-sm-3 { + width: 50%; + } .mini-items .blog-item figure { float: none; width: 100%; 330 331 332 333 334 335 342 343 344 345 346 347 348 349 350 margin-bottom: 20px; } + /* PRODUCTS */ body .has-no-sidebar ul.products li.product { width: 166px; 337 338 339 340 341 342 352 353 354 355 356 357 358 left: 0; } .mobile-browser iframe.fw-video { - height: 95%; position: relative; z-index: 999; } 571 572 573 574 575 576 577 587 588 589 590 591 592 #order-details { padding-right: 15px; } + .product-carousel ul.products li { + float: left!important; + } /* WIDGETS */ - .caroufredsel_wrapper { + .caroufredsel_wrapper, .product-carousel .caroufredsel_wrapper { margin-left: 0!important; } .carousel-wrap .carousel-items > li { 933 934 935 936 937 938 939 940 941 948 949 950 951 952 953 954 955 956 957 958 959 width: 95.5%; } .labelled-pricing-table.columns-5 .pricing-table-column { - width: 25%; + width: 5 0%; } .labelled-pricing-table.columns-4 .pricing-table-column { - width: 33.3%; + width: 100%; } .labelled-pricing-table.columns-3 .pricing-table-column { width: 50%; 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 border-left-width: 1px; } .columns-2 .pricing-table-column { - width: 50%; + width: 100%; } .bordered.columns-4 .pricing-table-column, .bordered_alt.columns-4 .pricing-table-column { - width: 9 4%; + width: 9 7%; } .bordered.columns-3 .pricing-table-column, .bordered_alt.columns-3 .pricing-table-column { - width: 9 4%; + width: 9 7%; } .bordered.columns-2 .pricing-table-column, .bordered_alt.columns-2 .pricing-table-column { - width: 9 4%; + width: 9 7%; margin-bottom: 10px; } .bordered.columns-1 .pricing-table-column, .bordered_alt.columns-1 .pricing-table-column { - width: 9 4%; + width: 9 7%; } - .labelled-pricing-table.columns-5 .pricing-table-column { + .labelled-pricing-table.columns-4 .pricing-table-column, .labelled-pricing-table.columns-5 .pricing-table-column, .columns-4 .pr width: 100%; } .labelled-pricing-table.columns-5 .pricing-table-column { dante dante / / css css / / responsive.css responsive.css Download patch Download patch Blame Blame $header_wrap_class = " container"; $page_class .= "header-overlay "; } + + if (isset($options['enable_fw_header']) && $options['enable_fw_header'] == true) { + $header_wrap_class .= " fw-header"; + } global $sf_catalog_mode; if (isset($options['enable_catalog_mode'])) { $enable_catalog_mode = $options['enable_catalog_mode']; if ($enable_catalog_mode) { $sf_catalog_mode = true; - $page_class = "catalog-mode "; + $page_class .= "catalog-mode "; } } 34 35 36 37 38 39 40 41 42 43 44 45 46 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 dante dante / / header.php header.php Download patch Download patch Blame Blame ), array( - 'name' => 'Previous and Next Post in Same Taxonomy', - 'slug' => 'previous-and-next-post-in-same-taxonomy', - 'required' => false, - ), - - array( 'name' => 'Breadcrumb NavXT', 'slug' => 'breadcrumb-navxt', 'required' => false, 71 72 73 74 75 76 77 78 79 80 81 82 71 72 73 74 75 76 dante dante / / includes includes / / plugin-includes.php plugin-includes.php Download patch Download patch Blame Blame if ( get_query_var('paged') ) { $paged = get_query_var('paged'); + $offset = $offset * $paged; } elseif ( get_query_var('page') ) { $paged = get_query_var('page'); + $offset = $offset * $page; } else { $paged = 1; } 38 39 40 41 42 43 44 45 38 39 40 41 42 43 44 45 46 47 dante dante / / includes includes / / sf-blog.php sf-blog.php Download patch Download patch Blame Blame if (strtolower($schema['Setting Name']) == "color scheme name") { - echo $schema['Setting Value'] .'-sssssss'; + //echo $schema['Setting Value'] .'-sssssss'; if ( isset($schema['Setting Value'])) { 211 212 213 214 215 216 217 211 212 213 214 215 216 217 dante dante / / includes includes / / sf-colour-scheme.php sf-colour-scheme.php Download patch Download patch Blame Blame 649 650 651 652 653 654 649 650 651 652 653 654 655 656 657 #container.boxed-layout, .boxed-layout #header-section .is-sticky #main-nav.sticky-header, .boxed-layout #header-section width: 1230px; } + .header-overlay .header-wrap { + margin-left: -585px; + } #swift-slider { min-width: 1170px; } dante dante / / includes includes / / sf-custom-styles.php sf-custom-styles.php Download patch Download patch Blame Blame $search_results_ouput .= '<div class="search-result-pt">'; if(isset($post_type[$key]->labels->name)) { $search_results_ouput .= "<h6>".$post_type[$key]->labels->name."</h6>"; + } else if(isset($key)) { + $search_results_ouput .= "<h6>".$key."</h6>"; } else { - $search_results_ouput .= "<h6>".__(" Products", "swiftframework")."</h6>"; + $search_results_ouput .= "<h6>".__(" Other", "swiftframework")."</h6>"; } foreach ($type as $post) { 858 859 860 861 862 863 864 865 858 859 860 861 862 863 864 865 866 867 dante dante / / includes includes / / sf-header.php sf-header.php Download patch Download patch Blame Blame 'class' => 'mini' ), array( + 'id' => 'enable_fw_header', + 'type' => 'button_set', + 'title' => __('Full Width Header', Redux_TEXT_DOMAIN), + 'sub_desc' => __('Enable the header to be full width (edge to edge).', Redux_TEXT_DOMAIN), + 'desc' => '', + 'options' => array('1' => 'On','0' => 'Off'), + 'std' => '0' + ), + array( 'id' => 'enable_mini_header', 'type' => 'button_set', 'title' => __('Sticky header', Redux_TEXT_DOMAIN), 788 789 790 791 792 793 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 925 926 927 928 929 930 2566 2567 2568 2569 2570 2571 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 ); $sections[] = array( - 'icon' => 'star', - 'icon_class' => 'fa-lg', - 'title' => __('Page Builder Options', Redux_TEXT_DOMAIN), - 'desc' => __('<p class="description">These are the general options for the Swift Page Builder</p>', Redux_TEXT_D - 'fields' => array( - array( - 'id' => 'advanced_pb', - 'type' => 'button_set', - 'title' => __('Enable Advanced Functionality', Redux_TEXT_DOMAIN), - 'sub_desc' => __('Enable advanced functionality within the page builder, this includes the ability to ad - 'desc' => '', - 'options' => array('1' => 'On','0' => 'Off'), - 'std' => '0' - ) - ) - ); - - $sections[] = array( 'icon' => 'search-plus', 'icon_class' => 'fa-lg', 'title' => __('Super Search Options', Redux_TEXT_DOMAIN), ) ); $sections[] = array( + 'icon' => 'bolt', + 'icon_class' => 'fa-lg', + 'title' => __('Slider Options', Redux_TEXT_DOMAIN), + 'desc' => __('<p class="description">These are the options for the slider assets.</p>', Redux_TEXT_DOMAIN), + 'fields' => array( + array( + 'id' => 'slider_slideshowSpeed', + 'type' => 'slider', + 'title' => __('Slideshow Speed (ms)', Redux_TEXT_DOMAIN), + 'sub_desc' => "The speed at which the slider rotates. Default value: 7000", + 'from' => '0', + 'to' => '12000', + 'step' => '50', + 'unit' => '', + 'std' => '6000' + ), + array( + 'id' => 'slider_animationSpeed', + 'type' => 'slider', + 'title' => __('Slider Animation Speed (ms)', 'redux-framework-demo'), + 'sub_desc' => __('The speed in which the transition animation takes. Default value: 600', 'redux-fra + 'from' => '0', + 'to' => '2000', + 'step' => '50', + 'unit' => '', + 'std' => '500' + ), + array( + 'id' => 'slider_autoplay', + 'type' => 'button_set', + 'title' => __('Auto play', 'swift-framework-admin'), + 'sub_desc' => __("If you enable this option, then the sliders will auto rotate.", 'swift-framework-a + 'desc' => '', + 'options' => array('1' => 'On','0' => 'Off'), + 'default' => '0' + ), + ) + ); + $sections[] = array( 'icon' => 'twitter', 'icon_class' => 'fa-lg', 'title' => __('Social Profiles', Redux_TEXT_DOMAIN), dante dante / / includes includes / / sf-options.php sf-options.php Download patch Download patch Blame Blame if(!empty($post_terms)){ foreach($post_terms as $post_term){ - $term_slug = $term_slug . strtolower(str_replace(' ', '-', $post_term-> name)) . ' '; + $term_slug = $term_slug . $post_term-> slug . ' '; } } 134 135 136 137 138 139 140 134 135 136 137 138 139 140 380 381 382 383 384 385 386 387 380 381 382 383 384 385 386 387 388 389 390 391 395 396 397 398 399 400 401 402 399 400 401 402 403 404 405 406 407 408 409 410 $filter_output .= '<ul class="portfolio-filter filtering row clearfix">'. "\n"; $filter_output .= '<li class="all selected col-sm-2"><a data-filter="*" href="#"><span class="item-name">'. __("All", "s foreach ($tax_terms as $tax_term) { - $term_slug = strtolower(str_replace(' ', '-', $tax_term)); - $filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $tax_term . ' items" class="' . $term_slug . + $term = get_term_by('name', $tax_term, 'portfolio-category'); + if ($term) { + $filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slu + } else { + $filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . + } } $filter_output .= '</ul></div></div>'. "\n"; $filter_output .= '<ul class="portfolio-filter-tabs bar-styling filtering col-sm-12 clearfix">'. "\n"; $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">'. __("All", "swiftf foreach ($tax_terms as $tax_term) { - $term_slug = strtolower(str_replace(' ', '-', $tax_term)); - $filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $term_slug . '" data-filt + $term = get_term_by('name', $tax_term, 'portfolio-category'); + if ($term) { + $filter_output .= '<li><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-f + } else { + $filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filte + } } $filter_output .= '</ul></div>'. "\n"; dante dante / / includes includes / / sf-portfolio.php sf-portfolio.php Download patch Download patch Blame Blame $excluded = array('fontawesome', 'ssgizmo'); + if (is_child_theme()) { + $excluded = array('sf-main', 'fontawesome', 'ssgizmo'); + } + if ($is_IE) { $excluded = array('bootstrap', 'sf-main', 'sf-responsive', 'fontawesome', 'ssgizmo', 'woocommerce_frontend_styles'); } 58 59 60 61 62 63 58 59 60 61 62 63 64 65 66 67 return $category_list; - } else if ($category_child != "") { + } else if ($category_child != "" && $category_child != "All") { - $childcategory = get_term_by('slug', $category_child, $category_name); + $childcategory = get_term_by('slug', $category_child, $category_name); $get_category = get_categories( array( 'taxonomy' => $category_name, 'child_of' => $childcategory->term_id)); $category_list = array( '0' => 'All'); 277 278 279 280 281 282 283 284 285 281 282 283 284 285 286 287 288 289 499 500 501 502 503 504 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 572 573 574 575 576 577 604 605 606 607 608 609 610 611 612 613 614 615 margin-top: 5px; width: 100%; } + + /* META BOX TABS */ + .rwmb-meta-box { + padding: 20px 10px; + } + #sf-tabbed-meta-boxes { + position: relative; + z-index: 1; + } + #sf-tabbed-meta-boxes > div > .hndle, #sf-tabbed-meta-boxes > div > .handlediv { + display: none!important; + } + #sf-tabbed-meta-boxes .inside { + display: block!important; + } + #sf-tabbed-meta-boxes > div { + border-left: 0; + border-right: 0; + border-bottom: 0; + } + #sf-meta-box-tabs { + margin: 15px 0 0 15px; + position: relative; + z-index: 2; + } + #sf-meta-box-tabs li { + float: left; + margin-right: 5px; + margin-bottom: -1px; + } + #sf-meta-box-tabs li > a { + display: inline-block; + background: #fff; + padding: 10px; + border: 1px solid #e5e5e5; + -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04); + box-shadow: 0 1px 1px rgba(0,0,0,.04); + text-decoration: none; + } + #sf-meta-box-tabs li > a:hover { + color: #222; + } + #sf-meta-box-tabs li > a.active { + border-bottom-color: #fff; + box-shadow: none; + } <?php echo '#typography-preview p {font-size: '.$body_font_size.'px;line-height: '.$body_font_line_height.'px;}'; 613 614 615 616 617 618 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 } + /* PLUGIN OPTION PARAMS + ================================================== */ + if (!function_exists('sf_option_parameters')) { + function sf_option_parameters() { + $options = get_option('sf_dante_options'); + + $slider_slideshowSpeed = "6000"; + $slider_animationSpeed = "500"; + $slider_autoplay = "0"; + + if (isset($options['slider_slideshowSpeed'])) { + $slider_slideshowSpeed = $options['slider_slideshowSpeed']; + } + if (isset($options['slider_animationSpeed'])) { + $slider_animationSpeed = $options['slider_animationSpeed']; + } + if (isset($options['slider_autoplay'])) { + $slider_autoplay = $options['slider_autoplay']; + } + ?> + <div id="sf-option-params" data-slider-slidespeed="<?php echo $slider_slideshowSpeed;?>" data-slider-animspeed="<?php ec + + <?php + } + add_action('wp_footer', 'sf_option_parameters'); + } + + /* COUNTDOWN SHORTCODE LOCALE ================================================== */ if (!function_exists('sf_countdown_shortcode_locale')) { ?> <style type="text/css" media="screen"> + + /* REVSLIDER HIDE ACTIVATION */ + a[name="activateplugin"] + div, a[name="activateplugin"] + div + div, a[name="activateplugin"] + div + div + div, a[ + display: none; + } + #toplevel_page_sf_theme_options .wp-menu-image img { width: 11px; margin-top: -2px; dante dante / / includes includes / / sf-theme-functions.php sf-theme-functions.php Download patch Download patch Blame Blame // REFRESH MODAL IFRAME ON CLOSE (FOR VIDEOS) jQuery(".modal-backdrop, .modal .close, .modal .btn").live("click", function() { - jQuery(".modal iframe"). attr("src", jQuery(".modal iframe").attr("src")); + jQuery(".modal iframe"). each(function() { + var thisModal = jQuery(this); + thisModal.attr("src", thisModal.attr("src")); + }); }); // REPLACE COMMENTS REPLY TITLE HTML 107 108 109 110 111 112 113 107 108 109 110 111 112 113 114 115 116 controlNav: false, smoothHeight: true, animationLoop: false, - slideshow: false, + slideshow: sliderAuto, //Boolean: Animate slider automatically + slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds + animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds sync: "#product-img-nav", start: function(productSlider) { if (hasProductZoom) { 1194 1195 1196 1197 1198 1199 1200 1197 1198 1199 1200 1201 1202 1203 1204 1205 1245 1246 1247 1248 1249 1250 1251 1252 1253 1250 1251 1252 1253 1254 1255 1256 1257 1258 1273 1274 1275 1276 1277 1278 1279 1280 1281 1278 1279 1280 1281 1282 1283 1284 1285 1286 1341 1342 1343 1344 1345 1346 1347 1348 1346 1347 1348 1349 1350 1351 1352 1353 1395 1396 1397 1398 1399 1400 1401 1402 1403 1400 1401 1402 1403 1404 1405 1406 1407 1408 gallerySlider.flexslider({ animation: gallerySlider.data('transition'), slideshow: galleryAuto, - slideshowSpeed: 5000, + slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds + animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds controlNav: false, animationLoop: galleryAuto, sync: galleryNav 1432 1433 1434 1435 1436 1437 1438 1437 1438 1439 1440 1441 1442 1443 1444 height: windowheight }, 1000, 'easeInOutExpo'); - jQuery('.fw-video-area').animate({ + jQuery('.fw-video-area'). css('display', 'block').animate({ top: 0, height: '100%' }, 1000, 'easeInOutExpo', function() { 2171 2172 2173 2174 2175 2176 2177 2177 2178 2179 2180 2181 2182 2183 }); jQuery('.fw-video-area').animate({ top:'-100%' - }, 1000, 'easeInOutExpo', function(){ + }, 1000, 'easeInOutExpo', function() { + jQuery('.fw-video-area').css('display', 'none'); jQuery('.fw-video-area .fw-video').remove(); }); 2187 2188 2189 2190 2191 2192 2193 2193 2194 2195 2196 2197 2198 2199 2200 iconBoxes: function() { jQuery('.sf-icon-box').hover( function() { - jQuery(this).addClass('sf-hover'); + if (isMobileAlt) { + jQuery(this).addClass('sf-mobile-hover'); + } else { + jQuery(this).addClass('sf-hover'); + } }, function() { jQuery(this).removeClass('sf-hover'); } 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 var $window = jQuery(window), body = jQuery('body'), sfIncluded = jQuery('#sf-included'), + sfOptionParams = jQuery('#sf-option-params'), windowheight = page.getViewportHeight(), deviceAgent = navigator.userAgent.toLowerCase(), isMobile = deviceAgent.match(/(iphone|ipod|android|iemobile)/), isMobileAlt = deviceAgent.match(/(iphone|ipod|ipad|android|iemobile)/), isAppleDevice = deviceAgent.match(/(iphone|ipod|ipad)/), - IEVersion = page.checkIE() ; + IEVersion = page.checkIE() , + sliderAuto = sfOptionParams.data('slider-autoplay') ? true : false, + sliderSlideSpeed = sfOptionParams.data('slider-slidespeed'), + sliderAnimSpeed = sfOptionParams.data('slider-animspeed'); ///////////////////////////////////////////// // LOAD + READY FUNCTION 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 useCSS: flexUseCSS, animation: "slide", //String: Select your animation type, "fade" or "slide" slideDirection: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical" - slideshow: true, //Boolean: Animate slider automatically - slideshowSpeed: 6000, //Integer: Set the speed of the slideshow cycling, in milliseconds - animationDuration: 500, //Integer: Set the speed of animations, in milliseconds + slideshow: sliderAuto, //Boolean: Animate slider automatically + slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds + animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds smoothHeight: true, directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) controlNav: true, //Boolean: Create navigation for paging control of each clide? Note: Leave true for jQuery('#swift-slider').flexslider({ animation: "slide", //String: Select your animation type, "fade" or "slide" slideDirection: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical" - slideshow: false, //Boolean: Animate slider automatically - slideshowSpeed: 8000, //Integer: Set the speed of the slideshow cycling, in milliseconds - animationDuration: 600, //Integer: Set the speed of animations, in milliseconds + slideshow: sliderAuto, //Boolean: Animate slider automatically + slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds + animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) controlNav: false, //Boolean: Create navigation for paging control of each clide? Note: Leave true for keyboardNav: false, //Boolean: Allow slider navigating via keyboard left/right keys slider.flexslider({ animation: "fade", //String: Select your animation type, "fade" or "slide" slideshow: autoplay, //Boolean: Animate slider automatically - slideshowSpeed: 6000, //Integer: Set the speed of the slideshow cycling, in milliseconds - animationDuration: 1000, //Integer: Set the speed of animations, in milliseconds + slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds + animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds smoothHeight: true, directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) controlNav: false, //Boolean: Create navigation for paging control of each clide? Note: Leave true jQuery('.thumb-slider').flexslider({ animation: "fade", //String: Select your animation type, "fade" or "slide" slideDirection: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical" - slideshow: false, //Boolean: Animate slider automatically - slideshowSpeed: 6000, //Integer: Set the speed of the slideshow cycling, in milliseconds - animationDuration: 600, //Integer: Set the speed of animations, in milliseconds + slideshow: sliderAuto, //Boolean: Animate slider automatically + slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds + animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) controlNav: false, //Boolean: Create navigation for paging control of each slide? Note: Leave true for keyboardNav: false, //Boolean: Allow slider navigating via keyboard left/right keys year = parseInt(countdownInstance.data('year'), 10), month = parseInt(countdownInstance.data('month'), 10), day = parseInt(countdownInstance.data('day'), 10), - countdownDate = new Date(year, month - 1, day); + hour = parseInt(countdownInstance.data('hour'), 10), + countdownDate = new Date(year, month - 1, day, hour), + type = countdownInstance.data('type'); var labelStrings = jQuery('#countdown-locale'), pluralLabels = [labelStrings.data('label_years'),labelStrings.data('label_months'),labelStrings.data('label_week singularLabels = [labelStrings.data('label_year'),labelStrings.data('label_month'),labelStrings.data('label_week - countdownInstance.countdown({ - until: countdownDate, - since: null, - format: 'dHMS', - labels: pluralLabels, - labels1: singularLabels, - onExpiry: function() { - setTimeout(function() { - countdownInstance.fadeOut(500); - }, 1000); - } - }); + if (type == "countup") { + countdownInstance.countdown({ + since: countdownDate, + format: 'dHMS', + labels: pluralLabels, + labels1: singularLabels, + onExpiry: function() { + setTimeout(function() { + countdownInstance.fadeOut(500); + }, 1000); + } + }); + } else { + countdownInstance.countdown({ + until: countdownDate, + since: null, + format: 'dHMS', + labels: pluralLabels, + labels1: singularLabels, + onExpiry: function() { + setTimeout(function() { + countdownInstance.fadeOut(500); + }, 1000); + } + }); + } }); }, imageBanners: function() { dante dante / / js js / / functions.js functions.js Download patch Download patch Blame Blame 500 501 502 503 504 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 }); + + // TABBED META BOXES + var tabBoxes = jQuery('#page_heading_meta_box,#page_background_meta_box,#portfolio_page_heading_meta_box,#page_header_meta_box,#page + + //create the menu with javascript + function sf_setup_metatabs() { + + if(jQuery('#swift_page_builder').length > 0) { + jQuery('#swift_page_builder').after('<div class="sf-meta-tabs-wrap postbox"><div class="handlediv" title="Click to toggle">< + } else { + jQuery('#normal-sortables').after('<div class="sf-meta-tabs-wrap postbox"><div class="handlediv" title="Click to toggle"><br + } + jQuery(tabBoxes).appendTo('#sf-tabbed-meta-boxes'); + jQuery(tabBoxes).hide().removeClass('hide-if-no-js'); + + for (var a = 0, b = tabBoxes.length; a < b; a++ ) { + newClass = 'editor-tab' + a; + jQuery(tabBoxes[a]).addClass(newClass); + } + + var menu_html = '<ul id="sf-meta-box-tabs" class="clearfix">\n'; + for (var i = 0, n = tabBoxes.length; i < n; i++ ) { + var target_id = jQuery(tabBoxes[i]).attr('id'); + var tab_name = jQuery(tabBoxes[i]).find('.hndle > span').text(); + menu_html = menu_html + '\n<li id="li-'+ target_id +'"><a href="#" rel="editor-tab' + i + '">' + tab_name + '</a></li>'; + } + menu_html = menu_html + '\n</ul>'; + + jQuery('#sf-tabbed-meta-boxes').before(menu_html); + jQuery('#sf-meta-box-tabs a:first').addClass('active'); + } + if (tabBoxes.length > 0) { + sf_setup_metatabs(); + jQuery('.editor-tab0').addClass('active').show(); + } + + jQuery('#sf-meta-box-tabs li').on('click', 'a', function() { + jQuery(tabBoxes).removeClass('active').hide(); + jQuery('#sf-meta-box-tabs a').removeClass('active'); + + target = jQuery(this).attr('rel'); + + jQuery(this).addClass('active'); + jQuery('.' + target).addClass('active').show(); + + return false; + }); + + jQuery('.hide-postbox-tog').on('click', function() { + if (jQuery(this).is(':checked')) { + + target = $(this).attr('value'); + $('#li-' + target).show(); + + } else { + + target = $(this).attr('value'); + + $('#li-' + target).hide(); + + } + return true; + }); }); dante dante / / js js / / sf-admin.js sf-admin.js Download patch Download patch Blame Blame <?php } else { ?> - <?php if ($pb_active == "true") { ?> + <?php if ($pb_active != " true" || ($pb_active == "true" && $fw_media_display == "standard")) { ?> <div class="container"> <?php } ?> 298 299 300 301 302 303 304 298 299 300 301 302 303 304 </div> </section> - <?php if ($pb_active == "true") { ?> + <?php if ($pb_active != " true" || ($pb_active == "true" && $fw_media_display == "standard")) { ?> </div> <?php } ?> 308 309 310 311 312 313 314 308 309 310 311 312 313 314 dante dante / / single-portfolio.php single-portfolio.php Download patch Download patch Blame Blame 6 7 8 9 10 11 12 6 7 8 9 10 11 12 652 653 654 655 656 657 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 1656 1657 1658 1659 1660 1661 1662 1682 1683 1684 1685 1686 1687 1688 2407 2408 2409 2410 2411 2412 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 #mobile-menu ul.sub-menu li ul a { padding-left: 50px; } -#mobile-menu .menu-item a[href="#"] { - display: none; -} /* -------------------------------------------- SUPER SEARCH 2535 2536 2537 2538 2539 2540 2541 2542 2543 2582 2583 2584 2585 2586 2587 margin-right: 0; padding-right: 25px; } +.boxed-layout .header-right nav.mega-menu li:last-child .sub-container.non-mega { + left: auto!important; + right: 0; +} #nav-section { min-height: 50px; position: relative; 3394 3395 3396 3397 3398 3399 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 cursor: -webkit-grabbing!important; } .product-carousel .caroufredsel_wrapper { - margin-left: -20px; + margin-left: -20px !important; } .carousel-wrap .carousel-items > li { margin-bottom: 0; 4634 4635 4636 4637 4638 4639 4640 4682 4683 4684 4685 4686 4687 4688 .full-width-display-wrap figure.fw-media-wrap { display: none; } +.boxed-layout .full-width-display-wrap figure.fw-media-wrap { + margin-left: 0!important; +} .fw-media-wrap .item-slider, .fw-media-wrap .item-slider ul.slides, .fw-media-wrap .item-slider ul.slides > li { max-height: 800px; } 5920 5921 5922 5923 5924 5925 5968 5969 5970 5971 5972 5973 5974 5975 5976 .spb_portfolio_showcase_widget .portfolio-showcase-wrap { opacity: 0; } +.boxed-layout .spb_portfolio_showcase_widget .portfolio-showcase-wrap { + margin-left: 0!important; +} .portfolio-showcase-wrap ul { background: #222; margin: 0; 6063 6064 6065 6066 6067 6068 6114 6115 6116 6117 6118 6119 6120 6121 6122 -ms-backface-visibility: hidden; -webkit-transform: translate3d(0,0,0); } +.mobile-browser .fw-video-area { + display: none; +} .fw-video-close { display: none; position: absolute; 7701 7702 7703 7704 7705 7706 7755 7756 7757 7758 7759 7760 7761 7762 7763 .full-width-text p:last-child { margin-bottom: 0; } +.full-width-text .spb_wrapper { + padding: 0 15px; +} /* -------------------------------------------- SHOWCASE SHORTCODE 7990 7991 7992 7993 7994 7995 8047 8048 8049 8050 8051 8052 8053 8054 8055 } .client-item { float: left; - margin-bottom: 25px; + margin-bottom: 30px; } .client-item figure { position: relative; 8010 8011 8012 8013 8014 8015 8016 8070 8071 8072 8073 8074 8075 8076 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; - padding: 6px 25px 6px 15px; + padding: 14px 25px 12px 15px; + line-height: 10px; margin: 0 0 5px; background-image: url('images/[email protected]'); background-repeat: no-repeat; 11352 11353 11354 11355 11356 11357 11358 11412 11413 11414 11415 11416 11417 11418 11419 margin-left: 0; } .carousel-wrap ul.products li.product { - margin-left: 30px!important; + margin-left: 20px!important; margin-right: 0!important; } body .has-no-sidebar ul.products li.product { 11654 11655 11656 11657 11658 11659 11660 11715 11716 11717 11718 11719 11720 11721 12267 12268 12269 12270 12271 12272 12273 12328 12329 12330 12331 12332 12333 12334 Author: Swift Ideas Author URI: www.swiftideas.net Description: <strong>A Retina Responsive Multi-Purpose WordPress Theme, Designed & Developed by Swift Ideas</strong> - <a href=" - Version: 2. 16 + Version: 2. 5 License: GNU General Public License version 3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html Tags: translation-ready, threaded-comments, theme-options, sticky-post, post-formats, full-width-template, flexible-header, feat padding-left: 0; padding-right: 0; } +.spb-row-container.spb-row-full-width .remove-element-spacing .container, .spb-row-container.spb-row-full-width .remove-element-spa + padding-left: 0; + padding-right: 0; +} +.spb-row-container.spb-row-full-width .spb_content_element { + margin: 0; +} +.spb-row-container.spb-row-full-width .spb_wrapper > .container { + width: 100%; +} +.spb-row-container .blog-items, .spb-row-container .spb_wrapper .row { + padding-bottom: 0!important; + margin-bottom: 0!important; +} +.spb-row-container > div { + position: relative; + z-index: 2; +} +.spb-row-container > div.row-overlay { + position: absolute; + z-index: 1; + width: 100%; + height: 100%; + top: 0; + left: 0; +} .single .container .body-text > .container { margin-left: -15px; } PRETTYPHOTO -------------------------------------------- */ -.clear{clear:both}.nobr{white-space:nowrap}div.pp_woocommerce .pp_content_container{background:#fff;-webkit-border-radius:3px;-moz- +.clear{clear:both}.nobr{white-space:nowrap}div.pp_woocommerce .pp_content_container{background:#fff;-webkit-border-radius:3px;-moz- /* -------------------------------------------- WORDPRESS ASSET STYLING /* #Header ================================================== */ +.fw-header.container, .fw-header .container { + width: 100%; +} +.fw-header #header .header-container, .fw-header #header .header-container > .row, .fw-header #header-section nav.mega-menu li .sub + width: 100%!important; +} +.fw-header #header-section nav.mega-menu li .sub-container { + left: 15px!important; +} +.fw-header #header-section.header-6 nav.mega-menu li .sub-container { + left: 0px!important; + padding: 0 15px; +} +.fw-header #header-section.header-5 nav.mega-menu li .sub-container { + left: 0px!important; +} +.fw-header #header-section.header-1 nav.mega-menu li .sub-container, .fw-header #header-section.header-2 nav.mega-menu li .sub-cont + left: 5px!important; + padding: 0 5px; +} + /* -------------------------------------------- MOBILE MENU -------------------------------------------- */ -ms-box-sizing: border-box; box-sizing: border-box; } -.sf-icon-box-animated:hover .inner, .no-csstransitions .sf-icon-box-animated .inner { +.sf-icon-box-animated:hover .inner, .no-csstransitions .sf-icon-box-animated .inner, .sf-icon-box-animated.sf-mobile-hover .inner { -webkit-transform: rotateY(-180deg); -moz-transform: rotateY(-180deg); -ms-transform: rotateY(-180deg); -o-transform: rotateY(-180deg); transform: rotateY(-180deg); } -.sf-icon-box-animated:hover .front { +.sf-icon-box-animated:hover .front, .sf-icon-box-animated.sf-mobile-hover .front { z-index: -1; } .sf-icon-box-animated .sf-icon { width: 73%!important; float: right; } -.woocommerce select#billing_country, .woocommerce-checkout #billing_country_field .chosen-container, .woocommerce-checkout #shippin +.woocommerce select#billing_country, .woocommerce-checkout #billing_country_field .chosen-container, .woocommerce-checkout #shippin width: 75%!important; } .chosen-container .chosen-results { dante dante / / style.css style.css Download patch Download patch Blame Blame * @return string */ static function html( $meta, $field ) - { + { + $html = ""; $html .= '<select name="'.$field['id'].'" id="'.$field['id'].'">'; foreach ( $GLOBALS['wp_registered_sidebars'] as $sidebar ) { if (!empty($meta) && !strcmp($meta[0], ucwords( $sidebar['id'] ))) { 25 26 27 28 29 30 31 25 26 27 28 29 30 31 32 dante dante / / swift-framework swift-framework / / meta-box meta-box / / inc inc / / fields fields / / sidebars.php sidebars.php Download patch Download patch Blame Blame +.minicolors { + position: relative; +} + +.minicolors-swatch { + position: absolute; + vertical-align: middle; + background: url(../img/jquery.minicolors.png) -80px 0; + border: solid 1px #ccc; + cursor: text; + padding: 0; + margin: 0; + display: inline-block; +} + +.minicolors-swatch-color { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; +} + +.minicolors input[type=hidden] + .minicolors-swatch { + width: 28px; + position: static; + cursor: pointer; +} + +/* Panel */ +.minicolors-panel { + position: absolute; + width: 173px; + height: 152px; + background: white; + border: solid 1px #CCC; + box-shadow: 0 0 20px rgba(0, 0, 0, .2); + z-index: 99999; + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box; + display: none; +} + +.minicolors-panel.minicolors-visible { + display: block; +} + +/* Panel positioning */ +.minicolors-position-top .minicolors-panel { + top: -154px; +} + +.minicolors-position-right .minicolors-panel { + right: 0; +} + +.minicolors-position-bottom .minicolors-panel { + top: auto; +} + +.minicolors-position-left .minicolors-panel { + left: 0; +} + +.minicolors-with-opacity .minicolors-panel { + width: 194px; +} + +.minicolors .minicolors-grid { + position: absolute; + top: 1px; + left: 1px; + width: 150px; + height: 150px; + background: url(../img/jquery.minicolors.png) -120px 0; + cursor: crosshair; +} + +.minicolors .minicolors-grid-inner { + position: absolute; + top: 0; + left: 0; + width: 150px; + height: 150px; + background: none; +} + +.minicolors-slider-saturation .minicolors-grid { + background-position: -420px 0; +} + +.minicolors-slider-saturation .minicolors-grid-inner { + background: url(../img/jquery.minicolors.png) -270px 0; +} + +.minicolors-slider-brightness .minicolors-grid { + background-position: -570px 0; +} + +.minicolors-slider-brightness .minicolors-grid-inner { + background: black; +} + +.minicolors-slider-wheel .minicolors-grid { + background-position: -720px 0; +} + +.minicolors-slider, +.minicolors-opacity-slider { + position: absolute; + top: 1px; + left: 152px; + width: 20px; + height: 150px; + background: white url(../img/jquery.minicolors.png) 0 0; + cursor: row-resize; +} + +.minicolors-slider-saturation .minicolors-slider { + background-position: -60px 0; +} + +.minicolors-slider-brightness .minicolors-slider { + background-position: -20px 0; +} + +.minicolors-slider-wheel .minicolors-slider { + background-position: -20px 0; +} + +.minicolors-opacity-slider { + left: 173px; + background-position: -40px 0; + display: none; +} + +.minicolors-with-opacity .minicolors-opacity-slider { + display: block; +} + +/* Pickers */ +.minicolors-grid .minicolors-picker { + position: absolute; + top: 70px; + left: 70px; + width: 12px; + height: 12px; + border: solid 1px black; + border-radius: 10px; + margin-top: -6px; + margin-left: -6px; + background: none; +} + +.minicolors-grid .minicolors-picker > div { + position: absolute; + top: 0; + left: 0; + width: 8px; + height: 8px; + border-radius: 8px; + border: solid 2px white; + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box; +} + +.minicolors-picker { + position: absolute; + top: 0; + left: 0; + width: 18px; + height: 2px; + background: white; + border: solid 1px black; + margin-top: -2px; + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box; +} + +/* Inline controls */ +.minicolors-inline { + display: inline-block; +} + +.minicolors-inline .minicolors-input { + display: none !important; +} + +.minicolors-inline .minicolors-panel { + position: relative; + top: auto; + left: auto; + box-shadow: none; + z-index: auto; + display: inline-block; +} + +/* Default theme */ +.minicolors-theme-default .minicolors-swatch { + top: 5px; + left: 5px; + width: 18px; + height: 18px; +} +.minicolors-theme-default.minicolors-position-right .minicolors-swatch { + left: auto; + right: 5px; +} +.minicolors-theme-default.minicolors { + width: auto; + display: inline-block; +} +.minicolors-theme-default .minicolors-input { + height: 20px; + width: auto; + display: inline-block; + padding-left: 26px; +} +.minicolors-theme-default.minicolors-position-right .minicolors-input { + padding-right: 26px; + padding-left: inherit; +} + +/* Bootstrap theme */ +.minicolors-theme-bootstrap .minicolors-swatch { + top: 3px; + left: 3px; + width: 28px; + height: 28px; + border-radius: 3px; +} +.minicolors-theme-bootstrap.minicolors-position-right .minicolors-swatch { + left: auto; + right: 3px; +} +.minicolors-theme-bootstrap .minicolors-input { + padding-left: 44px; +} +.minicolors-theme-bootstrap.minicolors-position-right .minicolors-input { + padding-right: 44px; + padding-left: 12px; +} + + +/* CUSTOM */ +.minicolors-theme-default .minicolors-input { + height: 32px; + width: 110px; + display: inline-block; + padding-left: 45px; +} +.minicolors-theme-default .minicolors-swatch { + top: 0; + left: 0; + width: 30px; + height: 30px; +} 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / css css / / jquery.minicolors.css jquery.minicolors.css Blame Blame 1 +.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-user-select:none;-ms-touch-action:none;-ms-user-select:none;-moz-user-select dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / css css / / jquery.nouislider.min.css jquery.nouislider.min.css Blame Blame display: block; margin-top: 0.5em; } + #spb_edit_form .noUiSlider { + width: 200px; + margin-bottom: 20px; + float: left; + margin-right: 20px; + margin-top: 2px; + } + #spb_edit_form .noUiSlider .noUi-origin { + background: #f7f7f7; + } + #spb_edit_form .noUiSlider .noUi-base { + background: #fe504f; + } + #spb_edit_form .spb-uislider { + width: 35px; + clear: right; + margin-bottom: 15px; + } + #edit-modal-header { background: #f7f7f7; border-bottom: 1px solid #e4e4e4; 96 97 98 99 100 101 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 .row-fluid .spb_content_element:last-child { margin-bottom: 0; } -.spb_content_element, .spb_column { +.spb_content_element, .spb_column , .spb_row { margin-bottom: 20px; } .spb_column_container { 189 190 191 192 193 194 195 208 209 210 211 212 213 214 font-weight: bold; color: #333; } +ul.dropdown-menu .row-option { + width: 100%; + margin-bottom: 20px!important; +} +ul.dropdown-menu .row-option a { + margin-left: 0; +} .navbar .nav > li > a { color: #CCCCCC; padding-bottom: 9px; 460 461 462 463 464 465 479 480 481 482 483 484 485 486 487 488 489 490 491 .spb-item-slideout li { width: 24.7%; } +.spb-item-slideout li.menu-item-spb_row { + display: none; +} +.spb_elements_ul .divider { + height: auto; + border-bottom: 0; + background: transparent; + margin: 0; +} .spb-item-slideout li a, ul.dropdown-menu li a { display: block; text-decoration: none; 514 515 516 517 518 519 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 background-repeat: no-repeat; height: 80px; } +.spb_icon_box .spb_element_wrapper { + background-image: url(../img/asset_icons/icon_box.png); + background-position: center 20px; + background-repeat: no-repeat; + height: 80px; + text-align: center; + font-weight: bold; +} +.spb_icon_box .spb_element_wrapper .content { + display: none; +} .spb_jobs_overview .spb_element_wrapper .job_text, .spb_codesnippet .spb_element_wrapper .content { display: none; } 1136 1137 1138 1139 1140 1141 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 text-align: center; } .spb_single_image .spb-icon-single-image { - background-image: url(../img/asset_icons/ no_image.png); + background-image: url(../img/asset_icons/ menu_single_image.png); } .spb_single_image_widget .attachment-thumbnail { 1559 1560 1561 1562 1563 1564 1565 1605 1606 1607 1608 1609 1610 1611 background-image: url(../img/menu_icons/menu_boxed_content.png); } .spb-icon-sidebar { - background-image: url(../img/menu_icons/menu_widget_ sidebar.png); + background-image: url(../img/menu_icons/menu_widget_ar ea.png); +} +.spb-icon-icon-box { + background-image: url(../img/menu_icons/menu_icon_box.png); } .spb-icon-divider { background-image: url(../img/menu_icons/menu_divider.png); 1639 1640 1641 1642 1643 1644 1645 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 background-image: url(../img/menu_icons/[email protected]); } .spb-icon-sidebar { - background-image: url(../img/menu_icons/menu_widget_ sideb[email protected]); + background-image: url(../img/menu_icons/menu_widget_ar ea@2x.png); } .spb-icon-divider { background-image: url(../img/menu_icons/[email protected]); 1975 1976 1977 1978 1979 1980 1981 2024 2025 2026 2027 2028 2029 2030 background-image: url(../img/menu_icons/[email protected]); } .spb-icon-sidebar { - background-image: url(../img/menu_icons/menu_widget_ sideb[email protected]); + background-image: url(../img/menu_icons/menu_widget_ar ea@2x.png); } .spb-icon-testimonial_carousel { background-image: url(../img/menu_icons/[email protected]); 2031 2032 2033 2034 2035 2036 2037 2080 2081 2082 2083 2084 2085 2086 .spb-icon-supersearch { background-image: url(../img/menu_icons/[email protected]); } + .spb-icon-icon-box { + background-image: url(../img/menu_icons/[email protected]); + } .column_decrease { background-image: url(../img/editor_icons/[email protected]); 2072 2073 2074 2075 2076 2077 2121 2122 2123 2124 2125 2126 2127 2128 2129 background-size: 120px 54px; } .spb_sidebar_widget .spb_element_wrapper { - background-image: url(../img/asset_icons/widget_ sideb[email protected]); + background-image: url(../img/asset_icons/widget_ar ea@2x.png); background-size: 120px 54px; } .spb_posts_carousel .spb_element_wrapper { 2178 2179 2180 2181 2182 2183 2184 2230 2231 2232 2233 2234 2235 2236 background-image: url(../img/asset_icons/[email protected]); background-size: 120px 54px; } + .spb_icon_box .spb_element_wrapper { + background-image: url(../img/asset_icons/[email protected]); + background-size: 120px 54px; + } .alert .messagebox_text { background-image: url(../img/asset_icons/[email protected]); background-size: 16px 16px; 2233 2234 2235 2236 2237 2238 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / css css / / page-builder.css page-builder.css Download patch Download patch Blame Blame Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / asset_icons asset_icons / / icon_box.png icon_box.png Blame Blame Preview Preview Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / asset_icons asset_icons / / [email protected] [email protected] Blame Blame Preview Preview Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / asset_icons asset_icons / / widget_area.png widget_area.png Blame Blame Preview Preview Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / asset_icons asset_icons / / [email protected] [email protected] Blame Blame Preview Preview Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / asset_icons asset_icons / / widget_sidebar.png widget_sidebar.png Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / asset_icons asset_icons / / [email protected] [email protected] Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / jquery.minicolors.png jquery.minicolors.png Blame Blame Preview Preview Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / menu_icons menu_icons / / menu_icon_box.png menu_icon_box.png Blame Blame Preview Preview Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / menu_icons menu_icons / / [email protected] [email protected] Blame Blame Preview Preview Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / menu_icons menu_icons / / menu_widget_area.png menu_widget_area.png Blame Blame Preview Preview Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / menu_icons menu_icons / / [email protected] [email protected] Blame Blame Preview Preview Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / menu_icons menu_icons / / menu_widget_sidebar.png menu_widget_sidebar.png Dican't be displayed for binary file. dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / img img / / menu_icons menu_icons / / [email protected] [email protected] 1 2 3 4 5 6 7 8 +/* + * jQuery MiniColors: A tiny color picker built on jQuery + * + * Copyright Cory LaViska for A Beautiful Site, LLC. (http://www.abeautifulsite.net/) + * + * Licensed under the MIT license: http://opensource.org/licenses/MIT + * + */jQuery&&function(e){function t(t,n){var r=e('<div class="minicolors" />'),i=e.minicolors.defaults;if(t.data("minicolors-initialized"))re dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / js js / / jquery.minicolors.min.js jquery.minicolors.min.js Blame Blame 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 +(function(f){if(f.zepto&&!f.fn.removeData)throw new ReferenceError("Zepto is loaded without the data module.");f.fn.noUiSlider=function(C, +a.val(c,!0)}}function G(a,b){a=a.toFixed(b.decimals);0===parseFloat(a)&&(a=a.replace("-0","0"));return a.replace(".",b.serialization.mark) +(l=!0);a.originalEvent&&(a=a.originalEvent);b&&(g=a.changedTouches[0].pageX,v=a.changedTouches[0].pageY);if(h||l)l||void 0!==window.pageXO +this.element.data("value",a);void 0!==a&&f.each(this.elements,function(){if("function"===typeof this)this.call(b,a);else this[0][this[1]]( +function(e){d=d.concat(J(a,c.to[b][e],b))});return{element:a,elements:d,target:a.data("target"),val:I}}function L(a,b){var c=a.data("targe +c))}function x(a,b){var c=a.data("base"),d=c.data("options"),c=c.data("handles"),e=0,k=100;if(!n(b))return!1;if(d.step){var m=d.step;b=Mat +b.a,e=a[b.d]-b.start[b.d],e=100*e/b.size;if(1===d.length){if(a=x(d[0],b.c[0]+e),!0!==a){0<=f.inArray(d[0].data("pct"),a)&&L(b.b,!c.margin) +b.target.removeClass(g[14]+" "+g[20]).change();r(c.set,b.target)}function B(a,b,c){1===b.a.length&&b.a[0].data("grab").addClass(g[4]);a.st +function O(a,b,c){b=b.b;var d,e;a.stopPropagation();c.orientation?(a=a.pointY,e=b.height()):(a=a.pointX,e=b.width());d=b.data("handles");v +a=[parseFloat(a[0]),parseFloat(a[1])];return!n(a[0])||!n(a[1])||a[1]<a[0]?!1:a}var d={f:function(a,b){switch(a){case 1:case 0.1:case 0.01: +"function"===typeof a[0][a[1]]}function g(a){var b=[[],[]];d(a)?b[0].push(a):f.each(a,function(a,e){1<a||(d(e)?b[a].push(e):b[a]=b[a].conc +start:{r:!0,t:function(a,b,d){if(1===b.handles)return f.isArray(a)&&(a=a[0]),a=parseFloat(a),b.start=[a],n(a);b[d]=c(a);return!!b[d]}},con +t:function(a,b,c){switch(a){case "ltr":b[c]=0;break;case "rtl":b[c]=1;b.connect=[0,2,1,3][b.connect];break;default:return!1}return!0}},beh +set:{t:function(a){return f.isFunction(a)}},block:{t:function(a){return f.isFunction(a)}},step:{t:function(a,b,c){a=parseFloat(a);b[c]=s(b +{},a));a=f.extend({handles:2,margin:0,connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal"},a);a.serialization=a.serializat +g[2]+g[7+a.direction+(a.direction?-1*c:c)]].join(" ")),e.data({base:k,target:b,options:a,grab:e.children(),pct:-1}).attr("data-style",a.st +a.behaviour.tap&&p(q.start,k,O,{b:k,target:b});a.behaviour.extend&&(b.addClass(g[19]),a.behaviour.tap&&p(q.start,b,P,{b:k,target:b}));a.be +(a=[a]);return this.each(function(){var c=f(this).data("base"),d,e=Array.prototype.slice.call(c.data("handles"),0),g=c.data("options");1<e +function(){b=b.concat(f(this).data("store").elements)});f.each(b,function(){1<this.length&&this[0].off(h)});a.removeClass(g.join(" "));a.e +q=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPoi dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / js js / / jquery.nouislider.min.js jquery.nouislider.min.js Blame Blame }, initializeFormEditing: function(element) { // + + removeClassProcessedElements(); $('#spb_edit_form .wp-editor-wrap .textarea_html').each(function(index) { initTinyMce($(this)); }); - + + $('.spb-colorpicker').minicolors(); + + if ($('.noUiSlider').length > 0) { + $('.noUiSlider').each(function() { + var uislider = jQuery(this), + sliderInput = uislider.next('input.spb-uislider'), + value = parseInt(sliderInput.val(), 10), + step = parseFloat(sliderInput.data('step')), + min = parseFloat(sliderInput.data('min')), + max = parseFloat(sliderInput.data('max')); + + console.log(step); + + uislider.noUiSlider({ + range: [min,max], + start: [value], + handles: 1, + step: step, + serialization: { + to: sliderInput, + resolution: 1 + } + }); + }); + } + + if ($('.icon-picker').length > 0) { + var selectedIcon = $('.icon-picker').val(); + if (selectedIcon) { + $('.font-icon-grid').find('.'+selectedIcon).parent().addClass('selected'); + } + } + + $('.font-icon-grid').on('click', 'li', function() { + var selection = $(this), + iconName = selection.find('i').attr('class'); + + $('.font-icon-grid li').removeClass('selected'); + selection.addClass('selected'); + selection.parent().parent().find('input').val(iconName); + }); + // $('#spb_edit_form .gallery_widget_attached_images_list').each(function(index) { // attachedImgSortable($(this)); // }); 95 96 97 98 99 100 101 102 103 104 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 $('.spb_save_edit_form').unbind('click').click(function(e) { e.preventDefault(); + removeClassProcessedElements(); saveFormEditing(element);//(element); - }); $('#cancel-background-options').unbind('click').click(function(e){ 116 117 118 119 120 121 122 123 160 161 162 163 164 165 166 167 198 199 200 201 202 203 204 242 243 244 245 246 247 248 this.addLastClass($(".spb_main_sortable")); var shortcodes = generateShortcodesFromHtml($(".spb_main_sortable")); + + removeClassProcessedElements(); if ( isTinyMceActive() != true ) { $('#content').val(shortcodes); 232 233 234 235 236 237 276 277 278 279 280 281 282 283 start: function(event, ui) { renderCorrectPlaceholder(event, ui);} }); initDroppable(); - - - + /* Make menu elements dropable */ //$('.dropdown-toggle').dropdown(); 268 269 270 271 272 273 274 275 276 314 315 316 317 318 319 320 281 282 283 284 285 286 287 325 326 327 328 329 330 331 /*** Template System ***/ spb_templateSystem(); + + /*** Element System ***/ + spb_customElementSystem(); $('#swift_page_builder').on('click', '.add-text-block-to-content', function(e) { e.preventDefault(); 453 454 455 456 457 458 497 498 499 500 501 502 503 504 505 clear_page_builder_content(); }); + $('#fullscreen-spb').on('click', function(e) { + e.preventDefault(); + $('body').addClass('spb-fullscreen-mode'); + }); + + $('#close-fullscreen-spb').on('click', function(e) { + e.preventDefault(); + $('body').removeClass('spb-fullscreen-mode'); + }); + }); // end jQuery(document).ready function open_elements_dropdown() { 508 509 510 511 512 513 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 jQuery('.spb_popular_layouts:first').trigger('click'); } +function open_custom_elements_dropdown() { + jQuery('.spb_custom_elements:first').trigger('click'); +} + /** * Swift Page Builder class */ 518 519 520 521 522 523 575 576 577 578 579 580 581 582 583 584 jQuery('#spb_save_template').live("click", function(e) { e.preventDefault(); - var template_name = prompt("Please enter template s name", ''); + var template_name = prompt("Please enter a name to save the template as.", ''); if ( template_name != null && template_name != "" ) { var template = generateShortcodesFromHtml(jQuery(".spb_main_sortable")); + + removeClassProcessedElements(); var data = { action: 'spb_save_template', template: template, 526 527 528 529 530 531 532 533 534 587 588 589 590 591 592 593 594 595 596 597 jQuery('.spb_templates_ul').html(response); }); } else { - alert(" Error. Please try again."); + alert(" There has been an error. Please try again."); } }); 539 540 541 542 543 544 545 602 603 604 605 606 607 608 591 592 593 594 595 596 597 654 655 656 657 658 659 660 }); } +function spb_customElementSystem() { + jQuery('.element-save').live("click", function(e) { + e.preventDefault(); + + var element_name = prompt("Please enter a name to save the element as.", ''); + if ( element_name != null && element_name != "" ) { + var element = generateShortcodesFromHtml(jQuery(this).closest('.spb_sortable'), true); + + removeClassProcessedElements(); + var data = { + action: 'spb_save_element', + element: element, + element_name: element_name + }; + + jQuery.post(ajaxurl, data, function(response) { + jQuery('.spb_custom_elements_ul').html(response); + }); + } else { + alert("There has been an error. Please try again."); + } + }); + + jQuery('.spb_elements_li a').live("click", function(e) { + e.preventDefault(); + var data = { + action: 'spb_load_element', + element_id: jQuery(this).attr('data-element_id') + }; + + jQuery.post(ajaxurl, data, function(response) { + jQuery('.spb_main_sortable').append(response).find(".spb_init_callback").each(function(index) { + var fn = window[jQuery(this).attr("value")]; + if ( typeof fn === 'function' ) { + fn(jQuery(this).closest('.spb_content_element')); + } + }); + // + initDroppable(); + save_spb_html(); + }); + + jQuery(this).parents('.custom-elements-nav').find('.dropdown').removeClass('open'); + }); + + jQuery('.spb_remove_element').live("click", function(e) { + e.preventDefault(); + var element_name = jQuery(this).closest('.spb_elements_li').find('a').text(); + var answer = confirm ("Confirm deletion of '"+element_name+"', or press Cancel to leave. This action cannot be undone."); + if (answer) { + //alert("delete"); + var data = { + action: 'spb_delete_element', + element_id: jQuery(this).closest('.spb_elements_li').find('a').attr('data-element_id') + }; + + jQuery.post(ajaxurl, data, function(response) { + jQuery('.spb_custom_elements_ul').html(response); + }); + } + }); +} + // fix sub nav on scroll var $win, $nav, navTop, isFixed = 0; function spb_navOnScroll() { 606 607 608 609 610 611 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 687 688 689 690 691 692 693 813 814 815 816 817 818 819 action: 'spb_shortcodes_to_builder', content: content }; - + jQuery.post(ajaxurl, data, function(response) { jQuery('.spb_main_sortable').html(response); 701 702 703 704 705 706 707 827 828 829 830 831 832 833 stop: function(event, ui) { jQuery('#spb_content').removeClass('sorting-started'); }, - update: function() {jQuery.swift_page_builder.save_spb_html(); }, + update: function() { + jQuery.swift_page_builder.save_spb_html(); + removeClassProcessedElements(); + }, over: function(event, ui) { ui.placeholder.css({maxWidth: ui.placeholder.parent().width()}); ui.placeholder.removeClass('hidden-placeholder'); 756 757 758 759 760 761 762 882 883 884 885 886 887 888 889 890 891 // cursorAt: { left: 10, top : 20 }, cursor: "move", items: "div.sortable_1st_level",//spb_sortable - update: function() {jQuery.swift_page_builder.save_spb_html(); } + update: function() { + jQuery.swift_page_builder.save_spb_html(); + removeClassProcessedElements(); + + } }); jQuery('.spb_column_container').sortable({ 836 837 838 839 840 841 842 965 966 967 968 969 970 971 972 973 974 975 // cursorAt: { left: 10, top : 20 }, cursor: "move", items: "div.spb_sortable:not(.spb_column)", - update: function() { jQuery.swift_page_builder.save_spb_html(); } + update: function() { + jQuery.swift_page_builder.save_spb_html(); + removeClassProcessedElements(); + } }); jQuery('.spb_main_sortable').droppable({ 847 848 849 850 851 852 853 980 981 982 983 984 985 986 987 988 989 } // end columnControls() +//Function to avoid that the same spb_element is processed more than once +function removeClassProcessedElements(){ + + jQuery(".spb_sortable").removeClass("spb_element_processed"); + +} + /* Show widget edit form ---------------------------------------------------------- */ var current_scroll_pos = 0; 1039 1040 1041 1042 1043 1044 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 function saveFormEditing(element) { jQuery("#publish").show(); // show main publish button jQuery('.spb_main_sortable, #spb-elements, .spb_switch-to-builder').show(); + removeClassProcessedElements(); //save data jQuery("#spb_edit_form .spb_param_value").each(function(index) { var element_to_update = jQuery(this).attr("name"), new_value = ''; - + // Textfield - input if ( jQuery(this).hasClass("textfield") ) { new_value = jQuery(this).val(); } + // Color - input + else if ( jQuery(this).hasClass("colorpicker") ) { + new_value = jQuery(this).val(); + } + // Slider - input + else if ( jQuery(this).hasClass("uislider") ) { + new_value = jQuery(this).val(); + } + else if ( jQuery(this).hasClass("icon-picker") ) { + new_value = jQuery(this).val(); + } // Dropdown - select - else if ( jQuery(this).hasClass("dropdown") ) { + else if ( jQuery(this).hasClass("dropdown") || jQuery(this).hasClass("dropdown-id") ) { new_value = jQuery(this).val(); // get selected element var all_classes_ar = new Array(), 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 jQuery.swift_page_builder.addLastClass(jQuery(".spb_main_sortable")); var shortcodes = generateShortcodesFromHtml(jQuery(".spb_main_sortable")); - + + removeClassProcessedElements(); + if ( isTinyMceActive() != true ) { jQuery('#content').val(shortcodes); } else { 1294 1295 1296 1297 1298 1299 1300 1449 1450 1451 1452 1453 1454 1455 1456 1457 column_el_width = getColumnSize(element), params = '', sc_ending = ']'; - + //New Validation to avoid duplicated text + if (!element.hasClass("spb_element_processed")){ + + + if ( element.parent().hasClass('spb_column_container') ) { + element.addClass("spb_element_processed"); + } + element.children('.spb_element_wrapper').children('.spb_param_value').each(function(index) { var param_name = jQuery(this).attr("name"), new_value = ''; 1344 1345 1346 1347 1348 1349 1350 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 new_value = jQuery(this).val(); } } + else if ( jQuery(this).hasClass("colorpicker") ) { + new_value = jQuery(this).val(); + } + else if ( jQuery(this).hasClass("uislider") ) { + new_value = jQuery(this).val(); + } + else if ( jQuery(this).hasClass("icon-picker") ) { + new_value = jQuery(this).val(); + } else if ( jQuery(this).hasClass("dropdown") ) { new_value = jQuery(this).val(); } + else if ( jQuery(this).hasClass("dropdown-id") ) { + new_value = jQuery(this).val(); + } else if ( jQuery(this).hasClass("select-multiple") ) { new_value = jQuery(this).val(); } 1357 1358 1359 1360 1361 1362 1363 1364 1365 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 output += '[/'+sc_base+'] '; } jQuery('.spb_column_container').removeClass('converted'); + } }); return output; 1453 1454 1455 1456 1457 1458 1629 1630 1631 1632 1633 1634 1635 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 total_width = width; } - if (cur_el.hasClass('spb_column') || cur_el.hasClass('spb_tabs') || cur_el.hasClass('spb_tour') || cur_el.hasClass( + if (cur_el.hasClass('spb_column') || cur_el.hasClass('spb_row') || cur_el.hasClass('spb_tabs') || cur_el.hasClass(' if (cur_el.find('.spb_element_wrapper .spb_column_container').length > 0) { cur_el.removeClass('empty_column'); $('.dropdown-toggle').removeClass('selected'); - if ($('#spb-elements').hasClass('subnav-fixed') || $(this).hasClass('spb_templates') || $(this).hasClass('spb_columns')) { + if ($('#spb-elements').hasClass('subnav-fixed') || $(this).hasClass('spb_templates') || $(this).hasClass('spb_custom_element slideOutClose(); jQuery('.spb_remove_template').live("click", function(e) { e.preventDefault(); var template_name = jQuery(this).closest('.spb_template_li').find('a').text(); - var answer = confirm ("Confirm deleti ng '"+template_name+"' template, press Cancel to leave. This action cannot be undone.") + var answer = confirm ("Confirm deleti on of '"+template_name+"' template, or press Cancel to leave. This action cannot be und if (answer) { //alert("delete"); var data = { if (jQuery.trim(content).length > 0 && jQuery.trim(content).substr(0,1) != "[" && jQuery.trim(content).substr(0,5) != "<span") { alert("By switching to the page builder, any content not in page builder assets will be removed for consistency."); - content = '[spb_text_block pb_margin_bottom="no" pb_border_bottom="no" width="1/1" el_position="first last"]' + content + '[ + //content = '[spb_text_block pb_margin_bottom="no" pb_border_bottom="no" width="1/1" el_position="first last"]' + content + if ( isTinyMceActive() ) { tinyMCE.get('content').setContent(content); } else { element_type = element.attr("data-element_type"); jQuery('body').css('overflow', 'hidden'); - jQuery('#spb_edit_form').html(jQuery('#spb_loading').val()).show().css({"padding-top" : 60}); + jQuery('#spb_edit_form').html( '<div class="spb-loading-message">'+jQuery('#spb_loading').val() +'</div>').show().css({"padding-to jQuery("#publish").hide(); // hide main publish button //jQuery('.spb_main_sortable, #spb-elements, .spb_switch-to-builder').hide(); - + var data = { action: 'spb_show_edit_form', element: element_type, el.closest('.spb_element_wrapper').addClass(class_to_set); } -/* Call to action Callbacks ----------------------------------------------------------- */ -function spbCallToActionInitCallBack(element) { - var el = element.find('.spb_param_value.position'); - var class_to_set = el.val(); - el.closest('.spb_element_wrapper').addClass(class_to_set); -} -function spbCallToActionSaveCallBack(element) { - var el_class = element.find('.spb_param_value.color').val() + " " + element.find('.spb_param_value.icon').val(); - // - element.find('.spb_element_wrapper').removeClass(el_class); -} - /* Button Callbacks ---------------------------------------------------------- */ -function spbButtonInitCallBack(element) { - var el_class = element.find('.spb_param_value.color').val() + ' ' + element.find('.spb_param_value.size').val() + ' ' + element. - // - element.find('button.title').attr({ "class" : "spb_param_value title textfield btn " + el_class }); - - var icon = element.find('.spb_param_value.icon').val(); - if ( icon != 'none' && element.find('button i.icon').length == 0 ) { - element.find('button.title').append(' <i class="icon"></i>'); - } -} - -function spbButtonSaveCallBack(element) { - var el_class = element.find('.spb_param_value.color').val() + ' ' + element.find('.spb_param_value.size').val() + ' ' + element. - // - element.find('.spb_element_wrapper').removeClass(el_class); - element.find('button.title').attr({ "class" : "spb_param_value title textfield btn " + el_class }); - - var icon = element.find('.spb_param_value.icon').val(); - if ( icon != 'none' && element.find('button i.icon').length == 0 ) { - element.find('button.title').append(' <i class="icon"></i>'); - } else { - element.find('button.title i.icon').remove(); - } -} +//function spbButtonInitCallBack(element) { +// var el_class = element.find('.spb_param_value.color').val() + ' ' + element.find('.spb_param_value.size').val() + ' ' + element. +// // +// element.find('button.title').attr({ "class" : "spb_param_value title textfield btn " + el_class }); +// +// var icon = element.find('.spb_param_value.icon').val(); +// if ( icon != 'none' && element.find('button i.icon').length == 0 ) { +// element.find('button.title').append(' <i class="icon"></i>'); +// } +//} +// +//function spbButtonSaveCallBack(element) { +// var el_class = element.find('.spb_param_value.color').val() + ' ' + element.find('.spb_param_value.size').val() + ' ' + element. +// // +// element.find('.spb_element_wrapper').removeClass(el_class); +// element.find('button.title').attr({ "class" : "spb_param_value title textfield btn " + el_class }); +// +// var icon = element.find('.spb_param_value.icon').val(); +// if ( icon != 'none' && element.find('button i.icon').length == 0 ) { +// element.find('button.title').append(' <i class="icon"></i>'); +// } else { +// element.find('button.title i.icon').remove(); +// } +//} /* URL Encoding ---------------------------------------------------------- */ dante dante / / swift-framework swift-framework / / page-builder page-builder / / assets assets / / js js / / page-builder.js page-builder.js Download patch Download patch Blame Blame wp_enqueue_style('bootstrap'); wp_enqueue_style('ui-custom-theme'); wp_enqueue_style('page-builder-css'); - + wp_enqueue_style('colorpicker-css'); + wp_enqueue_style('uislider-css'); + wp_enqueue_script('jquery-ui-tabs'); wp_enqueue_script('jquery-ui-droppable'); wp_enqueue_script('jquery-ui-draggable'); 101 102 103 104 105 106 107 101 102 103 104 105 106 107 108 109 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 wp_enqueue_script('bootstrap-js'); wp_enqueue_script('page-builder-js'); + wp_enqueue_script('colorpicker-js'); + wp_enqueue_script('uislider-js'); } public function registerJavascript() { wp_register_script('page-builder-js', $this->assetURL( 'js/page-builder.js' ), array('jquery'), SPB_VERSION, true); wp_register_script('bootstrap-js', $this->assetURL( 'js/bootstrap.min.js' ), false, SPB_VERSION, true); + wp_register_script('colorpicker-js', $this->assetURL( 'js/jquery.minicolors.min.js' ), array('jquery'), SPB_VERSION, tru + wp_register_script('uislider-js', $this->assetURL( 'js/jquery.nouislider.min.js' ), array('jquery'), SPB_VERSION, true); } public function registerCss() { wp_register_style( 'bootstrap', $this->assetURL( 'css/bootstrap.css' ), false, SPB_VERSION, false ); wp_register_style( 'page-builder-css', $this->assetURL( 'css/page-builder.css' ), false, NULL, false ); + wp_register_style( 'colorpicker-css', $this->assetURL( 'css/jquery.minicolors.css' ), false, NULL, false ); + wp_register_style( 'uislider-css', $this->assetURL( 'css/jquery.nouislider.min.css' ), false, NULL, false ); } public function swiftPageBuilderEditPage() { dante dante / / swift-framework swift-framework / / page-builder page-builder / / builder builder / / build.php build.php Download patch Download patch Blame Blame /* LAYOUT CONFIG ================================================== */ - SPBMap::layout(array('id'=>'column_12', 'title'=>'1/2')); - SPBMap::layout(array('id'=>'column_12-12', 'title'=>'1/2 + 1/2')); - SPBMap::layout(array('id'=>'column_13', 'title'=>'1/3')); - SPBMap::layout(array('id'=>'column_13-13-13', 'title'=>'1/3 + 1/3 + 1/3')); - SPBMap::layout(array('id'=>'column_13-23', 'title'=>'1/3 + 2/3')); - SPBMap::layout(array('id'=>'column_23-13', 'title'=>'2/3 + 1/3')); - SPBMap::layout(array('id'=>'column_14', 'title'=>'1/4')); - SPBMap::layout(array('id'=>'column_12-14-14', 'title'=>'1/2 + 1/4 + 1/4')); - SPBMap::layout(array('id'=>'column_14-12-14', 'title'=>'1/4 + 1/2 + 1/4')); - SPBMap::layout(array('id'=>'column_14-14-12', 'title'=>'1/4 + 1/4 + 1/2')); - SPBMap::layout(array('id'=>'column_14-14-14-14', 'title'=>'1/4 + 1/4 + 1/4 + 1/4')); - SPBMap::layout(array('id'=>'column_11', 'title'=>'1/1')); - SPBMap::layout(array('id'=>'column_16', 'title'=>'1/6')); + SPBMap::layout(array('id'=>'row', 'title'=>'Row')); + SPBMap::layout(array('id'=>'column_12', 'title'=>'1/2 Column')); + SPBMap::layout(array('id'=>'column_12-12', 'title'=>'1/2 + 1/2 Columns')); + SPBMap::layout(array('id'=>'column_13', 'title'=>'1/3 Column')); + SPBMap::layout(array('id'=>'column_13-13-13', 'title'=>'1/3 + 1/3 + 1/3 Columns')); + SPBMap::layout(array('id'=>'column_13-23', 'title'=>'1/3 + 2/3 Columns')); + SPBMap::layout(array('id'=>'column_23-13', 'title'=>'2/3 + 1/3 Columns')); + SPBMap::layout(array('id'=>'column_14', 'title'=>'1/4 Column')); + SPBMap::layout(array('id'=>'column_12-14-14', 'title'=>'1/2 + 1/4 + 1/4 Columns')); + SPBMap::layout(array('id'=>'column_14-12-14', 'title'=>'1/4 + 1/2 + 1/4 Columns')); + SPBMap::layout(array('id'=>'column_14-14-12', 'title'=>'1/4 + 1/4 + 1/2 Columns')); + SPBMap::layout(array('id'=>'column_14-14-14-14', 'title'=>'1/4 + 1/4 + 1/4 + 1/4 Column')); + SPBMap::layout(array('id'=>'column_11', 'title'=>'1/1 Column')); + SPBMap::layout(array('id'=>'column_16', 'title'=>'1/6 Column')); ?> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 dante dante / / swift-framework swift-framework / / page-builder page-builder / / builder builder / / lib lib / / default-map.php default-map.php Download patch Download patch Blame Blame 21 22 23 24 25 26 27 21 22 23 24 25 26 27 28 29 30 31 32 72 73 74 75 76 77 78 77 78 79 80 81 82 83 public function output($post = null) { - $options = get_option('sf_dante_options'); - $advanced_pb = false; - if (isset($options['advanced_pb']) && $options['advanced_pb'] == 1) { - $advanced_pb = true; - } - $output = ' <div id="spb-elements" class="navbar"> <div class="navbar-inner"> 156 157 158 159 160 161 162 163 164 165 166 167 161 162 163 164 165 166 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 public function output($post = null) { if(empty($this->params)) return ''; - $output = '<li><a id="'.$this->params['id'].'" data-element="spb_column" data-width="'.$this->params['id'].'" class="'.$ + $output = ""; + if ($this->params['id'] == "row") { + $output = '<li class="row-option"><a id="'.$this->params['id'].'" data-element="spb_row" data-width="'.$this->params + } else { + $output = '<li><a id="'.$this->params['id'].'" data-element="spb_column" data-width="'.$this->params['id'].'" cl + } return $output; } } } $class = ' ' . implode(" ", $class_ar); } - $output .= '<li><a data-element="' . $this->base . '" id="' . $this->base . '" class="dropable_el clickable_action'.$cla + $output .= '<li class="menu-item-'. $this->base .'"><a data-element="' . $this->base . '" id="' . $this->base . '" class if ($this->base != "spb_column") { return $output; <div class="nav-collapse"> <ul class="nav"> <li class="dropdown content-dropdown"> - <a class="dropdown-toggle spb_content_elements" data-slideout="spb-content-elements" href="# + <a class="dropdown-toggle spb_content_elements" data-slideout="spb-content-elements" href="# <ul class="dropdown-menu spb_elements_ul"> '.$this->getContentLayouts().' </ul> </li> </ul>'; - - if ($advanced_pb) { + $output .= '<ul class="nav pull-left columns-dropdown"> <li class="dropdown"> - <a class="dropdown-toggle spb_columns" href="#">'.__(" Add Columns", "swift-framework-admin") + <a class="dropdown-toggle spb_columns" href="#">'.__(" Layout", "swift-framework-admin").' <b <ul class="dropdown-menu"> '.$this->getColumnLayouts().' </ul> </li> </ul>'; - } $output .= '<ul class="nav pull-left pre-built-pages-nav"> <li class="dropdown"> dante dante / / swift-framework swift-framework / / page-builder page-builder / / builder builder / / lib lib / / layouts.php layouts.php Download patch Download patch Blame Blame 347 348 349 350 351 352 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 $value = $param_value; $param_line .= '<input name="'.$param['param_name'].'" class="spb_param_value spb-textinput '.$param['param_name'].' '.$ } + // Textfield - color + else if ( $param['type'] == 'colorpicker' ) { + $value = __($param_value, "swift-framework-admin"); + $value = $param_value; + $param_line .= '<input name="'.$param['param_name'].'" class="spb_param_value spb-colorpicker '.$param['param_name'].' ' + } + // Slider - uislider + else if ( $param['type'] == 'uislider' ) { + $value = __($param_value, "swift-framework-admin"); + $value = $param_value; + $min = isset($param['min']) ? $param['min'] : 0; + $max = isset($param['max']) ? $param['max'] : 800; + $step = isset($param['step']) ? $param['step'] : 5; + $param_line .= '<div class="noUiSlider"></div><input name="'.$param['param_name'].'" class="spb_param_value spb-uislider + } // Dropdown - select else if ( $param['type'] == 'dropdown' ) { $param_line .= '<select name="'.$param['param_name'].'" class="spb_param_value spb-input spb-select '.$param['param_name dante dante / / swift-framework swift-framework / / page-builder page-builder / / builder builder / / lib lib / / shortcodes.php shortcodes.php Download patch Download patch Blame Blame 'title' => '', 'item_count' => '-1', 'category' => '', + 'carousel' => '', 'carousel_columns' => '', 'carousel_auto' => 'no', 'pagination' => 'no', 10 11 12 13 14 15 10 11 12 13 14 15 16 68 69 70 71 72 73 74 75 76 77 78 79 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 ), array( "type" => "dropdown", + "heading" => __("Carousel", "swift-framework-admin"), + "param_name" => "carousel", + "value" => array(__("Yes", "swift-framework-admin") => "yes", + __("No", "swift-framework-admin") => "no" + ), + "description" => __("Enable the client asset to be a carousel, rather than a grid.", "swift-framework-admin") + ), + array( + "type" => "dropdown", "heading" => __("Carousel Auto-Rotate", "swift-framework-admin"), "param_name" => "carousel_auto", "value" => array(__("Yes", "swift-framework-admin") => "yes", 183 184 185 186 187 188 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 $columns = 6; } - if ($carousel_auto == "yes") { - $items .= '<div class="carousel-overflow"><ul id="carousel-'.$sf_carouselID.'" class="clients-items carousel-items clear + if ($carousel == "yes" || $carousel == "") { + if ($carousel_auto == "yes") { + $items .= '<div class="carousel-overflow"><ul id="carousel-'.$sf_carouselID.'" class="clients-items carousel-items c + } else { + $items .= '<div class="carousel-overflow"><ul id="carousel-'.$sf_carouselID.'" class="clients-items carousel-items c + } } else { - $items .= '<div class="carousel-overflow"><ul id="carousel-'.$sf_carouselID.'" class="clients-items carousel-items c - } - + $items .= '<ul class="carousel-grid row">'; + } $client_width = 200; $client_height = 200; endwhile; wp_reset_postdata(); - - $items .= '</ul>'; - - $items .= '<a href="#" class="prev"><i class="ss-navigateleft"></i></a><a href="#" class="next"><i class="ss-navigaterig - - $options = get_option('sf_dante_options'); - if ($options['enable_swipe_indicators']) { - $items .= '<div class="sf-swipe-indicator"></div>'; - } - $items .= '</div>'; - - // PAGINATION - - if ($pagination == "yes") { - - $items .= '<div class="pagination-wrap">'; + if ($carousel == "yes" || $carousel == "") { + + $items .= '</ul>'; + + $items .= '<a href="#" class="prev"><i class="ss-navigateleft"></i></a><a href="#" class="next"><i class="ss-navigat + + $options = get_option('sf_dante_options'); + if ($options['enable_swipe_indicators']) { + $items .= '<div class="sf-swipe-indicator"></div>'; + } - $items .= pagenavi($clients_items); - $items .= '</div>'; + } else { + + $items .= '</ul>'; + + // PAGINATION + if ($pagination == "yes") { + + $items .= '<div class="pagination-wrap">'; + + $items .= pagenavi($clients_items); + + $items .= '</div>'; + + } + } // PAGE BUILDER OUPUT dante dante / / swift-framework swift-framework / / page-builder page-builder / / builder builder / / shortcodes shortcodes / / clients.php clients.php Download patch Download patch Blame Blame 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 +<?php + +class SwiftPageBuilderShortcode_spb_icon_box extends SwiftPageBuilderShortcode { + + public function content( $atts, $content = null ) { + + $title = $el_class = $text_color = $image_url = $image_object = $width = $el_position = ''; + + extract(shortcode_atts(array( + 'title' => '', + 'character' => '', + 'image' => '', + 'animation' => '', + 'animation_delay' => '', + 'box_type' => '', + 'color' => '', + 'target' => '', + 'el_class' => '', + 'el_position' => '', + 'width' => '1/1' + ), $atts)); + + $output = ''; + + if ($image != "") { + $img_url = wp_get_attachment_url( $image, 'full' ); + $image_object = sf_aq_resize( $img_url, 70, 70, true, false); + $image_url = $image_object[0]; + } + + $icon_box_output = do_shortcode('[sf_iconbox character="'.$character.'" image="'.$image.'" color="standard" type="'.$box_type. + + $el_class = $this->getExtraClass($el_class); + $width = spb_translateColumnWidthToSpan($width); + + $output .= "\n\t".'<div class="spb_icon_box '.$width.$el_class.'">'; + $output .= "\n\t\t".'<div class="spb_wrapper box-wrap">'; + $output .= "\n\t\t\t".$icon_box_output; + $output .= "\n\t\t".'</div> '.$this->endBlockComment('.spb_wrapper'); + $output .= "\n\t".'</div> '.$this->endBlockComment($width); + + $output = $this->startRow($el_position) . $output . $this->endRow($el_position); + + global $sf_include_carousel; + $sf_include_carousel = true; + + return $output; + } +} + +SPBMap::map( 'spb_icon_box', array( + "name" => __("Icon Box", "swift-framework-admin"), + "base" => "spb_icon_box", + "class" => "", + "icon" => "spb-icon-icon-box", + "wrapper_class" => "clearfix", + "params" => array( + array( + "type" => "textfield", + "heading" => __("Icon Box title", "swift-framework-admin"), + "param_name" => "title", + "holder" => 'div', + "value" => "", + "description" => __("Icon Box title text.", "swift-framework-admin") + ), + array( + "type" => "dropdown", + "heading" => __("Icon Box Type", "swift-framework-admin"), + "param_name" => "box_type", + "value" => array( + __('Standard', "swift-framework-admin") => "standard", + __('Standard with Title Icon', "swift-framework-admin") => "standard-title", + __('Left Icon', "swift-framework-admin") => "left-icon", + __('Left Icon Alt', "swift-framework-admin") => "left-icon-alt", + __('Boxed One', "swift-framework-admin") => "boxed-one", + __('Boxed Two', "swift-framework-admin") => "boxed-two", + __('Boxed Three', "swift-framework-admin") => "boxed-three", + __('Boxed Four', "swift-framework-admin") => "boxed-four", + __('Animated', "swift-framework-admin") => "animated", + ), + "description" => __("Choose the type of icon box.", "swift-framework-admin") + ), + array( + "type" => "icon-picker", + "heading" => __("Icon Box Icon", "swift-framework-admin"), + "param_name" => "image", + "value" => "", + "description" => '' + ), + array( + "type" => "textfield", + "heading" => __("Icon Box Character", "swift-framework-admin"), + "param_name" => "character", + "value" => "", + "description" => __("Instead of an icon, you can optionally provide a single letter/digit here. NOTE: This will override the + ), + array( + "type" => "textarea_html", + "holder" => "div", + "class" => "", + "heading" => __("Text", "swift-framework-admin"), + "param_name" => "content", + "value" => __("click the edit button to change this text.", "swift-framework-admin"), + "description" => __("Enter your content.", "swift-framework-admin") + ), + array( + "type" => "dropdown", + "heading" => __("Icon Box Color", "swift-framework-admin"), + "param_name" => "color", + "value" => array( + __('Standard', "swift-framework-admin") => "standard", + __('Accent', "swift-framework-admin") => "accent", + __('Secondary Accent', "swift-framework-admin") => "secondary-accent", + __('Icon One', "swift-framework-admin") => "icon-one", + __('Icon Two', "swift-framework-admin") => "icon-two", + __('Icon Three', "swift-framework-admin") => "icon-three", + __('Icon Four', "swift-framework-admin") => "icon-four" + ), + "description" => __("These colours are all set in the Color Customiser (link in the WP Admin Bar).", "swift-framework-admin") + ), + array( + "type" => "dropdown", + "heading" => __("Intro Animation", "swift-framework-admin"), + "param_name" => "animation", + "value" => array( + __("None", "swift-framework-admin") => "none", + __("Fade In", "swift-framework-admin") => "fade-in", + __("Fade From Left", "swift-framework-admin") => "fade-from-left", + __("Fade From Right", "swift-framework-admin") => "fade-from-right", + __("Fade From Bottom", "swift-framework-admin") => "fade-from-bottom", + __("Move Up", "swift-framework-admin") => "move-up", + __("Grow", "swift-framework-admin") => "grow", + __("Fly", "swift-framework-admin") => "fly", + __("Helix", "swift-framework-admin") => "helix", + __("Flip", "swift-framework-admin") => "flip", + __("Pop Up", "swift-framework-admin") => "pop-up", + __("Spin", "swift-framework-admin") => "spin", + __("Flip X", "swift-framework-admin") => "flip-x", + __("Flip Y", "swift-framework-admin") => "flip-y" + ), + "description" => __("Select an intro animation for the icon box that will show it when it appears within the viewport.", "swi + ), + array( + "type" => "textfield", + "heading" => __("Animation Delay", "swift-framework-admin"), + "param_name" => "animation_delay", + "value" => "", + "description" => __("If you wish to style particular content element differently, then use this field to add a class name and + ), + array( + "type" => "textfield", + "heading" => __("Extra class name", "swift-framework-admin"), + "param_name" => "el_class", + "value" => "", + "description" => __("If you wish to style particular content element differently, then use this field to add a class name and + ) + ) +) ); + +?> dante dante / / swift-framework swift-framework / / page-builder page-builder / / builder builder / / shortcodes shortcodes / / icon-boxes.php icon-boxes.php Blame Blame 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 +<?php + + /* + * + * Swift Page Builder - Row Shortcode Class + * ------------------------------------------------ + * Swift Framework + * Copyright Swift Ideas 2014 - http://www.swiftideas.net + * + */ + + class SwiftPageBuilderShortcode_spb_row extends SwiftPageBuilderShortcode { + + public function content( $atts, $content = null ) { + + $el_class = $width = $row_bg_color = $row_padding_vertical = $row_margin_vertical = $remove_element_spacing = $el_position = ' + + extract(shortcode_atts(array( + 'wrap_type' => '', + 'row_bg_color' => '', + 'row_id' => '', + 'row_name' => '', + 'row_padding_vertical' => '', + 'row_margin_vertical' => '30', + 'row_overlay_opacity' => '0', + 'remove_element_spacing' => '', + 'parallax_type' => '', + 'bg_image' => '', + 'bg_video_mp4' => '', + 'bg_video_webm' => '', + 'bg_video_ogg' => '', + 'parallax_video_height' => 'video-height', + 'parallax_image_height' => 'content-height', + 'parallax_video_overlay' => 'none', + 'parallax_image_movement' => 'fixed', + 'parallax_image_speed' => '0.5', + 'bg_type' => '', + 'el_class' => '', + 'el_position' => '', + 'width' => '1/1' + ), $atts)); + + $output = $inline_style = $rowId = ''; + + if ($row_id != "") { + $rowId = 'id="'.$row_id.'" data-rowname="'.$row_name.'"'; + } + + $el_class = $this->getExtraClass($el_class); + $orig_width = $width; + $width = spb_translateColumnWidthToSpan($width); + $img_url = wp_get_attachment_image_src($bg_image, 'full'); + + if ($remove_element_spacing == "yes") { + $el_class .= ' remove-element-spacing'; + } + + if ($row_bg_color != "") { + $inline_style .= 'background-color:'.$row_bg_color.';'; + } + if ($row_padding_vertical != "") { + $inline_style .= 'padding-top:'.$row_padding_vertical.'px;padding-bottom:'.$row_padding_vertical.'px;'; + } + if ($row_margin_vertical != "") { + $inline_style .= 'margin-top:'.$row_margin_vertical.'px;margin-bottom:'.$row_margin_vertical.'px;'; + } + + if ($parallax_type != "color") { + $inline_style .= 'background-image: url('.$img_url[0].');'; + } + + + if ($parallax_type == "video") { + if ($img_url[0] != "") { + $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.' spb_parallax_asset sf-parallax sf-parallax-vid + } else { + $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.' spb_parallax_asset sf-parallax sf-parallax-vid + } + } else if ($parallax_type == "image") { + if ($img_url[0] != "") { + if ($parallax_image_movement == "stellar") { + $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.' spb_parallax_asset sf-parallax parallax-'. + } else { + $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.' spb_parallax_asset sf-parallax parallax-'. + } + } else { + $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.' spb_parallax_asset sf-parallax parallax-'.$par + } + } else { + $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.'" style="'.$inline_style.'" '.$rowId.'>'; + } + + if ($wrap_type == "content-width") { + //$output .= "\n\t\t".'<div class="container">'; + } + $output .= "\n\t\t".'<div class="spb_content_element '.$width.$el_class.'">'; + $output .= "\n\t\t\t".'<div class="spb_wrapper">'; + $output .= "\n\t\t\t\t". spb_format_content($content); + $output .= "\n\t\t\t".'</div> '.$this->endBlockComment('.spb_wrapper'); + + if ($parallax_type == "video") { + $output .= '<video class="parallax-video" poster="'.$img_url[0].'" preload="auto" autoplay loop="loop" muted="muted">'; + if ($bg_video_mp4 != "") { + $output .= '<source src="'.$bg_video_mp4.'" type="video/mp4">'; + } + if ($bg_video_webm != "") { + $output .= '<source src="'.$bg_video_webm.'" type="video/webm">'; + } + if ($bg_video_ogg != "") { + $output .= '<source src="'.$bg_video_ogg.'" type="video/ogg">'; + } + $output .= '</video>'; + $output .= '<div class="video-overlay overlay-'.$parallax_video_overlay.'"></div>'; + } + + $output .= "\n\t\t".'</div> '.$this->endBlockComment($width); + + if ($row_overlay_opacity != "0") { + $opacity = intval($row_overlay_opacity, 10) / 100; + $output .= '<div class="row-overlay" style="background-color:'.$row_bg_color.';opacity:'.$opacity.';"></div>'; + } + + + if ($wrap_type == "content-width") { + //$output .= "\n\t\t".'</div>'; + } + $output .= "\n\t".'</div>'; + + $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true); + + if ($parallax_type == "image" || $parallax_type == "video") { + global $sf_include_parallax; + $sf_include_parallax = true; + } + + return $output; + } + + public function contentAdmin($atts, $content = null) { + $width = $el_class = $bg_color = $padding_vertical = ''; + extract(shortcode_atts(array( + 'wrap_type' => '', + 'el_class' => '', + 'row_bg_color' => '', + 'row_padding_vertical' => '', + 'row_margin_vertical' => '', + 'row_overlay_opacity' => '0', + 'remove_element_spacing' => '', + 'row_id' => '', + 'row_name' => '', + 'parallax_type' => '', + 'bg_image' => '', + 'bg_video_mp4' => '', + 'bg_video_webm' => '', + 'bg_video_ogg' => '', + 'parallax_video_height' => 'video-height', + 'parallax_image_height' => 'content-height', + 'parallax_video_overlay' => 'none', + 'parallax_image_movement' => 'fixed', + 'parallax_image_speed' => '0.5', + 'bg_type' => '', + 'width' => 'span12' + ), $atts)); + + $output = ''; + + $output .= '<div data-element_type="spb_row" class="spb_row spb_sortable span12 spb_droppable not-column-inherit">'; + $output .= '<input type="hidden" class="spb_sc_base" name="element_name-spb_row" value="spb_row">'; + $output .= '<div class="controls sidebar-name"><div class="controls_right"><a class="column_edit" href="#" title="Edit"></a> + $output .= '<div class="spb_element_wrapper">'; + $output .= '<div class="row-fluid spb_column_container spb_sortable_container not-column-inherit">'; + $output .= do_shortcode( shortcode_unautop($content) ); + $output .= SwiftPageBuilder::getInstance()->getLayout()->getContainerHelper(); + $output .= '</div>'; + if ( isset($this->settings['params']) ) { + $inner = ''; + foreach ($this->settings['params'] as $param) { + $param_value = isset($$param['param_name']) ? $$param['param_name'] : ''; + //var_dump($param_value); + if ( is_array($param_value)) { + // Get first element from the array + reset($param_value); + $first_key = key($param_value); + $param_value = $param_value[$first_key]; + } + $inner .= $this->singleParamHtmlHolder($param, $param_value); + } + $output .= $inner; + } + $output .= '</div>'; + $output .= '</div>'; + + return $output; + } + } + + SPBMap::map( 'spb_row', array( + "name" => __("Row", "swift-framework-admin"), + "base" => "spb_row", + "controls" => "edit_delete", + "content_element" => false, + "params" => array( + array( + "type" => "dropdown", + "heading" => __("Wrap type", "swift-framework-admin"), + "param_name" => "wrap_type", + "value" => array(__('Standard Width Content', "swift-framework-admin") => "content-width", __('Full Width Content', "swift + "description" => __("Select if you want to row to wrap the content to the grid, or if you want the content to be edge to e + ), + array( + "type" => "colorpicker", + "heading" => __("Background color", "swift-framework-admin"), + "param_name" => "row_bg_color", + "value" => "", + "description" => __("Select a background colour for the row here.", "swift-framework-admin") + ), + array( + "type" => "dropdown", + "heading" => __("Row Type", "swift-framework-admin"), + "param_name" => "parallax_type", + "value" => array( + __("Color", "swift-framework-admin") => "color", + __("Image", "swift-framework-admin") => "image", + __("Video", "swift-framework-admin") => "video" + ), + "description" => __("Choose whether you want to use an image or video for the background of the parallax. This will decide + ), + array( + "type" => "attach_image", + "heading" => __("Background Image", "swift-framework-admin"), + "param_name" => "bg_image", + "value" => "", + "description" => "Choose an image to use as the background for the parallax area." + ), + array( + "type" => "dropdown", + "heading" => __("Background Type", "swift-framework-admin"), + "param_name" => "bg_type", + "value" => array( + __("Cover", "swift-framework-admin") => "cover", + __("Pattern", "swift-framework-admin") => "pattern" + ), + "description" => __("If you're uploading an image that you want to spread across the whole asset, then choose cover. Else + ), + array( + "type" => "textfield", + "heading" => __("Background Video (MP4)", "swift-framework-admin"), + "param_name" => "bg_video_mp4", + "value" => "", + "description" => "Provide a video URL in MP4 format to use as the background for the parallax area. You can upload these v + ), + array( + "type" => "textfield", + "heading" => __("Background Video (WebM)", "swift-framework-admin"), + "param_name" => "bg_video_webm", + "value" => "", + "description" => "Provide a video URL in WebM format to use as the background for the parallax area. You can upload these + ), + array( + "type" => "textfield", + "heading" => __("Background Video (Ogg)", "swift-framework-admin"), + "param_name" => "bg_video_ogg", + "value" => "", + "description" => "Provide a video URL in OGG format to use as the background for the parallax area. You can upload these v + ), + array( + "type" => "dropdown", + "heading" => __("Parallax Video Height", "swift-framework-admin"), + "param_name" => "parallax_video_height", + "value" => array( + __("Video Height", "swift-framework-admin") => "video-height", + __("Content Height", "swift-framework-admin") => "content-height" + ), + "description" => __("If you are using this as a video parallax asset, then please choose whether you'd like asset to sized + ), + array( + "type" => "dropdown", + "heading" => __("Parallax Image Height", "swift-framework-admin"), + "param_name" => "parallax_image_height", + "value" => array( + __("Content Height", "swift-framework-admin") => "content-height", + __("Window Height", "swift-framework-admin") => "window-height" + ), + "description" => __("If you are using this as an image parallax asset, then please choose whether you'd like asset to size + ), + array( + "type" => "dropdown", + "heading" => __("Background Image Movement", "swift-framework-admin"), + "param_name" => "parallax_image_movement", + "value" => array( + __("Fixed", "swift-framework-admin") => "fixed", + __("Scroll", "swift-framework-admin") => "scroll", + __("Stellar (dynamic)", "swift-framework-admin") => "stellar", + ), + "description" => __("Choose the type of movement you would like the parallax image to have. Fixed means the background ima + ), + array( + "type" => "textfield", + "heading" => __("Parallax Image Speed (Stellar Only)", "swift-framework-admin"), + "param_name" => "parallax_image_speed", + "value" => "0.5", + "description" => "The speed at which the parallax image moves in relation to the page scrolling. For example, 0.5 would me + ), + array( + "type" => "uislider", + "heading" => __("Overlay Opacity", "swift-framework-admin"), + "param_name" => "row_overlay_opacity", + "value" => "0", + "step" => "5", + "min" => "0", + "max" => "100", + "description" => __("Adjust the overlay capacity if using an image or video option. This uses the color option, and shows + ), + array( + "type" => "uislider", + "heading" => __("Padding - Vertical", "swift-framework-admin"), + "param_name" => "row_padding_vertical", + "value" => "30", + "description" => __("Adjust the vertical padding for the row.", "swift-framework-admin") + ), + array( + "type" => "uislider", + "heading" => __("Margin - Vertical", "swift-framework-admin"), + "param_name" => "row_margin_vertical", + "value" => "30", + "description" => __("Adjust the margin above and below the row.", "swift-framework-admin") + ), + array( + "type" => "dropdown", + "heading" => __("Remove Element Spacing", "swift-framework-admin"), + "param_name" => "remove_element_spacing", + "value" => array( + __('No', "swift-framework-admin") => "no", + __('Yes', "swift-framework-admin") => "yes"), + "description" => __("Enable this option if you wish to remove all spacing from the elements within the row.", "swift-frame + ), + array( + "type" => "textfield", + "heading" => __("Row ID", "swift-framework-admin"), + "param_name" => "row_id", + "value" => "", + "description" => __("If you wish to add an ID to the row, then add it here. You can then use the id to deep link to this s + ), + array( + "type" => "textfield", + "heading" => __("Row Section Name", "swift-framework-admin"), + "param_name" => "row_name", + "value" => "", + "description" => __("This is used for the one page navigation, to identify the row. If this is left blank, then the row wi + ), + array( + "type" => "textfield", + "heading" => __("Extra class name", "swift-framework-admin"), + "param_name" => "el_class", + "value" => "", + "description" => __("If you wish to style particular content element differently, then use this field to add a class name + ) + ) + ) ); + +?> dante dante / / swift-framework swift-framework / / page-builder page-builder / / builder builder / / shortcodes shortcodes / / row.php row.php Blame Blame $width = spb_translateColumnWidthToSpan($width); $search_form .= '<form method="get" class="search-form search-widget" action="'.get_home_url().'/">'; - $search_form .= '<input type="text" placeholder="'.$search_input_text.'" name="s f-search" />'; + $search_form .= '<input type="text" placeholder="'.$search_input_text.'" name="s" />'; $search_form .= '</form>'; $output .= "\n\t".'<div class="spb_search_widget spb_content_element '.$width.$el_class.'">'; 31 32 33 34 35 36 37 31 32 33 34 35 36 37 dante dante / / swift-framework swift-framework / / page-builder page-builder / / builder builder / / shortcodes shortcodes / / search.php search.php Download patch Download patch Blame Blame $el_class = $this->getExtraClass($el_class); $width = spb_translateColumnWidthToSpan($width); - $output .= "\n\t".'<div class="spb_search_widget spb_content_element '.$width.$el_class.'">'; - $output .= "\n\t\t".'<div class="spb_wrapper latest-tweet-bar-wrap clearfix">'; + $output .= "\n\t".'<div class="spb_sidebar_widget spb_content_element '.$width.$el_class.'">'; + $output .= "\n\t\t".'<div class="spb_wrapper clearfix">'; $output .= "\n\t\t\t".$sidebar_value; $output .= "\n\t\t".'</div> '.$this->endBlockComment('.spb_wrapper'); $output .= "\n\t".'</div> '.$this->endBlockComment($width); 37 38 39 40 41 42 43 44 37 38 39 40 41 42 43 44 dante dante / / swift-framework swift-framework / / page-builder page-builder / / builder builder / / shortcodes shortcodes / / sidebar-widget.php sidebar-widget.php Download patch Download patch Blame Blame 134 135 136 137 138 139 140 141 142 134 135 136 137 138 139 140 141 142 $tabs_nav .= '<ul class="nav nav-tabs">'; foreach ( $tab_titles as $tab ) { if ($tab_count == 0) { - $tabs_nav .= '<li class="active"><a href="#'. preg_replace("#[[:punct:]]#", "", (strtolower(str_replace(' ', '-', $tab[0 + $tabs_nav .= '<li class="active"><a href="#'. preg_replace("#[[:punct:]]#", "", (strtolower(str_replace(' ', '-', $tab[0 } else { - $tabs_nav .= '<li><a href="#'. preg_replace("#[[:punct:]]#", "", (strtolower(str_replace(' ', '-', $tab[0])))).'" data-t + $tabs_nav .= '<li><a href="#'. preg_replace("#[[:punct:]]#", "", (strtolower(str_replace(' ', '-', $tab[0])))) .'" data- } $tab_count++; } dante dante / / swift-framework swift-framework / / page-builder page-builder / / builder builder / / shortcodes shortcodes / / tabs.php tabs.php Download patch Download patch Blame Blame function spb_register_assets() { require_once( SPB_SHORTCODES_DIR . 'default.php' ); require_once( SPB_SHORTCODES_DIR . 'column.php' ); + require_once( SPB_SHORTCODES_DIR . 'row.php' ); require_once( SPB_SHORTCODES_DIR . 'accordion.php' ); require_once( SPB_SHORTCODES_DIR . 'tabs.php' ); require_once( SPB_SHORTCODES_DIR . 'tour.php' ); require_once( SPB_SHORTCODES_DIR . 'impact-text.php' ); + require_once( SPB_SHORTCODES_DIR . 'icon-boxes.php' ); require_once( SPB_SHORTCODES_DIR . 'media.php' ); require_once( SPB_SHORTCODES_DIR . 'raw_content.php' ); require_once( SPB_SHORTCODES_DIR . 'portfolio.php' ); 32 33 34 35 36 37 38 39 40 41 32 33 34 35 36 37 38 39 40 41 42 43 dante dante / / swift-framework swift-framework / / page-builder page-builder / / builder builder / / spb-includes.php spb-includes.php Download patch Download patch Blame Blame update_post_meta( $menu_item_db_id, '_menu_item_icon', $menu_icon_value ); } - if ( isset( $_REQUEST['menu-item-htmlcontent']) ) { + if ( isset( $_REQUEST['menu-item-htmlcontent'] [$menu_item_db_id]) ) { $menu_htmlcontent_value = $_REQUEST['menu-item-htmlcontent'][$menu_item_db_id]; update_post_meta( $menu_item_db_id, '_menu_item_htmlcontent', $menu_htmlcontent_value ); } 75 76 77 78 79 80 81 75 76 77 78 79 80 81 update_post_meta( $menu_item_db_id, '_menu_nocolumnspacing', 0 ); } - if ( isset( $_REQUEST['menu-item-width']) ) { + if ( isset( $_REQUEST['menu-item-width'] [$menu_item_db_id]) ) { $menu_width_value = $_REQUEST['menu-item-width'][$menu_item_db_id]; update_post_meta( $menu_item_db_id, '_menu_item_width', $menu_width_value ); } 110 111 112 113 114 115 116 110 111 112 113 114 115 116 dante dante / / swift-framework swift-framework / / sf-megamenu sf-megamenu / / sf-megamenu.php sf-megamenu.php Download patch Download patch Blame Blame 635 636 637 638 639 640 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 <p class="info">Enter the day for which you want the countdown to count to (e.g. 24).</p> </div> <div class="option"> + <label for="countdown-hour"><?php _e('Hour', 'swift-framework-admin'); ?></label> + <input id="countdown-hour" name="countdown-hour" type="text" value=""/> + <p class="info">Enter the hour for which you want the countdown to count to (e.g. 12) (24 hour format).< + </div> + <div class="option"> + <label for="countdown-type"><?php _e('Countdown Type', 'swift-framework-admin'); ?></label> + <select id="countdown-type" name="countdown-type"> + <option value="countdown"><?php _e('Count Down', 'swift-framework-admin'); ?></option> + <option value="countup"><?php _e('Count Up', 'swift-framework-admin'); ?></option> + </select> + </div> + <div class="option"> <label for="countdown-fontsize"><?php _e('Countdown Font Size', 'swift-framework-admin'); ?></label> <select id="countdown-fontsize" name="countdown-fontsize"> <option value="small"><?php _e('Small', 'swift-framework-admin'); ?></option> dante dante / / swift-framework swift-framework / / sf-shortcodes sf-shortcodes / / interface.php interface.php Download patch Download patch Blame Blame var countdown_year = document.getElementById('countdown-year').value; var countdown_month = document.getElementById('countdown-month').value; var countdown_day = document.getElementById('countdown-day').value; + var countdown_hour = document.getElementById('countdown-hour').value; + var countdown_type = document.getElementById('countdown-type').value; var countdown_fontsize = document.getElementById('countdown-fontsize').value; var countdown_displaytext = document.getElementById('countdown-displaytext').value; 93 94 95 96 97 98 93 94 95 96 97 98 99 100 280 281 282 283 284 285 286 282 283 284 285 286 287 288 if (shortcode_select == 'shortcode-countdown') { - shortcodeHTML = '[sf_countdown year="' + countdown_year + '" month="' + countdown_month + '" day="' + countdown_day + '" + shortcodeHTML = '[sf_countdown year="' + countdown_year + '" month="' + countdown_month + '" day="' + countdown_day + '" } dante dante / / swift-framework swift-framework / / sf-shortcodes sf-shortcodes / / sf.shortcode.embed.js sf.shortcode.embed.js Download patch Download patch Blame Blame 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 add_shortcode('sf_supersearch', 'sf_supersearch'); + /* EMAIL ENCODE SHORTCODE + ================================================== */ + function sf_email_encode_function( $atts, $content ){ + return '<a href="'.antispambot("mailto:".$content).'">'.antispambot($content).'</a>'; + } + add_shortcode( 'email', 'sf_email_encode_function' ); + /* SWIFT GALLERY SHORTCODE ================================================= */ 1179 1180 1181 1182 1183 1184 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 "year" => '', "month" => '', "day" => '', + "hour" => '0', + "type" => 'countdown', "fontsize" => 'large', "displaytext" => '' ), $atts)); $countdown_output = ''; - $countdown_output .= '<div class="sf-countdown text-'.$fontsize.'" data-year="'.$year.'" data-month="'.$month.'" data-day="' + $countdown_output .= '<div class="sf-countdown text-'.$fontsize.'" data-year="'.$year.'" data-month="'.$month.'" data-day="' if ($displaytext != "") { $countdown_output .= '<h3 class="countdown-subject">'.$displaytext.'</h3>'; } dante dante / / swift-framework swift-framework / / shortcodes.php shortcodes.php Download patch Download patch Blame Blame // Widget Options $title = apply_filters('widget_title', $instance['title'] ); // Title $number = $instance['number']; // Number of posts to show + $category = $instance['category']; // Category to show + + if ($category == "All") {$category = "all";} + if ($category == "all") {$category = '';} + $category_slug = str_replace('_', '-', $category); echo $before_widget; 25 26 27 28 29 30 25 26 27 28 29 30 31 32 33 34 35 $recent_portfolio = new WP_Query( array( 'post_type' => 'portfolio', - 'posts_per_page' => $number + 'posts_per_page' => $number , + 'portfolio-category' => $category_slug, ) ); 33 34 35 36 37 38 39 38 39 40 41 42 43 44 45 $instance['title'] = strip_tags( $new_instance['title'] ); $instance['number'] = strip_tags( $new_instance['number'] ); + $instance['category'] = strip_tags( $new_instance['category'] ); return $instance; } 88 89 90 91 92 93 94 95 96 97 98 99 100 // Set defaults if instance doesn't already exist if ( $instance ) { - $title = $instance['title']; + $title = $instance['title']; $number = $instance['number']; + $category = $instance['category']; } else { - // Defaults - $title = ''; - $number = '6'; + // Defaults + $title = ''; + $number = '5'; + $category = ''; } // The widget form 96 97 98 99 100 101 102 103 104 105 106 107 103 104 105 106 107 108 109 110 111 112 113 114 115 116 114 115 116 117 118 119 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 <label for="<?php echo $this->get_field_id('number'); ?>"><?php echo __( 'Number of items to show:', 'swift-fram <input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" t </p> + <p> + <label for="<?php echo $this->get_field_id('category'); ?>"><?php _e('Category', 'wp_widget_plugin'); ?></label> + <select name="<?php echo $this->get_field_name('category'); ?>" id="<?php echo $this->get_field_id('category'); + <?php + $options = sf_get_category_list('portfolio-category'); + foreach ($options as $option) { + echo '<option value="' . $option . '" id="' . $option . '"', $category == $option ? ' selected="selected"' : + } + ?> + </select> + </p> + </p> <?php } dante dante / / swift-framework swift-framework / / widgets widgets / / widget-portfolio-grid.php widget-portfolio-grid.php Download patch Download patch Blame Blame // Widget Options $title = apply_filters('widget_title', $instance['title'] ); // Title $number = $instance['number']; // Number of posts to show + $category = $instance['category']; // Category to show + + if ($category == "All") {$category = "all";} + if ($category == "all") {$category = '';} + $category_slug = str_replace('_', '-', $category); echo $before_widget; 25 26 27 28 29 30 25 26 27 28 29 30 31 32 33 34 35 $recent_portfolio = new WP_Query( array( 'post_type' => 'portfolio', - 'posts_per_page' => $number + 'posts_per_page' => $number , + 'portfolio-category' => $category_slug, ) ); 33 34 35 36 37 38 39 38 39 40 41 42 43 44 45 $instance['title'] = strip_tags( $new_instance['title'] ); $instance['number'] = strip_tags( $new_instance['number'] ); + $instance['category'] = strip_tags( $new_instance['category'] ); return $instance; } 78 79 80 81 82 83 84 85 86 87 88 89 90 if ( $instance ) { $title = $instance['title']; $number = $instance['number']; + $category = $instance['category']; } else { // Defaults $title = ''; $number = '5'; + $category = ''; } // The widget form 88 89 90 91 92 93 94 95 96 97 95 96 97 98 99 100 101 102 103 104 105 106 104 105 106 107 108 109 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 <label for="<?php echo $this->get_field_id('number'); ?>"><?php echo __( 'Number of items to show:', 'swift-fram <input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" t </p> + <p> + <label for="<?php echo $this->get_field_id('category'); ?>"><?php _e('Category', 'wp_widget_plugin'); ?></label> + <select name="<?php echo $this->get_field_name('category'); ?>" id="<?php echo $this->get_field_id('category'); + <?php + $options = sf_get_category_list('portfolio-category'); + foreach ($options as $option) { + echo '<option value="' . $option . '" id="' . $option . '"', $category == $option ? ' selected="selected"' : + } + ?> + </select> + </p> + </p> <?php } dante dante / / swift-framework swift-framework / / widgets widgets / / widget-portfolio.php widget-portfolio.php Download patch Download patch Blame Blame // Widget Options $title = apply_filters('widget_title', $instance['title'] ); // Title $number = $instance['number']; // Number of posts to show + $category = $instance['category']; // Category to show + + if ($category == "All") {$category = "all";} + if ($category == "all") {$category = '';} + $category_slug = str_replace('_', '-', $category); echo $before_widget; 25 26 27 28 29 30 25 26 27 28 29 30 31 32 33 34 35 $recent_posts = new WP_Query( array( 'post_type' => 'post', - 'posts_per_page' => $number + 'posts_per_page' => $number , + 'category_name' => $category_slug, ) ); 33 34 35 36 37 38 39 38 39 40 41 42 43 44 45 $instance['title'] = strip_tags( $new_instance['title'] ); $instance['number'] = strip_tags( $new_instance['number'] ); + $instance['category'] = strip_tags( $new_instance['category'] ); return $instance; } 91 92 93 94 95 96 97 98 99 100 101 102 103 if ( $instance ) { $title = $instance['title']; $number = $instance['number']; + $category = $instance['category']; } else { // Defaults $title = ''; $number = '5'; + $category = ''; } // The widget form 101 102 103 104 105 106 107 108 109 110 108 109 110 111 112 113 114 115 116 117 118 119 117 118 119 120 121 122 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 <label for="<?php echo $this->get_field_id('number'); ?>"><?php echo __( 'Number of posts to show:', 'swift-fram <input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" t </p> + <p> + <label for="<?php echo $this->get_field_id('category'); ?>"><?php _e('Category', 'wp_widget_plugin'); ?></label> + <select name="<?php echo $this->get_field_name('category'); ?>" id="<?php echo $this->get_field_id('category'); + <?php + $options = sf_get_category_list('category'); + foreach ($options as $option) { + echo '<option value="' . $option . '" id="' . $option . '"', $category == $option ? ' selected="selected"' : + } + ?> + </select> + </p> + </p> <?php } dante dante / / swift-framework swift-framework / / widgets widgets / / widget-posts.php widget-posts.php Download patch Download patch Blame Blame 27 28 29 30 31 32 33 27 28 29 30 31 32 33 </div> - <div class=" span3"> + <div class=" col-sm-3"> <?php woocommerce_cart_totals(); ?> 143 144 145 146 147 148 149 143 144 145 146 147 148 149 198 199 200 201 202 203 204 198 199 200 201 202 203 204 </div> - <div class=" span3"> + <div class=" col-sm-3"> <?php woocommerce_cart_totals(); ?> 367 368 369 370 371 372 373 367 368 369 370 371 372 373 <div class="row"> - <div class=" span9"> + <div class=" col-sm-9"> <h3 class="bag-summary"><?php _e('Your selection', 'swiftframework');?> <span>(<?php echo $cart_count; ?>)</span></h <div class="row"> - <div class=" span9"> + <div class=" col-sm-9"> <h3 class="bag-summary"><?php _e('Your selection', 'swiftframework');?> <span>(<?php echo $cart_count; ?>)</span></h dante dante / / woocommerce woocommerce / / cart cart / / cart.php cart.php Download patch Download patch Blame Blame $args = array( 'post_type' => 'product', 'ignore_sticky_posts' => 1, - 'posts_per_page' => apply_filters( 'woocommerce_cross_sells_total', 2 ), + 'posts_per_page' => apply_filters( 'woocommerce_cross_sells_total', 4 ), 'no_found_rows' => 1, 'orderby' => 'rand', 'post__in' => $crosssells, 20 21 22 23 24 25 26 20 21 22 23 24 25 26 $products = new WP_Query( $args ); -$woocommerce_loop['columns'] = apply_filters( 'woocommerce_cross_sells_columns', 2 ); +$woocommerce_loop['columns'] = apply_filters( 'woocommerce_cross_sells_columns', 4 ); if ( $products->have_posts() ) : ?> 29 30 31 32 33 34 35 29 30 31 32 33 34 35 dante dante / / woocommerce woocommerce / / cart cart / / cross-sells.php cross-sells.php Download patch Download patch Blame Blame 114 115 116 117 118 119 120 121 114 115 116 117 118 119 120 121 ?> <?php if (function_exists('be_previous_post_link') && $has_cat != 0) { ?> <div class="product-navigation"> - <div class="nav-previous"><?php be_previous_post_link( '%link', '<i class="ss-navigateright"></i>', true, '', 'produ - <div class="nav-next"><?php be_next_post_link( '%link', '<i class="ss-navigateleft"></i>', true, '', 'product_cat' ) + <div class="nav-previous"><?php previous_post_link( '%link', '<i class="ss-navigateright"></i>', true, '', 'product_ + <div class="nav-next"><?php next_post_link( '%link', '<i class="ss-navigateleft"></i>', true, '', 'product_cat' ); ? </div> <?php } ?> dante dante / / woocommerce woocommerce / / content-single-product.php content-single-product.php Download patch Download patch Blame Blame <?php do_action('woocommerce_before_add_to_cart_form'); ?> - <form action="<?php echo esc_url( $product->add_to_cart_url() ); ?>" class="cart" method="post" enctype='multipart/form-data'> - - <?php do_action('woocommerce_before_add_to_cart_button'); ?> - + <form class="cart" method="post" enctype='multipart/form-data'> + <?php do_action( 'woocommerce_before_add_to_cart_button' ); ?> + <?php if ( ! $product->is_sold_individually() ) woocommerce_quantity_input( array( 29 30 31 32 33 34 35 36 37 38 29 30 31 32 33 34 35 36 37 40 41 42 43 44 45 46 39 40 41 42 43 44 45 46 47 'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->backorders_allowed() ? '' : $product-> ) ); ?> - + + <input type="hidden" name="add-to-cart" value="<?php echo esc_attr( $product->id ); ?>" /> + <?php $button_text = '<i class="ss-cart"></i>' . apply_filters('single_add_to_cart_text', __("Add to shopping bag", "swiftfram ?> dante dante / / woocommerce woocommerce / / single-product single-product / / add-to-cart add-to-cart / / simple.php simple.php Download patch Download patch Blame Blame 61 62 63 64 65 66 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<li itemprop="image">%s<a href="%s" itemprop="i + } else { + + $image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ), arr + 'title' => $image_title, + 'class' => 'product-slider-image' + ) ); + + + echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<li itemprop="image"><a href="%s" itemprop="ima + + } } dante dante / / woocommerce woocommerce / / single-product single-product / / product-image.php product-image.php Download patch Download patch Blame Blame * Each tab is an array containing title, callback and priority. * @see woocommerce_default_product_tabs() */ +function sf_add_desc_tab($tabs = array()) { + global $post; + $product_description = get_post_meta($post->ID, 'sf_product_description', true); + if ($product_description != "") { + $tabs['description'] = array( + 'title' => __( 'Description', 'woocommerce' ), + 'priority' => 10, + 'callback' => 'woocommerce_product_description_tab' + ); + } + return $tabs; +} +add_filter('woocommerce_product_tabs', 'sf_add_desc_tab', 0); + $tabs = apply_filters( 'woocommerce_product_tabs', array() ); if ( ! empty( $tabs ) ) : ?> 15 16 17 18 19 20 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 dante dante / / woocommerce woocommerce / / single-product single-product / / tabs tabs / / tabs.php tabs.php Download patch Download patch Blame Blame Comments You are not subscribed to this changeset subscribe Need help formatting the text? Don’t notify anyone change Post comment or Preview
Transcript

bede93f0bede93f0 v2.5Signed-off-by: Ed Cousins <[email protected]>

Ed Cousinsat 09:29 PM, March 19th, 2014

buddypress/css/buddypress.css Show diff

buddypress/groups/groups-loop.php Show diff

buddypress/groups/index.php Show diff

css/responsive.css Show diff

header.php Show diff

includes/plugin-includes.php Show diff

includes/sf-blog.php Show diff

includes/sf-colour-scheme.php Show diff

includes/sf-custom-styles.php Show diff

includes/sf-header.php Show diff

includes/sf-options.php Show diff

includes/sf-portfolio.php Show diff

includes/sf-theme-functions.php Show diff

js/functions.js Show diff

js/sf-admin.js Show diff

single-portfolio.php Show diff

style.css Show diff

swift-framework/meta-box/inc/fields/sidebars.php Show diff

swift-framework/page-builder/assets/css/jquery.minicolors.css Show diff

swift-framework/page-builder/assets/css/jquery.nouislider.min.css Show diff

swift-framework/page-builder/assets/css/page-builder.css Show diff

swift-framework/page-builder/assets/img/asset_icons/icon_box.png Show diff

swift-framework/page-builder/assets/img/asset_icons/[email protected] Show diff

swift-framework/page-builder/assets/img/asset_icons/widget_area.png Show diff

swift-framework/page-builder/assets/img/asset_icons/[email protected] Show diff

swift-framework/page-builder/assets/img/asset_icons/widget_sidebar.png Show diff

swift-framework/page-builder/assets/img/asset_icons/[email protected] Show diff

swift-framework/page-builder/assets/img/jquery.minicolors.png Show diff

swift-framework/page-builder/assets/img/menu_icons/menu_icon_box.png Show diff

swift-framework/page-builder/assets/img/menu_icons/[email protected] Show diff

swift-framework/page-builder/assets/img/menu_icons/menu_widget_area.png Show diff

swift-framework/page-builder/assets/img/menu_icons/[email protected] Show diff

swift-framework/page-builder/assets/img/menu_icons/menu_widget_sidebar.png Show diff

swift-framework/page-builder/assets/img/menu_icons/[email protected] Show diff

swift-framework/page-builder/assets/js/jquery.minicolors.min.js Show diff

swift-framework/page-builder/assets/js/jquery.nouislider.min.js Show diff

swift-framework/page-builder/assets/js/page-builder.js Show diff

swift-framework/page-builder/builder/build.php Show diff

swift-framework/page-builder/builder/lib/default-map.php Show diff

swift-framework/page-builder/builder/lib/layouts.php Show diff

swift-framework/page-builder/builder/lib/shortcodes.php Show diff

swift-framework/page-builder/builder/shortcodes/clients.php Show diff

swift-framework/page-builder/builder/shortcodes/icon-boxes.php Show diff

swift-framework/page-builder/builder/shortcodes/row.php Show diff

swift-framework/page-builder/builder/shortcodes/search.php Show diff

swift-framework/page-builder/builder/shortcodes/sidebar-widget.php Show diff

swift-framework/page-builder/builder/shortcodes/tabs.php Show diff

swift-framework/page-builder/builder/spb-includes.php Show diff

swift-framework/sf-megamenu/sf-megamenu.php Show diff

swift-framework/sf-shortcodes/interface.php Show diff

swift-framework/sf-shortcodes/sf.shortcode.embed.js Show diff

swift-framework/shortcodes.php Show diff

swift-framework/widgets/widget-portfolio-grid.php Show diff

swift-framework/widgets/widget-portfolio.php Show diff

swift-framework/widgets/widget-posts.php Show diff

woocommerce/cart/cart.php Show diff

woocommerce/cart/cross-sells.php Show diff

woocommerce/content-single-product.php Show diff

woocommerce/single-product/add-to-cart/simple.php Show diff

woocommerce/single-product/product-image.php Show diff

woocommerce/single-product/tabs/tabs.php Show diff

© 2007-2014, Wildbit LLC. All rights reserved. Blog • Twitter • Shop • System Status • Privacy Policy • Terms of Use

Dante

Dashboard Repositories 2 Users 1 Ed Cousins Account Logout Help

Activity Browse Branches Deployments Settings Search Dante repository

444546474849505152535455565758596061626364656667686970717273

747576777879808182838485868788

89909192939495

96979899

100101

102103104

105106

107108109110

111112

113114115

444546

4748495051525354

5556575859

60616263646566

676869707172

737475767778

79808182

8384858687888990919293949596979899

100101102103104105106107108109110111112113114115116

} /* --------------------------------------------+ GROUPS +-------------------------------------------- */++#group-create-tabs {+ height: auto;+ overflow: hidden;+ margin-bottom: 30px;+}+#group-create-tabs ul li span {+ line-height: 30px;+ padding: 0 5px;+ opacity: 0.8;+}+#group-create-body #previous-next {+ margin-top: 40px;+}+#group-creation-previous {+ display: inline-block;+ font-size: 12px;+ line-height: 18px;+ height: auto;+ padding: 14px 22px;+ margin: 0 10px 20px 0;+ font-weight: bold;+ -webkit-transition: all .3s ease-out;+ -moz-transition: all .3s ease-out;+ transition: all .3s ease-out;+ border: 0;+ -moz-border-radius: 2px;+ -webkit-border-radius: 2px;+ border-radius: 2px;+ float: left;+}+#group-create-body .left-menu {+ float: left;+ width: 100px;+}+#group-create-body .main-column {+ margin-left: 130px;+}+#group-create-body .main-column p {+ margin-bottom: 12px;+}+#group-create-body .main-column input[type="file"] {+ margin-bottom: 10px;+}+#breadcrumbs a.bp-title-button {+ display: none;+}+#buddypress #groups-order-select > label {+ float: left;+ line-height: 40px;+ margin-right: 10px;+}+#buddypress #groups-order-by {+ width: auto;+ height: 30px;+}+.groups-nav-wrap .item-list-tabs {+ float: left;+}+#buddypress #groups-list li {+ border: 1px solid #e3e3e3;+ padding: 20px;+ margin-top: 20px;+}+#buddypress #groups-list li:first-child {+ margin-top: 0;+}+#buddypress #groups-list li .item-avatar {+ float: left;+ margin-right: 20px;+ margin-top: 6px;+}+#buddypress #groups-list li .item {+ float: left;+}+#buddypress #groups-list li.even {+ background: #f7f7f7;+}+#buddypress #groups-list li .item-title {+ margin-bottom: 5px;+ float: left;+ margin-right: 8px;+}+#buddypress #groups-list li .item-meta {+ font-size: 12px;+ float: left;+}+#buddypress #groups-list li .action {+ clear: both;+}+.bp-title-button {+ display: none;+}+.create-group-button {+ float: right;+ font-size: 12px;+ padding: 5px 8px;+ border: 1px solid #999;+ display: inline-block;+ margin-right: 0;+ -moz-border-radius: 2px;+ -webkit-border-radius: 2px;+ border-radius: 2px;+ line-height: 18px;+ height: auto;+ -moz-background-clip: padding;+ -webkit-background-clip: padding-box;+ background-clip: padding-box;+}++/* -------------------------------------------- RESPONSIVE -------------------------------------------- */

370371372

373374375

371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489

#buddypress div.dir-search label { width: 65%; }- #buddypress div.dir-search #members_search {+ #buddypress div.dir-search input[type="text"] { width: 100%; margin: 0; }- #buddypress div.dir-search #members_search_submit {+ #buddypress div.dir-search input[type="submit"] { margin-left: 2%; width: 33%; }

396397398399

400401402403

404405406

510511512

513514515516

517518519520

-webkit-background-clip: padding-box; background-clip: padding-box; }---/* --------------------------------------------- MEMBERS--------------------------------------------- */--#buddypress #member-group-links {- float: left;- max-width: 70%;-}-#buddypress #member-group-links li {- float: left;- margin-right: 10px;-}-#buddypress #member-group-links li a {- font-size: 12px;- padding: 9px 14px;- border: 1px solid #999;- display: inline-block;- -moz-border-radius: 2px;- -webkit-border-radius: 2px;- border-radius: 2px;- line-height: 18px;- -moz-background-clip: padding;- -webkit-background-clip: padding-box;- background-clip: padding-box;- margin-right: 0;+#buddypress .item-list-tabs li a span {+ padding-left: 5px; } #buddypress div.dir-search { margin: 0; float: right; max-width: 50%; }-#buddypress #members-dir-search {- float: right;-} #buddypress div.dir-search label { display: inline-block; float: left; margin-bottom: 0; }-#buddypress div.dir-search #members_search {+#buddypress div.dir-search input[type="text"] { margin: 0 10px 0; padding: 7px; float: left; font-size: 12px!important; width: 170px; }-#buddypress div.dir-search #members_search_submit {+#buddypress div.dir-search input[type="submit"] { padding: 10px 22px; display: inline-block; margin-bottom: 0; margin-right: 0; }-#buddypress #members-directory-form {+#buddypress .dir-form { border-top: 1px solid #e3e3e3; margin-top: 30px; padding-top: 30px;+ clear: both; }-#buddypress #members-directory-form #subnav {+#buddypress .dir-form #subnav { height: auto; overflow: hidden; }-#buddypress #members-directory-form #subnav ul, #buddypress #members-directory-form #subnav ul select, #buddypress #members-directory+#buddypress .dir-form #subnav ul, #buddypress .dir-form #subnav ul select, #buddypress .dir-form #subnav ul label { margin-bottom: 0; }+++/* --------------------------------------------+ MEMBERS+-------------------------------------------- */++#buddypress #member-group-links {+ float: left;+ max-width: 70%;+}+#buddypress #member-group-links li {+ float: left;+ margin-right: 10px;+}+#buddypress #member-group-links li a {+ font-size: 12px;+ padding: 9px 14px;+ border: 1px solid #999;+ display: inline-block;+ -moz-border-radius: 2px;+ -webkit-border-radius: 2px;+ border-radius: 2px;+ line-height: 18px;+ -moz-background-clip: padding;+ -webkit-background-clip: padding-box;+ background-clip: padding-box;+ margin-right: 0;+} #buddypress #members-order-select > label { float: left; line-height: 40px;

dantedante // buddypressbuddypress // csscss // buddypress.cssbuddypress.css Download patchDownload patchBlameBlame

434445464748

495051

434445

4647484950515253

</div> <div class="item">- <div class="item-title"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div>- <div class="item-meta"><span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span></div>-+ <div class="item-title-wrap clearfix">+ <div class="item-title"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div>+ <div class="item-meta"><span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span></div>+ </div>+ <div class="item-desc"><?php bp_group_description_excerpt(); ?></div> <?php do_action( 'bp_directory_groups_item' ); ?>

dantedante // buddypressbuddypress // groupsgroups // groups-loop.phpgroups-loop.php Download patchDownload patchBlameBlame

56789

1011121314151617

181920

567 89

1011121314

262728

2930313233343536373839404142

4344454647

4849

505152

20212223242526272829

3031

32333435363738394041424344454647484950515253545556575859

60616263

<?php do_action( 'bp_before_directory_groups' ); ?> <?php do_action( 'bp_before_directory_groups_content' ); ?>-- <div id="group-dir-search" class="dir-search" role="search">- <?php bp_directory_groups_search_form(); ?>- </div><!-- #group-dir-search -->-- <form action="" method="post" id="groups-directory-form" class="dir-form">-- <?php do_action( 'template_notices' ); ?>-- <div class="item-list-tabs" role="navigation">+ + <div class="group-top clearfix">+ + <div id="group-links" class="item-list-tabs" role="navigation"> <ul> <li class="selected" id="groups-all"><a href="<?php bp_groups_directory_permalink(); ?>"><?php printf( __( 'All Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count() ); ?></a></li>

</ul> </div><!-- .item-list-tabs -->+ + <div id="group-dir-search" class="dir-search" role="search">+ <?php bp_directory_groups_search_form(); ?>+ </div><!-- #group-dir-search -->+ + </div> - <div class="item-list-tabs" id="subnav" role="navigation">- <ul>- <?php do_action( 'bp_groups_directory_group_types' ); ?>-- <li id="groups-order-select" class="last filter">-- <label for="groups-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>-- <select id="groups-order-by">- <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>- <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option>- <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option>- <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>+ <form action="" method="post" id="groups-directory-form" class="dir-form"> - <?php do_action( 'bp_groups_directory_order_options' ); ?>- </select>- </li>- </ul>+ <?php do_action( 'template_notices' ); ?>+ + <div class="groups-nav-wrap clearfix">+ <div class="item-list-tabs" id="subnav" role="navigation">+ <ul>+ <?php do_action( 'bp_groups_directory_group_types' ); ?>+ + <li id="groups-order-select" class="last filter">+ + <label for="groups-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>+ + <select id="groups-order-by">+ <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>+ <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option>+ <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option>+ <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>+ + <?php do_action( 'bp_groups_directory_order_options' ); ?>+ </select>+ </li>+ </ul>+ </div>+ + <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) { ?>+ <a class="create-group-button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create' ); ?>"><?php _e( 'Create a Group ', 'swift-framework' ); ?></a>+ <?php } ?>+ </div>-+ <div id="groups-dir-list" class="groups dir-list"> <?php bp_get_template_part( 'groups/groups-loop' ); ?> </div><!-- #groups-dir-list -->

dantedante // buddypressbuddypress // groupsgroups // index.phpindex.php Download patchDownload patchBlameBlame

} /* WIDGETS */- .caroufredsel_wrapper {+ .caroufredsel_wrapper, .product-carousel .caroufredsel_wrapper { margin-left: -30px!important; } .carousel-wrap .carousel-items > li {

94959697

9899

100

949596

979899

100

padding-right: 410px; } + /* BLOG */+ .blog-masonry-fw .col-sm-3 {+ width: 20%;+ } } @media only screen and (min-width: 1980px) {

125126127

128129130

125126127128129130131132133134

opacity: 1!important; top: 50%!important; }+ .mobile-browser iframe.fw-video {+ height: 90%;+ }+ + /* BLOG */+ .blog-masonry-fw .col-sm-3 {+ width: 33.3%;+ } } /* --------------------------------------------

231232233

234235236

235236237238239240241242243244245246247248

} /* POSTS */+ .blog-masonry-fw .col-sm-3 {+ width: 50%;+ } .mini-items .blog-item figure { float: none; width: 100%;

330331332

333334335

342343344345346347348349350

margin-bottom: 20px; } + /* PRODUCTS */ body .has-no-sidebar ul.products li.product { width: 166px;

337338339

340341342

352353354355356357358

left: 0; } .mobile-browser iframe.fw-video {- height: 95%; position: relative; z-index: 999; }

571572573574575576577

587588589

590591592

#order-details { padding-right: 15px; }+ .product-carousel ul.products li {+ float: left!important;+ } /* WIDGETS */- .caroufredsel_wrapper {+ .caroufredsel_wrapper, .product-carousel .caroufredsel_wrapper { margin-left: 0!important; } .carousel-wrap .carousel-items > li {

933934935

936937938

939940941

948949950951952953954955

956957958959

width: 95.5%; } .labelled-pricing-table.columns-5 .pricing-table-column {- width: 25%;+ width: 50%; } .labelled-pricing-table.columns-4 .pricing-table-column {- width: 33.3%;+ width: 100%; } .labelled-pricing-table.columns-3 .pricing-table-column { width: 50%;

1028102910301031

103210331034

103510361037

104610471048

104910501051

1052105310541055

1402140314041405

140614071408

140914101411

141214131414

1415141614171418

14191420

142114221423

142014211422

142314241425

142614271428

142914301431

1432143314341435

14361437

1438143914401441

border-left-width: 1px; } .columns-2 .pricing-table-column {- width: 50%;+ width: 100%; } .bordered.columns-4 .pricing-table-column, .bordered_alt.columns-4 .pricing-table-column {- width: 94%;+ width: 97%; } .bordered.columns-3 .pricing-table-column, .bordered_alt.columns-3 .pricing-table-column {- width: 94%;+ width: 97%; } .bordered.columns-2 .pricing-table-column, .bordered_alt.columns-2 .pricing-table-column {- width: 94%;+ width: 97%; margin-bottom: 10px; } .bordered.columns-1 .pricing-table-column, .bordered_alt.columns-1 .pricing-table-column {- width: 94%;+ width: 97%; }- .labelled-pricing-table.columns-5 .pricing-table-column {+ .labelled-pricing-table.columns-4 .pricing-table-column, .labelled-pricing-table.columns-5 .pricing-table-column, .columns-4 .pricing-table-column { width: 100%; } .labelled-pricing-table.columns-5 .pricing-table-column {

dantedante // csscss // responsive.cssresponsive.css Download patchDownload patchBlameBlame

$header_wrap_class = " container"; $page_class .= "header-overlay "; }++ if (isset($options['enable_fw_header']) && $options['enable_fw_header'] == true) {+ $header_wrap_class .= " fw-header";+ } global $sf_catalog_mode; if (isset($options['enable_catalog_mode'])) { $enable_catalog_mode = $options['enable_catalog_mode']; if ($enable_catalog_mode) { $sf_catalog_mode = true;- $page_class = "catalog-mode ";+ $page_class .= "catalog-mode "; } }

343536

37383940414243

444546

34353637383940414243444546

47484950

dantedante // header.phpheader.php Download patchDownload patchBlameBlame

), array(- 'name' => 'Previous and Next Post in Same Taxonomy',- 'slug' => 'previous-and-next-post-in-same-taxonomy',- 'required' => false,- ),- - array( 'name' => 'Breadcrumb NavXT', 'slug' => 'breadcrumb-navxt', 'required' => false,

717273747576777879808182

717273

747576

dantedante // includesincludes // plugin-includes.phpplugin-includes.php Download patchDownload patchBlameBlame

if ( get_query_var('paged') ) { $paged = get_query_var('paged');+ $offset = $offset * $paged; } elseif ( get_query_var('page') ) { $paged = get_query_var('page');+ $offset = $offset * $page; } else { $paged = 1; }

383940

4142

434445

38394041424344454647

dantedante // includesincludes // sf-blog.phpsf-blog.php Download patchDownload patchBlameBlame

if (strtolower($schema['Setting Name']) == "color scheme name") { - echo $schema['Setting Value'] .'-sssssss';+ //echo $schema['Setting Value'] .'-sssssss'; if ( isset($schema['Setting Value'])) {

211212213214

215216217

211212213

214215216217

dantedante // includesincludes // sf-colour-scheme.phpsf-colour-scheme.php Download patchDownload patchBlameBlame

649650651

652653654

649650651652653654655656657

#container.boxed-layout, .boxed-layout #header-section .is-sticky #main-nav.sticky-header, .boxed-layout #header-section.header-6 .is-sticky #header.sticky-header { width: 1230px; }+ .header-overlay .header-wrap {+ margin-left: -585px;+ } #swift-slider { min-width: 1170px; }

dantedante // includesincludes // sf-custom-styles.phpsf-custom-styles.php Download patchDownload patchBlameBlame

$search_results_ouput .= '<div class="search-result-pt">'; if(isset($post_type[$key]->labels->name)) { $search_results_ouput .= "<h6>".$post_type[$key]->labels->name."</h6>";+ } else if(isset($key)) {+ $search_results_ouput .= "<h6>".$key."</h6>"; } else {- $search_results_ouput .= "<h6>".__("Products", "swiftframework")."</h6>"; + $search_results_ouput .= "<h6>".__("Other", "swiftframework")."</h6>"; } foreach ($type as $post) {

858859860

861862

863864865

858859860861862863

864865866867

dantedante // includesincludes // sf-header.phpsf-header.php Download patchDownload patchBlameBlame

'class' => 'mini' ), array(+ 'id' => 'enable_fw_header',+ 'type' => 'button_set',+ 'title' => __('Full Width Header', Redux_TEXT_DOMAIN), + 'sub_desc' => __('Enable the header to be full width (edge to edge).', Redux_TEXT_DOMAIN),+ 'desc' => '',+ 'options' => array('1' => 'On','0' => 'Off'),+ 'std' => '0'+ ),+ array( 'id' => 'enable_mini_header', 'type' => 'button_set', 'title' => __('Sticky header', Redux_TEXT_DOMAIN),

788789790

791792793

788789790791792793794795796797798799800801802

916917918919920921922923924925926927928929930931932933934935936937938939

925926927

928929930

256625672568

256925702571

255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601

); $sections[] = array(- 'icon' => 'star',- 'icon_class' => 'fa-lg',- 'title' => __('Page Builder Options', Redux_TEXT_DOMAIN),- 'desc' => __('<p class="description">These are the general options for the Swift Page Builder</p>', Redux_TEXT_DOMAIN),- 'fields' => array( - array(- 'id' => 'advanced_pb',- 'type' => 'button_set',- 'title' => __('Enable Advanced Functionality', Redux_TEXT_DOMAIN), - 'sub_desc' => __('Enable advanced functionality within the page builder, this includes the ability to add columns. This mode is expermiental as of yet, so you may see issues using columns.', Redux_TEXT_DOMAIN),- 'desc' => '',- 'options' => array('1' => 'On','0' => 'Off'),- 'std' => '0'- )- )- );- - $sections[] = array( 'icon' => 'search-plus', 'icon_class' => 'fa-lg', 'title' => __('Super Search Options', Redux_TEXT_DOMAIN),

) ); $sections[] = array(+ 'icon' => 'bolt',+ 'icon_class' => 'fa-lg',+ 'title' => __('Slider Options', Redux_TEXT_DOMAIN),+ 'desc' => __('<p class="description">These are the options for the slider assets.</p>', Redux_TEXT_DOMAIN),+ 'fields' => array(+ array(+ 'id' => 'slider_slideshowSpeed',+ 'type' => 'slider',+ 'title' => __('Slideshow Speed (ms)', Redux_TEXT_DOMAIN),+ 'sub_desc' => "The speed at which the slider rotates. Default value: 7000",+ 'from' => '0',+ 'to' => '12000',+ 'step' => '50',+ 'unit' => '',+ 'std' => '6000'+ ),+ array(+ 'id' => 'slider_animationSpeed',+ 'type' => 'slider',+ 'title' => __('Slider Animation Speed (ms)', 'redux-framework-demo'),+ 'sub_desc' => __('The speed in which the transition animation takes. Default value: 600', 'redux-framework-demo'),+ 'from' => '0',+ 'to' => '2000',+ 'step' => '50',+ 'unit' => '',+ 'std' => '500'+ ),+ array(+ 'id' => 'slider_autoplay',+ 'type' => 'button_set',+ 'title' => __('Auto play', 'swift-framework-admin'), + 'sub_desc' => __("If you enable this option, then the sliders will auto rotate.", 'swift-framework-admin'),+ 'desc' => '',+ 'options' => array('1' => 'On','0' => 'Off'),+ 'default' => '0'+ ),+ )+ ); + $sections[] = array( 'icon' => 'twitter', 'icon_class' => 'fa-lg', 'title' => __('Social Profiles', Redux_TEXT_DOMAIN),

dantedante // includesincludes // sf-options.phpsf-options.php Download patchDownload patchBlameBlame

if(!empty($post_terms)){ foreach($post_terms as $post_term){- $term_slug = $term_slug . strtolower(str_replace(' ', '-', $post_term->name)) . ' ';+ $term_slug = $term_slug . $post_term->slug . ' '; } }

134135136137

138139140

134135136

137138139140

380381382383384

385386387

380381382

383384385386387388389390391

395396397398399

400401402

399400401

402403404405406407408409410

$filter_output .= '<ul class="portfolio-filter filtering row clearfix">'. "\n"; $filter_output .= '<li class="all selected col-sm-2"><a data-filter="*" href="#"><span class="item-name">'. __("All", "swiftframework").'</span><span class="item-count">0</span></a></li>'. "\n"; foreach ($tax_terms as $tax_term) {- $term_slug = strtolower(str_replace(' ', '-', $tax_term));- $filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $tax_term . ' items" class="' . $term_slug . '" data-filter=".' . $term_slug . '"><span class="item-name">' . $tax_term . '</span><span class="item-count">0</span></a></li>'. "\n";+ $term = get_term_by('name', $tax_term, 'portfolio-category');+ if ($term) {+ $filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span><span class="item-count">0</span></a></li>'. "\n";+ } else {+ $filter_output .= '<li class="col-sm-2"><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span><span class="item-count">0</span></a></li>'. "\n";+ } } $filter_output .= '</ul></div></div>'. "\n";

$filter_output .= '<ul class="portfolio-filter-tabs bar-styling filtering col-sm-12 clearfix">'. "\n"; $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">'. __("All", "swiftframework").'</span><span class="item-count">0</span></a></li>'. "\n"; foreach ($tax_terms as $tax_term) {- $term_slug = strtolower(str_replace(' ', '-', $tax_term));- $filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $term_slug . '" data-filter=".' . $term_slug . '"><span class="item-name">' . $tax_term . '</span><span class="item-count">0</span></a></li>'. "\n";+ $term = get_term_by('name', $tax_term, 'portfolio-category');+ if ($term) {+ $filter_output .= '<li><a href="#" title="View all ' . $term->name . ' items" class="' . $term->slug . '" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span><span class="item-count">0</span></a></li>'. "\n";+ } else {+ $filter_output .= '<li><a href="#" title="View all ' . $tax_term . ' items" class="' . $tax_term . '" data-filter=".' . $tax_term . '"><span class="item-name">' . $tax_term . '</span><span class="item-count">0</span></a></li>'. "\n";+ } } $filter_output .= '</ul></div>'. "\n";

dantedante // includesincludes // sf-portfolio.phpsf-portfolio.php Download patchDownload patchBlameBlame

$excluded = array('fontawesome', 'ssgizmo'); + if (is_child_theme()) {+ $excluded = array('sf-main', 'fontawesome', 'ssgizmo');+ }+ if ($is_IE) { $excluded = array('bootstrap', 'sf-main', 'sf-responsive', 'fontawesome', 'ssgizmo', 'woocommerce_frontend_styles'); }

585960

616263

58596061626364656667

return $category_list; - } else if ($category_child != "") {+ } else if ($category_child != "" && $category_child != "All") { - $childcategory = get_term_by('slug', $category_child, $category_name); + $childcategory = get_term_by('slug', $category_child, $category_name); $get_category = get_categories( array( 'taxonomy' => $category_name, 'child_of' => $childcategory->term_id)); $category_list = array( '0' => 'All');

277278279280

281282

283284285

281282283

284285

286287288289

499500501

502503504

503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536

572573574

575576577

604605606607608609610611612613614615

margin-top: 5px; width: 100%; }+ + /* META BOX TABS */+ .rwmb-meta-box {+ padding: 20px 10px;+ }+ #sf-tabbed-meta-boxes {+ position: relative;+ z-index: 1;+ }+ #sf-tabbed-meta-boxes > div > .hndle, #sf-tabbed-meta-boxes > div > .handlediv {+ display: none!important;+ }+ #sf-tabbed-meta-boxes .inside {+ display: block!important;+ }+ #sf-tabbed-meta-boxes > div {+ border-left: 0; + border-right: 0; + border-bottom: 0; + }+ #sf-meta-box-tabs {+ margin: 15px 0 0 15px;+ position: relative;+ z-index: 2;+ }+ #sf-meta-box-tabs li {+ float: left;+ margin-right: 5px;+ margin-bottom: -1px;+ }+ #sf-meta-box-tabs li > a {+ display: inline-block;+ background: #fff;+ padding: 10px;+ border: 1px solid #e5e5e5;+ -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04);+ box-shadow: 0 1px 1px rgba(0,0,0,.04);+ text-decoration: none;+ }+ #sf-meta-box-tabs li > a:hover {+ color: #222;+ }+ #sf-meta-box-tabs li > a.active {+ border-bottom-color: #fff;+ box-shadow: none;+ } <?php echo '#typography-preview p {font-size: '.$body_font_size.'px;line-height: '.$body_font_line_height.'px;}';

613614615

616617618

651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702

} + /* PLUGIN OPTION PARAMS+ ================================================== */+ if (!function_exists('sf_option_parameters')) {+ function sf_option_parameters() {+ $options = get_option('sf_dante_options');+ + $slider_slideshowSpeed = "6000";+ $slider_animationSpeed = "500";+ $slider_autoplay = "0";+ + if (isset($options['slider_slideshowSpeed'])) {+ $slider_slideshowSpeed = $options['slider_slideshowSpeed'];+ }+ if (isset($options['slider_animationSpeed'])) {+ $slider_animationSpeed = $options['slider_animationSpeed'];+ }+ if (isset($options['slider_autoplay'])) {+ $slider_autoplay = $options['slider_autoplay'];+ }+ ?>+ <div id="sf-option-params" data-slider-slidespeed="<?php echo $slider_slideshowSpeed;?>" data-slider-animspeed="<?php echo $slider_animationSpeed;?>" data-slider-autoplay="<?php echo $slider_autoplay;?>"></div>+ + <?php + }+ add_action('wp_footer', 'sf_option_parameters');+ }+ + /* COUNTDOWN SHORTCODE LOCALE ================================================== */ if (!function_exists('sf_countdown_shortcode_locale')) {

?> <style type="text/css" media="screen">+ + /* REVSLIDER HIDE ACTIVATION */+ a[name="activateplugin"] + div, a[name="activateplugin"] + div + div, a[name="activateplugin"] + div + div + div, a[name="activateplugin"] + div + div + div + div {+ display: none;+ }+ #toplevel_page_sf_theme_options .wp-menu-image img { width: 11px; margin-top: -2px;

dantedante // includesincludes // sf-theme-functions.phpsf-theme-functions.php Download patchDownload patchBlameBlame

// REFRESH MODAL IFRAME ON CLOSE (FOR VIDEOS) jQuery(".modal-backdrop, .modal .close, .modal .btn").live("click", function() {- jQuery(".modal iframe").attr("src", jQuery(".modal iframe").attr("src"));+ jQuery(".modal iframe").each(function() {+ var thisModal = jQuery(this);+ thisModal.attr("src", thisModal.attr("src"));+ }); }); // REPLACE COMMENTS REPLY TITLE HTML

107108109110

111112113

107108109

110111112113114115116

controlNav: false, smoothHeight: true, animationLoop: false,- slideshow: false,+ slideshow: sliderAuto, //Boolean: Animate slider automatically+ slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds+ animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds sync: "#product-img-nav", start: function(productSlider) { if (hasProductZoom) {

1194119511961197

119811991200

119711981199

120012011202120312041205

124512461247124812491250

125112521253

125012511252

125312541255125612571258

127312741275127612771278

127912801281

127812791280

128112821283128412851286

13411342134313441345

134613471348

134613471348

13491350135113521353

139513961397139813991400

140114021403

140014011402

140314041405140614071408

gallerySlider.flexslider({ animation: gallerySlider.data('transition'), slideshow: galleryAuto,- slideshowSpeed: 5000,+ slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds+ animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds controlNav: false, animationLoop: galleryAuto, sync: galleryNav

1432143314341435

143614371438

143714381439

14401441144214431444

height: windowheight }, 1000, 'easeInOutExpo'); - jQuery('.fw-video-area').animate({+ jQuery('.fw-video-area').css('display', 'block').animate({ top: 0, height: '100%' }, 1000, 'easeInOutExpo', function() {

2171217221732174

217521762177

217721782179

2180218121822183

}); jQuery('.fw-video-area').animate({ top:'-100%'- }, 1000, 'easeInOutExpo', function(){+ }, 1000, 'easeInOutExpo', function() {+ jQuery('.fw-video-area').css('display', 'none'); jQuery('.fw-video-area .fw-video').remove(); });

2187218821892190

219121922193

219321942195

21962197219821992200

iconBoxes: function() { jQuery('.sf-icon-box').hover( function() {- jQuery(this).addClass('sf-hover');+ if (isMobileAlt) {+ jQuery(this).addClass('sf-mobile-hover');+ } else {+ jQuery(this).addClass('sf-hover');+ } }, function() { jQuery(this).removeClass('sf-hover'); }

2254225522562257

225822592260

226122622263

22642265226622672268226922702271

2306230723082309

23102311231223132314231523162317231823192320232123222323232423252326

232723282329

231723182319

23202321232223232324232523262327

23282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356

var $window = jQuery(window), body = jQuery('body'), sfIncluded = jQuery('#sf-included'),+ sfOptionParams = jQuery('#sf-option-params'), windowheight = page.getViewportHeight(), deviceAgent = navigator.userAgent.toLowerCase(), isMobile = deviceAgent.match(/(iphone|ipod|android|iemobile)/), isMobileAlt = deviceAgent.match(/(iphone|ipod|ipad|android|iemobile)/), isAppleDevice = deviceAgent.match(/(iphone|ipod|ipad)/),- IEVersion = page.checkIE();+ IEVersion = page.checkIE(),+ sliderAuto = sfOptionParams.data('slider-autoplay') ? true : false,+ sliderSlideSpeed = sfOptionParams.data('slider-slidespeed'),+ sliderAnimSpeed = sfOptionParams.data('slider-animspeed'); ///////////////////////////////////////////// // LOAD + READY FUNCTION

268126822683

268426852686268726882689

269026912692

270827092710271127122713271427152716

2717271827192720272127222723

useCSS: flexUseCSS, animation: "slide", //String: Select your animation type, "fade" or "slide" slideDirection: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical"- slideshow: true, //Boolean: Animate slider automatically- slideshowSpeed: 6000, //Integer: Set the speed of the slideshow cycling, in milliseconds- animationDuration: 500, //Integer: Set the speed of animations, in milliseconds+ slideshow: sliderAuto, //Boolean: Animate slider automatically+ slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds+ animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds smoothHeight: true, directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) controlNav: true, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage

jQuery('#swift-slider').flexslider({ animation: "slide", //String: Select your animation type, "fade" or "slide" slideDirection: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical"- slideshow: false, //Boolean: Animate slider automatically- slideshowSpeed: 8000, //Integer: Set the speed of the slideshow cycling, in milliseconds- animationDuration: 600, //Integer: Set the speed of animations, in milliseconds+ slideshow: sliderAuto, //Boolean: Animate slider automatically+ slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds+ animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) controlNav: false, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage keyboardNav: false, //Boolean: Allow slider navigating via keyboard left/right keys

slider.flexslider({ animation: "fade", //String: Select your animation type, "fade" or "slide" slideshow: autoplay, //Boolean: Animate slider automatically- slideshowSpeed: 6000, //Integer: Set the speed of the slideshow cycling, in milliseconds- animationDuration: 1000, //Integer: Set the speed of animations, in milliseconds+ slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds+ animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds smoothHeight: true, directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) controlNav: false, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage

jQuery('.thumb-slider').flexslider({ animation: "fade", //String: Select your animation type, "fade" or "slide" slideDirection: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical"- slideshow: false, //Boolean: Animate slider automatically- slideshowSpeed: 6000, //Integer: Set the speed of the slideshow cycling, in milliseconds- animationDuration: 600, //Integer: Set the speed of animations, in milliseconds+ slideshow: sliderAuto, //Boolean: Animate slider automatically+ slideshowSpeed: sliderSlideSpeed, //Integer: Set the speed of the slideshow cycling, in milliseconds+ animationDuration: sliderAnimSpeed, //Integer: Set the speed of animations, in milliseconds directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) controlNav: false, //Boolean: Create navigation for paging control of each slide? Note: Leave true for manualControls usage keyboardNav: false, //Boolean: Allow slider navigating via keyboard left/right keys

year = parseInt(countdownInstance.data('year'), 10), month = parseInt(countdownInstance.data('month'), 10), day = parseInt(countdownInstance.data('day'), 10),- countdownDate = new Date(year, month - 1, day);+ hour = parseInt(countdownInstance.data('hour'), 10),+ countdownDate = new Date(year, month - 1, day, hour),+ type = countdownInstance.data('type'); var labelStrings = jQuery('#countdown-locale'), pluralLabels = [labelStrings.data('label_years'),labelStrings.data('label_months'),labelStrings.data('label_weeks'),labelStrings.data('label_days'),labelStrings.data('label_hours'),labelStrings.data('label_mins'),labelStrings.data('label_secs')], singularLabels = [labelStrings.data('label_year'),labelStrings.data('label_month'),labelStrings.data('label_week'),labelStrings.data('label_day'),labelStrings.data('label_hour'),labelStrings.data('label_min'),labelStrings.data('label_sec')]; - countdownInstance.countdown({- until: countdownDate,- since: null,- format: 'dHMS',- labels: pluralLabels,- labels1: singularLabels,- onExpiry: function() {- setTimeout(function() {- countdownInstance.fadeOut(500); - }, 1000);- }- });+ if (type == "countup") {+ countdownInstance.countdown({+ since: countdownDate,+ format: 'dHMS',+ labels: pluralLabels,+ labels1: singularLabels,+ onExpiry: function() {+ setTimeout(function() {+ countdownInstance.fadeOut(500); + }, 1000);+ }+ });+ } else {+ countdownInstance.countdown({+ until: countdownDate,+ since: null,+ format: 'dHMS',+ labels: pluralLabels,+ labels1: singularLabels,+ onExpiry: function() {+ setTimeout(function() {+ countdownInstance.fadeOut(500); + }, 1000);+ }+ });+ } }); }, imageBanners: function() {

dantedante // jsjs // functions.jsfunctions.js Download patchDownload patchBlameBlame

500501502

503504

500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567

}); + + // TABBED META BOXES+ var tabBoxes = jQuery('#page_heading_meta_box,#page_background_meta_box,#portfolio_page_heading_meta_box,#page_header_meta_box,#page_meta_box,#thumbnail_meta_box,#portfolio_meta_box,#detail_media_meta_box,#masonry_thumbnail_meta_box,#post_meta_box,#product_meta_box,#team_meta_box,#client_meta_box,#testimonials_meta_box,#gallery_meta_box,#slider_meta_box');+ + //create the menu with javascript+ function sf_setup_metatabs() {+ + if(jQuery('#swift_page_builder').length > 0) {+ jQuery('#swift_page_builder').after('<div class="sf-meta-tabs-wrap postbox"><div class="handlediv" title="Click to toggle"><br></div><h3 class="hndle"><span>Meta Options</span></h3><div id="sf-tabbed-meta-boxes"></div></div>');+ } else {+ jQuery('#normal-sortables').after('<div class="sf-meta-tabs-wrap postbox"><div class="handlediv" title="Click to toggle"><br></div><h3 class="hndle"><span>Meta Options</span></h3><div id="sf-tabbed-meta-boxes"></div></div>');+ }+ jQuery(tabBoxes).appendTo('#sf-tabbed-meta-boxes');+ jQuery(tabBoxes).hide().removeClass('hide-if-no-js'); + + for (var a = 0, b = tabBoxes.length; a < b; a++ ) {+ newClass = 'editor-tab' + a;+ jQuery(tabBoxes[a]).addClass(newClass);+ }+ + var menu_html = '<ul id="sf-meta-box-tabs" class="clearfix">\n'; + for (var i = 0, n = tabBoxes.length; i < n; i++ ) {+ var target_id = jQuery(tabBoxes[i]).attr('id');+ var tab_name = jQuery(tabBoxes[i]).find('.hndle > span').text();+ menu_html = menu_html + '\n<li id="li-'+ target_id +'"><a href="#" rel="editor-tab' + i + '">' + tab_name + '</a></li>';+ }+ menu_html = menu_html + '\n</ul>';+ + jQuery('#sf-tabbed-meta-boxes').before(menu_html);+ jQuery('#sf-meta-box-tabs a:first').addClass('active'); + }+ if (tabBoxes.length > 0) {+ sf_setup_metatabs();+ jQuery('.editor-tab0').addClass('active').show(); + }+ + jQuery('#sf-meta-box-tabs li').on('click', 'a', function() {+ jQuery(tabBoxes).removeClass('active').hide();+ jQuery('#sf-meta-box-tabs a').removeClass('active');+ + target = jQuery(this).attr('rel');+ + jQuery(this).addClass('active');+ jQuery('.' + target).addClass('active').show();+ + return false;+ });+ + jQuery('.hide-postbox-tog').on('click', function() { + if (jQuery(this).is(':checked')) { + + target = $(this).attr('value');+ $('#li-' + target).show(); + + } else {+ + target = $(this).attr('value');+ + $('#li-' + target).hide();+ + }+ return true;+ }); });

dantedante // jsjs // sf-admin.jssf-admin.js Download patchDownload patchBlameBlame

<?php } else { ?> - <?php if ($pb_active == "true") { ?>+ <?php if ($pb_active != "true" || ($pb_active == "true" && $fw_media_display == "standard")) { ?> <div class="container"> <?php } ?>

298299300301

302303304

298299300

301302303304

</div> </section> - <?php if ($pb_active == "true") { ?>+ <?php if ($pb_active != "true" || ($pb_active == "true" && $fw_media_display == "standard")) { ?> </div> <?php } ?>

308309310311

312313314

308309310

311312313314

dantedante // single-portfolio.phpsingle-portfolio.php Download patchDownload patchBlameBlame

6789

101112

678 9

101112

652653654

655656657

652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683

1656165716581659

166016611662

168216831684

1685168616871688

240724082409

241024112412

243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459

#mobile-menu ul.sub-menu li ul a { padding-left: 50px; }-#mobile-menu .menu-item a[href="#"] {- display: none;-} /* -------------------------------------------- SUPER SEARCH

253525362537253825392540254125422543

258225832584

258525862587

margin-right: 0; padding-right: 25px; }+.boxed-layout .header-right nav.mega-menu li:last-child .sub-container.non-mega {+ left: auto!important;+ right: 0;+} #nav-section { min-height: 50px; position: relative;

339433953396

339733983399

3438343934403441344234433444344534463447

cursor: -webkit-grabbing!important; } .product-carousel .caroufredsel_wrapper {- margin-left: -20px;+ margin-left: -20px!important; } .carousel-wrap .carousel-items > li { margin-bottom: 0;

4634463546364637

463846394640

468246834684

4685468646874688

.full-width-display-wrap figure.fw-media-wrap { display: none; }+.boxed-layout .full-width-display-wrap figure.fw-media-wrap {+ margin-left: 0!important;+} .fw-media-wrap .item-slider, .fw-media-wrap .item-slider ul.slides, .fw-media-wrap .item-slider ul.slides > li { max-height: 800px; }

592059215922

592359245925

596859695970597159725973597459755976

.spb_portfolio_showcase_widget .portfolio-showcase-wrap { opacity: 0; }+.boxed-layout .spb_portfolio_showcase_widget .portfolio-showcase-wrap {+ margin-left: 0!important;+} .portfolio-showcase-wrap ul { background: #222; margin: 0;

606360646065

606660676068

611461156116611761186119612061216122

-ms-backface-visibility: hidden; -webkit-transform: translate3d(0,0,0); }+.mobile-browser .fw-video-area {+ display: none;+} .fw-video-close { display: none; position: absolute;

770177027703

770477057706

775577567757775877597760776177627763

.full-width-text p:last-child { margin-bottom: 0; }+.full-width-text .spb_wrapper {+ padding: 0 15px;+} /* -------------------------------------------- SHOWCASE SHORTCODE

799079917992

799379947995

804780488049805080518052805380548055

} .client-item { float: left;- margin-bottom: 25px;+ margin-bottom: 30px; } .client-item figure { position: relative;

8010801180128013

801480158016

807080718072

8073807480758076

9735973697379738

9739974097419742974397449745

974697479748

979597969797

9798979998009801980298039804

9805980698079808

-webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0;- padding: 6px 25px 6px 15px;+ padding: 14px 25px 12px 15px;+ line-height: 10px; margin: 0 0 5px; background-image: url('images/[email protected]'); background-repeat: no-repeat;

11352113531135411355

113561135711358

114121141311414

1141511416114171141811419

margin-left: 0; } .carousel-wrap ul.products li.product {- margin-left: 30px!important;+ margin-left: 20px!important; margin-right: 0!important; } body .has-no-sidebar ul.products li.product {

11654116551165611657

116581165911660

117151171611717

11718117191172011721

12267122681226912270

122711227212273

123281232912330

12331123321233312334

Author: Swift Ideas Author URI: www.swiftideas.net Description: <strong>A Retina Responsive Multi-Purpose WordPress Theme, Designed & Developed by Swift Ideas</strong> - <a href="http://www.swiftideas.net">www.swiftideas.net</a>. Follow us for update notifications:<br/> <a href='http://twitter.com/swiftideas'>Twitter</a><br/> | <a href='http://www.facebook.com/SwiftIdeas'>Facebook</a>- Version: 2.16+ Version: 2.5 License: GNU General Public License version 3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html Tags: translation-ready, threaded-comments, theme-options, sticky-post, post-formats, full-width-template, flexible-header, featured-images, custom-menu, custom-header, custom-colors, custom-background, flexible-width

padding-left: 0; padding-right: 0; }+.spb-row-container.spb-row-full-width .remove-element-spacing .container, .spb-row-container.spb-row-full-width .remove-element-spacing div[class*="col-sm"] {+ padding-left: 0;+ padding-right: 0;+}+.spb-row-container.spb-row-full-width .spb_content_element {+ margin: 0;+}+.spb-row-container.spb-row-full-width .spb_wrapper > .container {+ width: 100%;+}+.spb-row-container .blog-items, .spb-row-container .spb_wrapper .row {+ padding-bottom: 0!important;+ margin-bottom: 0!important;+}+.spb-row-container > div {+ position: relative;+ z-index: 2;+}+.spb-row-container > div.row-overlay {+ position: absolute;+ z-index: 1;+ width: 100%;+ height: 100%;+ top: 0;+ left: 0;+} .single .container .body-text > .container { margin-left: -15px; }

PRETTYPHOTO -------------------------------------------- */ -.clear{clear:both}.nobr{white-space:nowrap}div.pp_woocommerce .pp_content_container{background:#fff;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;box-shadow:0 1px 3px 0 rgba(0,0,0,0.25);-webkit-box-shadow:0 1px 3px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 1px 3px 0 rgba(0,0,0,0.25);padding:60px 0 40px 0}div.pp_woocommerce .pp_content_container:after{content:"";display:block;clear:both}div.pp_woocommerce .pp_loaderIcon{background:url(images/loader.gif) center no-repeat}div.pp_woocommerce div.ppt{color:black}div.pp_woocommerce .pp_gallery ul li a{border:1px solid rgba(0,0,0,0.5);background:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);-moz-box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;display:block}div.pp_woocommerce .pp_gallery ul li a:hover{border-color:#000}div.pp_woocommerce .pp_gallery ul li.selected a{border-color:#000}div.pp_woocommerce .pp_arrow_previous:before,div.pp_woocommerce .pp_arrow_next:before,div.pp_woocommerce .pp_previous:before,div.pp_woocommerce .pp_next:before{line-height:1.15!important}div.pp_woocommerce .pp_previous:before,div.pp_woocommerce .pp_next:before{-webkit-border-radius:100%;-moz-border-radius:100%;border-radius:100%;height:20px;width:20px;color:#666!important;background:#f6f6f6;background:-webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#e8e8e8));background:-webkit-linear-gradient(#f6f6f6,#e8e8e8);background:-moz-linear-gradient(center top,#f6f6f6 0,#e8e8e8 100%);background:-moz-gradient(center top,#f6f6f6 0,#e8e8e8 100%);border:1px solid #ccc;font-size:14px!important;font-family:verdana!important;text-shadow:0 1px 0 #fff;font-weight:bold!important;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);content:"\2039";text-indent:0;display:none;position:absolute;top:50%;margin-top:-10px;text-align:center}div.pp_woocommerce .pp_previous:before:hover,div.pp_woocommerce .pp_next:before:hover{background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e8e8e8));background:-webkit-linear-gradient(#fff,#e8e8e8);background:-moz-linear-gradient(center top,#fff 0,#e8e8e8 100%);background:-moz-gradient(center top,#fff 0,#e8e8e8 100%);color:#444!important}div.pp_woocommerce .pp_previous:hover:before,div.pp_woocommerce .pp_next:hover:before{display:block}div.pp_woocommerce .pp_previous:before{left:1em}div.pp_woocommerce .pp_next:before{right:1em;content:"\203a"}div.pp_woocommerce .pp_details{margin:0;padding-top:1em}div.pp_woocommerce .pp_nav,div.pp_woocommerce .pp_description{font-size:14px}div.pp_woocommerce .pp_nav,div.pp_woocommerce .pp_nav p,div.pp_woocommerce .pp_play,div.pp_woocommerce .pp_nav .pp_pause,div.pp_woocommerce .pp_arrow_previous,div.pp_woocommerce .pp_arrow_next{margin:0}div.pp_woocommerce .pp_nav{margin-right:1em;position:relative}div.pp_woocommerce .pp_close{-webkit-border-radius:100%;-moz-border-radius:100%;border-radius:100%;height:24px;width:24px;color:#666!important;background:#f6f6f6;background:-webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#e8e8e8));background:-webkit-linear-gradient(#f6f6f6,#e8e8e8);background:-moz-linear-gradient(center top,#f6f6f6 0,#e8e8e8 100%);background:-moz-gradient(center top,#f6f6f6 0,#e8e8e8 100%);border:1px solid #ccc;font-size:14px!important;font-family:verdana!important;text-shadow:0 1px 0 #fff;font-weight:bold!important;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);width:23px;height:23px;top:-10px;right:-10px}div.pp_woocommerce .pp_close:hover{background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e8e8e8));background:-webkit-linear-gradient(#fff,#e8e8e8);background:-moz-linear-gradient(center top,#fff 0,#e8e8e8 100%);background:-moz-gradient(center top,#fff 0,#e8e8e8 100%);color:#444!important}div.pp_woocommerce .pp_close:before{content:"\00d7";display:block;position:absolute;top:0;left:0;right:0;bottom:0;text-align:center;text-indent:0;line-height:1.45}div.pp_woocommerce .pp_arrow_previous,div.pp_woocommerce .pp_arrow_next{-webkit-border-radius:100%;-moz-border-radius:100%;border-radius:100%;height:16px;width:16px;color:#666!important;background:#f6f6f6;background:-webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#e8e8e8));background:-webkit-linear-gradient(#f6f6f6,#e8e8e8);background:-moz-linear-gradient(center top,#f6f6f6 0,#e8e8e8 100%);background:-moz-gradient(center top,#f6f6f6 0,#e8e8e8 100%);border:1px solid #ccc;font-size:14px!important;font-family:verdana!important;text-shadow:0 1px 0 #fff;font-weight:bold!important;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);position:relative;margin-top:-1px}div.pp_woocommerce .pp_arrow_previous:hover,div.pp_woocommerce .pp_arrow_next:hover{background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e8e8e8));background:-webkit-linear-gradient(#fff,#e8e8e8);background:-moz-linear-gradient(center top,#fff 0,#e8e8e8 100%);background:-moz-gradient(center top,#fff 0,#e8e8e8 100%);color:#444!important}div.pp_woocommerce .pp_arrow_previous:before,div.pp_woocommerce .pp_arrow_next:before{content:"\2039";display:block;position:absolute;top:0;left:0;right:0;bottom:0;text-align:center;text-indent:0}div.pp_woocommerce .pp_arrow_previous{margin-right:.5em}div.pp_woocommerce .pp_arrow_next{margin-left:.5em}div.pp_woocommerce .pp_arrow_next:before{content:"\203a"}div.pp_woocommerce a.pp_expand,div.pp_woocommerce a.pp_contract{-webkit-border-radius:100%;-moz-border-radius:100%;border-radius:100%;height:24px;width:24px;color:#666!important;background:#f6f6f6;background:-webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#e8e8e8));background:-webkit-linear-gradient(#f6f6f6,#e8e8e8);background:-moz-linear-gradient(center top,#f6f6f6 0,#e8e8e8 100%);background:-moz-gradient(center top,#f6f6f6 0,#e8e8e8 100%);border:1px solid #ccc;font-size:14px!important;font-family:verdana!important;text-shadow:0 1px 0 #fff;font-weight:bold!important;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);right:auto;left:-10px;top:-10px;height:23px;width:23px}div.pp_woocommerce a.pp_expand:hover,div.pp_woocommerce a.pp_contract:hover{background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e8e8e8));background:-webkit-linear-gradient(#fff,#e8e8e8);background:-moz-linear-gradient(center top,#fff 0,#e8e8e8 100%);background:-moz-gradient(center top,#fff 0,#e8e8e8 100%);color:#444!important}div.pp_woocommerce a.pp_expand:before,div.pp_woocommerce a.pp_contract:before{content:"\2295";display:block;position:absolute;top:0;left:1px;right:0;bottom:0;text-align:center;text-indent:0;line-height:.9!important;font-size:19px!important}div.pp_woocommerce a.pp_contract:before{content:"\2297"}div.pp_woocommerce #respond{margin:0;width:100%;background:0;border:0;padding:0}div.pp_woocommerce #respond .form-submit{margin-top:0;float:none}div.pp_woocommerce .pp_inline{padding:0!important}div.pp_pic_holder a:focus{outline:0}div.pp_overlay{background:#fff;display:none;left:0;position:absolute;top:0;width:100%;z-index:9999}div.pp_pic_holder{display:none;position:absolute;width:100px;z-index:10000}.pp_top{height:20px;position:relative}* html .pp_top{padding:0 20px}.pp_top .pp_left{height:20px;left:0;position:absolute;width:20px}.pp_top .pp_middle{height:20px;left:20px;position:absolute;right:20px}* html .pp_top .pp_middle{left:0;position:static}.pp_top .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px}.pp_content{height:40px;min-width:40px;max-width: 100%;}.pp_content iframe{max-width: 100%;}* html .pp_content{width:40px}.pp_fade{display:none}.pp_content_container{position:relative;text-align:left;width:100%}.pp_content_container .pp_left{padding-left:40px}.pp_content_container .pp_right{padding-right:40px}.pp_content_container .pp_details{float:left;margin:10px 0 2px 0}.pp_description{display:none;margin:0}.pp_social{float:left;margin:0}.pp_social .facebook{float:left;margin-left:5px;width:55px;overflow:hidden}.pp_social .twitter{float:left}.pp_nav{clear:right;float:left;margin:3px 10px 0 0}.pp_nav p{float:left;margin:2px 4px;white-space:nowrap}.pp_nav .pp_play,.pp_nav .pp_pause{float:left;margin-right:4px;text-indent:-10000px}a.pp_arrow_previous,a.pp_arrow_next{display:block;float:left;height:15px;margin-top:3px;overflow:hidden;text-indent:-10000px;width:14px}.pp_hoverContainer{position:absolute;top:0;width:100%;z-index:2000}.pp_gallery{display:none;left:50%;margin-top:-50px;position:absolute;z-index:10000}.pp_gallery div{float:left;overflow:hidden;position:relative}.pp_gallery ul{float:left;height:35px;margin:0 0 0 5px;padding:0;position:relative;white-space:nowrap}.pp_gallery ul a{border:1px #000 solid;border:1px rgba(0,0,0,0.5) solid;display:block;float:left;height:33px;overflow:hidden}.pp_gallery ul a:hover,.pp_gallery li.selected a{border-color:#fff}.pp_gallery ul a img{border:0}.pp_gallery li{display:block;float:left;margin:0 5px 0 0;padding:0}.pp_gallery li.default a{display:block;height:33px;width:50px}.pp_gallery li.default a img{display:none}.pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px!important}a.pp_next{display:block;float:right;height:100%;text-indent:-10000px;width:49%}a.pp_previous{display:block;float:left;height:100%;text-indent:-10000px;width:49%}a.pp_expand,a.pp_contract{cursor:pointer;display:none;height:20px;position:absolute;right:30px;text-indent:-10000px;top:10px;width:20px;z-index:20000}a.pp_close{position:absolute;right:0;top:0;display:block;line-height:22px;text-indent:-10000px}.pp_bottom{height:20px;position:relative}* html .pp_bottom{padding:0 20px}.pp_bottom .pp_left{height:20px;left:0;position:absolute;width:20px}.pp_bottom .pp_middle{height:20px;left:20px;position:absolute;right:20px}* html .pp_bottom .pp_middle{left:0;position:static}.pp_bottom .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px}.pp_loaderIcon{display:block;height:24px;left:50%;margin:-12px 0 0 -12px;position:absolute;top:50%;width:24px}#pp_full_res .pp_inline{text-align:left}div.ppt{color:#fff;display:none;font-size:17px;margin:0 0 5px 15px;z-index:9999}+.clear{clear:both}.nobr{white-space:nowrap}div.pp_woocommerce .pp_content_container{background:#fff;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;box-shadow:0 1px 3px 0 rgba(0,0,0,0.25);-webkit-box-shadow:0 1px 3px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 1px 3px 0 rgba(0,0,0,0.25);padding:60px 0 40px 0}div.pp_woocommerce .pp_content_container:after{content:"";display:block;clear:both}div.pp_woocommerce .pp_loaderIcon{background:url(images/loader.gif) center no-repeat}div.pp_woocommerce div.ppt{color:black}div.pp_woocommerce .pp_gallery ul li a{border:1px solid rgba(0,0,0,0.5);background:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);-moz-box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;display:block}div.pp_woocommerce .pp_gallery ul li a:hover{border-color:#000}div.pp_woocommerce .pp_gallery ul li.selected a{border-color:#000}div.pp_woocommerce .pp_arrow_previous:before,div.pp_woocommerce .pp_arrow_next:before,div.pp_woocommerce .pp_previous:before,div.pp_woocommerce .pp_next:before{line-height:1.15!important}div.pp_woocommerce .pp_previous:before,div.pp_woocommerce .pp_next:before{-webkit-border-radius:100%;-moz-border-radius:100%;border-radius:100%;height:20px;width:20px;color:#666!important;background:#f6f6f6;background:-webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#e8e8e8));background:-webkit-linear-gradient(#f6f6f6,#e8e8e8);background:-moz-linear-gradient(center top,#f6f6f6 0,#e8e8e8 100%);background:-moz-gradient(center top,#f6f6f6 0,#e8e8e8 100%);border:1px solid #ccc;font-size:14px!important;font-family:verdana!important;text-shadow:0 1px 0 #fff;font-weight:bold!important;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);content:"\2039";text-indent:0;display:none;position:absolute;top:50%;margin-top:-10px;text-align:center}div.pp_woocommerce .pp_previous:before:hover,div.pp_woocommerce .pp_next:before:hover{background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e8e8e8));background:-webkit-linear-gradient(#fff,#e8e8e8);background:-moz-linear-gradient(center top,#fff 0,#e8e8e8 100%);background:-moz-gradient(center top,#fff 0,#e8e8e8 100%);color:#444!important}div.pp_woocommerce .pp_previous:hover:before,div.pp_woocommerce .pp_next:hover:before{display:block}div.pp_woocommerce .pp_previous:before{left:1em}div.pp_woocommerce .pp_next:before{right:1em;content:"\203a"}div.pp_woocommerce .pp_details{margin:0;padding-top:1em}div.pp_woocommerce .pp_nav,div.pp_woocommerce .pp_description{font-size:14px}div.pp_woocommerce .pp_nav,div.pp_woocommerce .pp_nav p,div.pp_woocommerce .pp_play,div.pp_woocommerce .pp_nav .pp_pause,div.pp_woocommerce .pp_arrow_previous,div.pp_woocommerce .pp_arrow_next{margin:0}div.pp_woocommerce .pp_nav{margin-right:1em;position:relative}div.pp_woocommerce .pp_close{-webkit-border-radius:100%;-moz-border-radius:100%;border-radius:100%;height:24px;width:24px;color:#666!important;background:#f6f6f6;background:-webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#e8e8e8));background:-webkit-linear-gradient(#f6f6f6,#e8e8e8);background:-moz-linear-gradient(center top,#f6f6f6 0,#e8e8e8 100%);background:-moz-gradient(center top,#f6f6f6 0,#e8e8e8 100%);border:1px solid #ccc;font-size:14px!important;font-family:verdana!important;text-shadow:0 1px 0 #fff;font-weight:bold!important;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);width:23px;height:23px;top:-10px;right:-10px}div.pp_woocommerce .pp_close:hover{background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e8e8e8));background:-webkit-linear-gradient(#fff,#e8e8e8);background:-moz-linear-gradient(center top,#fff 0,#e8e8e8 100%);background:-moz-gradient(center top,#fff 0,#e8e8e8 100%);color:#444!important}div.pp_woocommerce .pp_close:before{content:"\00d7";display:block;position:absolute;top:0;left:0;right:0;bottom:0;text-align:center;text-indent:0;line-height:1.45}div.pp_woocommerce .pp_arrow_previous,div.pp_woocommerce .pp_arrow_next{-webkit-border-radius:100%;-moz-border-radius:100%;border-radius:100%;height:16px;width:16px;color:#666!important;background:#f6f6f6;background:-webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#e8e8e8));background:-webkit-linear-gradient(#f6f6f6,#e8e8e8);background:-moz-linear-gradient(center top,#f6f6f6 0,#e8e8e8 100%);background:-moz-gradient(center top,#f6f6f6 0,#e8e8e8 100%);border:1px solid #ccc;font-size:14px!important;font-family:verdana!important;text-shadow:0 1px 0 #fff;font-weight:bold!important;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);position:relative;margin-top:-1px}div.pp_woocommerce .pp_arrow_previous:hover,div.pp_woocommerce .pp_arrow_next:hover{background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e8e8e8));background:-webkit-linear-gradient(#fff,#e8e8e8);background:-moz-linear-gradient(center top,#fff 0,#e8e8e8 100%);background:-moz-gradient(center top,#fff 0,#e8e8e8 100%);color:#444!important}div.pp_woocommerce .pp_arrow_previous:before,div.pp_woocommerce .pp_arrow_next:before{content:"\2039";display:block;position:absolute;top:0;left:0;right:0;bottom:0;text-align:center;text-indent:0}div.pp_woocommerce .pp_arrow_previous{margin-right:.5em}div.pp_woocommerce .pp_arrow_next{margin-left:.5em}div.pp_woocommerce .pp_arrow_next:before{content:"\203a"}div.pp_woocommerce a.pp_expand,div.pp_woocommerce a.pp_contract{-webkit-border-radius:100%;-moz-border-radius:100%;border-radius:100%;height:24px;width:24px;color:#666!important;background:#f6f6f6;background:-webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#e8e8e8));background:-webkit-linear-gradient(#f6f6f6,#e8e8e8);background:-moz-linear-gradient(center top,#f6f6f6 0,#e8e8e8 100%);background:-moz-gradient(center top,#f6f6f6 0,#e8e8e8 100%);border:1px solid #ccc;font-size:14px!important;font-family:verdana!important;text-shadow:0 1px 0 #fff;font-weight:bold!important;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.05),inset 0 1px 0 rgba(255,255,255,0.5),0 1px 2px rgba(0,0,0,0.075);right:auto;left:-10px;top:-10px;height:23px;width:23px}div.pp_woocommerce a.pp_expand:hover,div.pp_woocommerce a.pp_contract:hover{background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e8e8e8));background:-webkit-linear-gradient(#fff,#e8e8e8);background:-moz-linear-gradient(center top,#fff 0,#e8e8e8 100%);background:-moz-gradient(center top,#fff 0,#e8e8e8 100%);color:#444!important}div.pp_woocommerce a.pp_expand:before,div.pp_woocommerce a.pp_contract:before{content:"\2295";display:block;position:absolute;top:0;left:1px;right:0;bottom:0;text-align:center;text-indent:0;line-height:.9!important;font-size:19px!important}div.pp_woocommerce a.pp_contract:before{content:"\2297"}div.pp_woocommerce #respond{margin:0;width:100%;background:0;border:0;padding:0}div.pp_woocommerce #respond .form-submit{margin-top:0;float:none}div.pp_woocommerce .pp_inline{padding:0!important}div.pp_pic_holder a:focus{outline:0}div.pp_overlay{background:#fff;display:none;left:0;position:absolute;top:0;width:100%;z-index:9999}div.pp_pic_holder{display:none;position:absolute;width:100px;z-index:10000}.pp_top{height:20px;position:relative}* html .pp_top{padding:0 20px}.pp_top .pp_left{height:20px;left:0;position:absolute;width:20px}.pp_top .pp_middle{height:20px;left:20px;position:absolute;right:20px}* html .pp_top .pp_middle{left:0;position:static}.pp_top .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px}.pp_content{height:40px;min-width:40px;max-width: 100%;}.pp_content iframe{max-width: 100%;}* html .pp_content{width:40px}.pp_fade{display:none}.pp_content_container{position:relative;text-align:left;width:100%}.pp_content_container .pp_left{padding-left:40px}.pp_content_container .pp_right{padding-right:40px}.pp_content_container .pp_details{float:left;margin:10px 0 2px 0}.pp_description{display:none;margin:0}.pp_social{float:left;margin:0}.pp_social .facebook{float:left;margin-left:5px;width:55px;overflow:hidden}.pp_social .twitter{float:left}.pp_nav{clear:right;float:left;margin:3px 10px 0 0}.pp_nav p{float:left;margin:2px 4px;white-space:nowrap}.pp_nav .pp_play,.pp_nav .pp_pause{float:left;margin-right:4px;text-indent:-10000px}a.pp_arrow_previous,a.pp_arrow_next{display:block;float:left;height:15px;margin-top:3px;overflow:hidden;text-indent:-10000px;width:14px}.pp_hoverContainer{position:absolute;top:0;width:100%;z-index:2000}.pp_gallery{display:none;left:50%;margin-top:-50px;position:absolute;z-index:10000}.pp_gallery div{float:left;overflow:hidden;position:relative}.pp_gallery ul{float:left;height:35px;margin:0 0 0 5px;padding:0;position:relative;white-space:nowrap}.pp_gallery ul a{border:1px #000 solid;border:1px rgba(0,0,0,0.5) solid;display:block;float:left;height:33px;overflow:hidden}.pp_gallery ul a:hover,.pp_gallery li.selected a{border-color:#fff}.pp_gallery ul a img{border:0}.pp_gallery li{display:block;float:left;margin:0 5px 0 0;padding:0}.pp_gallery li.default a{display:block;height:33px;width:50px}.pp_gallery li.default a img{display:none}.pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px!important}a.pp_next{display:block;float:right;height:100%;text-indent:-10000px;width:49%}a.pp_previous{display:block;float:left;height:100%;text-indent:-10000px;width:49%}a.pp_expand,a.pp_contract{cursor:pointer;display:none;height:20px;position:absolute;right:30px;text-indent:-10000px;top:10px;width:20px;z-index:20000}a.pp_close{position:absolute; /* -------------------------------------------- WORDPRESS ASSET STYLING

/* #Header ================================================== */ +.fw-header.container, .fw-header .container {+ width: 100%;+}+.fw-header #header .header-container, .fw-header #header .header-container > .row, .fw-header #header-section nav.mega-menu li .sub-container, .fw-header nav.mega-menu li .mega .sub, .fw-header nav.mega-menu li .mega .sub>.row {+ width: 100%!important;+}+.fw-header #header-section nav.mega-menu li .sub-container {+ left: 15px!important;+}+.fw-header #header-section.header-6 nav.mega-menu li .sub-container {+ left: 0px!important;+ padding: 0 15px;+}+.fw-header #header-section.header-5 nav.mega-menu li .sub-container {+ left: 0px!important;+}+.fw-header #header-section.header-1 nav.mega-menu li .sub-container, .fw-header #header-section.header-2 nav.mega-menu li .sub-container {+ left: 5px!important;+ padding: 0 5px;+}+ /* -------------------------------------------- MOBILE MENU -------------------------------------------- */

-ms-box-sizing: border-box; box-sizing: border-box; }-.sf-icon-box-animated:hover .inner, .no-csstransitions .sf-icon-box-animated .inner {+.sf-icon-box-animated:hover .inner, .no-csstransitions .sf-icon-box-animated .inner, .sf-icon-box-animated.sf-mobile-hover .inner { -webkit-transform: rotateY(-180deg); -moz-transform: rotateY(-180deg); -ms-transform: rotateY(-180deg); -o-transform: rotateY(-180deg); transform: rotateY(-180deg); }-.sf-icon-box-animated:hover .front {+.sf-icon-box-animated:hover .front, .sf-icon-box-animated.sf-mobile-hover .front { z-index: -1; } .sf-icon-box-animated .sf-icon {

width: 73%!important; float: right; }-.woocommerce select#billing_country, .woocommerce-checkout #billing_country_field .chosen-container, .woocommerce-checkout #shipping_country_field .chosen-container {+.woocommerce select#billing_country, .woocommerce-checkout #billing_country_field .chosen-container, .woocommerce-checkout #shipping_country_field width: 75%!important; } .chosen-container .chosen-results {

dantedante // style.cssstyle.css Download patchDownload patchBlameBlame

* @return string */ static function html( $meta, $field )- { + { + $html = ""; $html .= '<select name="'.$field['id'].'" id="'.$field['id'].'">'; foreach ( $GLOBALS['wp_registered_sidebars'] as $sidebar ) { if (!empty($meta) && !strcmp($meta[0], ucwords( $sidebar['id'] ))) {

25262728

293031

252627

2829303132

dantedante // swift-frameworkswift-framework // meta-boxmeta-box // incinc // fieldsfields // sidebars.phpsidebars.php Download patchDownload patchBlameBlame

+.minicolors {+ position: relative;+}++.minicolors-swatch {+ position: absolute;+ vertical-align: middle;+ background: url(../img/jquery.minicolors.png) -80px 0;+ border: solid 1px #ccc;+ cursor: text;+ padding: 0;+ margin: 0;+ display: inline-block;+}++.minicolors-swatch-color {+ position: absolute;+ top: 0;+ left: 0;+ right: 0;+ bottom: 0;+}++.minicolors input[type=hidden] + .minicolors-swatch {+ width: 28px;+ position: static;+ cursor: pointer;+}++/* Panel */+.minicolors-panel {+ position: absolute;+ width: 173px;+ height: 152px;+ background: white;+ border: solid 1px #CCC;+ box-shadow: 0 0 20px rgba(0, 0, 0, .2);+ z-index: 99999;+ -moz-box-sizing: content-box;+ -webkit-box-sizing: content-box;+ box-sizing: content-box;+ display: none;+}++.minicolors-panel.minicolors-visible {+ display: block;+}++/* Panel positioning */+.minicolors-position-top .minicolors-panel {+ top: -154px;+}++.minicolors-position-right .minicolors-panel {+ right: 0;+}++.minicolors-position-bottom .minicolors-panel {+ top: auto;+}++.minicolors-position-left .minicolors-panel {+ left: 0;+}++.minicolors-with-opacity .minicolors-panel {+ width: 194px;+}++.minicolors .minicolors-grid {+ position: absolute;+ top: 1px;+ left: 1px;+ width: 150px;+ height: 150px;+ background: url(../img/jquery.minicolors.png) -120px 0;+ cursor: crosshair;+}++.minicolors .minicolors-grid-inner {+ position: absolute;+ top: 0;+ left: 0;+ width: 150px;+ height: 150px;+ background: none;+}++.minicolors-slider-saturation .minicolors-grid {+ background-position: -420px 0;+}++.minicolors-slider-saturation .minicolors-grid-inner {+ background: url(../img/jquery.minicolors.png) -270px 0;+}++.minicolors-slider-brightness .minicolors-grid {+ background-position: -570px 0;+}++.minicolors-slider-brightness .minicolors-grid-inner {+ background: black;+}++.minicolors-slider-wheel .minicolors-grid {+ background-position: -720px 0;+}++.minicolors-slider,+.minicolors-opacity-slider {+ position: absolute;+ top: 1px;+ left: 152px;+ width: 20px;+ height: 150px;+ background: white url(../img/jquery.minicolors.png) 0 0;+ cursor: row-resize;+}++.minicolors-slider-saturation .minicolors-slider {+ background-position: -60px 0;+}++.minicolors-slider-brightness .minicolors-slider {+ background-position: -20px 0;+}++.minicolors-slider-wheel .minicolors-slider {+ background-position: -20px 0;+}++.minicolors-opacity-slider {+ left: 173px;+ background-position: -40px 0;+ display: none;+}++.minicolors-with-opacity .minicolors-opacity-slider {+ display: block;+}++/* Pickers */+.minicolors-grid .minicolors-picker {+ position: absolute;+ top: 70px;+ left: 70px;+ width: 12px;+ height: 12px;+ border: solid 1px black;+ border-radius: 10px;+ margin-top: -6px;+ margin-left: -6px;+ background: none;+}++.minicolors-grid .minicolors-picker > div {+ position: absolute;+ top: 0;+ left: 0;+ width: 8px;+ height: 8px;+ border-radius: 8px;+ border: solid 2px white;+ -moz-box-sizing: content-box;+ -webkit-box-sizing: content-box;+ box-sizing: content-box;+}++.minicolors-picker {+ position: absolute;+ top: 0;+ left: 0;+ width: 18px;+ height: 2px;+ background: white;+ border: solid 1px black;+ margin-top: -2px;+ -moz-box-sizing: content-box;+ -webkit-box-sizing: content-box;+ box-sizing: content-box;+}++/* Inline controls */+.minicolors-inline {+ display: inline-block;+}++.minicolors-inline .minicolors-input {+ display: none !important;+}++.minicolors-inline .minicolors-panel {+ position: relative;+ top: auto;+ left: auto;+ box-shadow: none;+ z-index: auto;+ display: inline-block;+}++/* Default theme */+.minicolors-theme-default .minicolors-swatch {+ top: 5px;+ left: 5px;+ width: 18px;+ height: 18px; +}+.minicolors-theme-default.minicolors-position-right .minicolors-swatch {+ left: auto;+ right: 5px;+}+.minicolors-theme-default.minicolors {+ width: auto;+ display: inline-block;+}+.minicolors-theme-default .minicolors-input {+ height: 20px;+ width: auto;+ display: inline-block;+ padding-left: 26px;+}+.minicolors-theme-default.minicolors-position-right .minicolors-input {+ padding-right: 26px;+ padding-left: inherit;+}++/* Bootstrap theme */+.minicolors-theme-bootstrap .minicolors-swatch {+ top: 3px;+ left: 3px;+ width: 28px;+ height: 28px;+ border-radius: 3px;+}+.minicolors-theme-bootstrap.minicolors-position-right .minicolors-swatch {+ left: auto;+ right: 3px;+}+.minicolors-theme-bootstrap .minicolors-input {+ padding-left: 44px;+}+.minicolors-theme-bootstrap.minicolors-position-right .minicolors-input {+ padding-right: 44px;+ padding-left: 12px;+}+++/* CUSTOM */+.minicolors-theme-default .minicolors-input {+ height: 32px;+ width: 110px;+ display: inline-block;+ padding-left: 45px;+}+.minicolors-theme-default .minicolors-swatch {+ top: 0;+ left: 0;+ width: 30px;+ height: 30px;+}

123456789

101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899

100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // csscss // jquery.minicolors.cssjquery.minicolors.css BlameBlame

1 +.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-user-select:none;-ms-touch-action:none;-ms-user-select:none;-moz-user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-base{width:100%;height:100%;position:relative}.noUi-origin{position:absolute;right:0;top:0;left:0;bottom:0}.noUi-handle{position:relative;z-index:1}.noUi-stacking .noUi-handle{z-index:10}.noUi-stacking+.noUi-origin{*z-index:-1}.noUi-state-tap .noUi-origin{-webkit-transition:left .3s,top .3s;transition:left .3s,top .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{width:34px;height:28px;left:-17px;top:-6px}.noUi-horizontal.noUi-extended{padding:0 15px}.noUi-horizontal.noUi-extended .noUi-origin{right:-15px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;left:-6px;top:-17px}.noUi-vertical.noUi-extended{padding:15px 0}.noUi-vertical.noUi-extended .noUi-origin{bottom:-15px}.noUi-background{background:#FAFAFA;box-shadow:inset 0 1px 1px #f0f0f0}.noUi-connect{background:#3FB8AF;box-shadow:inset 0 0 3px rgba(51,51,51,.45);-webkit-transition:background 450ms;transition:background 450ms}.noUi-origin{border-radius:2px}.noUi-target{border-radius:4px;border:1px solid #D3D3D3;box-shadow:inset 0 1px 1px #F0F0F0,0 3px 6px -5px #BBB}.noUi-target.noUi-connect{box-shadow:inset 0 0 3px rgba(51,51,51,.45),0 3px 6px -5px #BBB}.noUi-dragable{cursor:w-resize}.noUi-vertical .noUi-dragable{cursor:n-resize}.noUi-handle{border:1px solid #D9D9D9;border-radius:3px;background:#FFF;cursor:default;box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #EBEBEB,0 3px 6px -3px #BBB}.noUi-active{box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #DDD,0 3px 6px -3px #BBB}.noUi-handle:after,.noUi-handle:before{content:"";display:block;position:absolute;height:14px;width:1px;background:#E8E7E6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect,[disabled].noUi-connect{background:#B8B8B8}[disabled] .noUi-handle{cursor:not-allowed}.noUi-state-blocked .noUi-connect,.noUi-state-blocked.noUi-connect{background:#4FDACF}

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // csscss // jquery.nouislider.min.cssjquery.nouislider.min.css BlameBlame

display: block; margin-top: 0.5em; }+ #spb_edit_form .noUiSlider {+ width: 200px;+ margin-bottom: 20px;+ float: left;+ margin-right: 20px;+ margin-top: 2px;+ }+ #spb_edit_form .noUiSlider .noUi-origin {+ background: #f7f7f7;+ }+ #spb_edit_form .noUiSlider .noUi-base {+ background: #fe504f;+ }+ #spb_edit_form .spb-uislider {+ width: 35px;+ clear: right;+ margin-bottom: 15px;+ }+ #edit-modal-header { background: #f7f7f7; border-bottom: 1px solid #e4e4e4;

969798

99100101

96979899

100101102103104105106107108109110111112113114115116117118119120

.row-fluid .spb_content_element:last-child { margin-bottom: 0; }-.spb_content_element, .spb_column {+.spb_content_element, .spb_column, .spb_row { margin-bottom: 20px; } .spb_column_container {

189190191192

193194195

208209210

211212213214

font-weight: bold; color: #333; }+ul.dropdown-menu .row-option {+ width: 100%;+ margin-bottom: 20px!important;+}+ul.dropdown-menu .row-option a {+ margin-left: 0;+} .navbar .nav > li > a { color: #CCCCCC; padding-bottom: 9px;

460461462

463464465

479480481482483484485486487488489490491

.spb-item-slideout li { width: 24.7%; }+.spb-item-slideout li.menu-item-spb_row {+ display: none;+}+.spb_elements_ul .divider {+ height: auto;+ border-bottom: 0;+ background: transparent;+ margin: 0;+} .spb-item-slideout li a, ul.dropdown-menu li a { display: block; text-decoration: none;

514515516

517518519

540541542543544545546547548549550551552553554

background-repeat: no-repeat; height: 80px; }+.spb_icon_box .spb_element_wrapper {+ background-image: url(../img/asset_icons/icon_box.png);+ background-position: center 20px;+ background-repeat: no-repeat; + height: 80px;+ text-align: center;+ font-weight: bold;+}+.spb_icon_box .spb_element_wrapper .content {+ display: none;+} .spb_jobs_overview .spb_element_wrapper .job_text, .spb_codesnippet .spb_element_wrapper .content { display: none; }

113611371138

113911401141

11711172117311741175117611771178117911801181118211831184118511861187

text-align: center; } .spb_single_image .spb-icon-single-image {- background-image: url(../img/asset_icons/no_image.png);+ background-image: url(../img/asset_icons/menu_single_image.png); } .spb_single_image_widget .attachment-thumbnail {

1559156015611562

156315641565

160516061607

1608160916101611

background-image: url(../img/menu_icons/menu_boxed_content.png); } .spb-icon-sidebar {- background-image: url(../img/menu_icons/menu_widget_sidebar.png);+ background-image: url(../img/menu_icons/menu_widget_area.png);+}+.spb-icon-icon-box {+ background-image: url(../img/menu_icons/menu_icon_box.png); } .spb-icon-divider { background-image: url(../img/menu_icons/menu_divider.png);

1639164016411642

164316441645

168516861687

1688168916901691169216931694

background-image: url(../img/menu_icons/[email protected]); } .spb-icon-sidebar {- background-image: url(../img/menu_icons/[email protected]);+ background-image: url(../img/menu_icons/[email protected]); } .spb-icon-divider { background-image: url(../img/menu_icons/[email protected]);

1975197619771978

197919801981

202420252026

2027202820292030

background-image: url(../img/menu_icons/[email protected]); } .spb-icon-sidebar {- background-image: url(../img/menu_icons/[email protected]);+ background-image: url(../img/menu_icons/[email protected]); } .spb-icon-testimonial_carousel { background-image: url(../img/menu_icons/[email protected]);

2031203220332034

203520362037

208020812082

2083208420852086

.spb-icon-supersearch { background-image: url(../img/menu_icons/[email protected]); }+ .spb-icon-icon-box {+ background-image: url(../img/menu_icons/[email protected]);+ } .column_decrease { background-image: url(../img/editor_icons/[email protected]);

207220732074

207520762077

212121222123212421252126212721282129

background-size: 120px 54px; } .spb_sidebar_widget .spb_element_wrapper {- background-image: url(../img/asset_icons/[email protected]);+ background-image: url(../img/asset_icons/[email protected]); background-size: 120px 54px; } .spb_posts_carousel .spb_element_wrapper {

2178217921802181

218221832184

223022312232

2233223422352236

background-image: url(../img/asset_icons/[email protected]); background-size: 120px 54px; }+ .spb_icon_box .spb_element_wrapper {+ background-image: url(../img/asset_icons/[email protected]);+ background-size: 120px 54px;+ } .alert .messagebox_text { background-image: url(../img/asset_icons/[email protected]); background-size: 16px 16px;

223322342235

223622372238

2285228622872288228922902291229222932294

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // csscss // page-builder.csspage-builder.css Download patchDownload patchBlameBlame

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // asset_iconsasset_icons // icon_box.pngicon_box.png BlameBlamePreviewPreview

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // asset_iconsasset_icons // [email protected][email protected] BlameBlamePreviewPreview

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // asset_iconsasset_icons // widget_area.pngwidget_area.png BlameBlamePreviewPreview

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // asset_iconsasset_icons // [email protected][email protected] BlameBlamePreviewPreview

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // asset_iconsasset_icons // widget_sidebar.pngwidget_sidebar.png

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // asset_iconsasset_icons // [email protected][email protected]

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // jquery.minicolors.pngjquery.minicolors.png BlameBlamePreviewPreview

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // menu_iconsmenu_icons // menu_icon_box.pngmenu_icon_box.png BlameBlamePreviewPreview

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // menu_iconsmenu_icons // [email protected][email protected] BlameBlamePreviewPreview

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // menu_iconsmenu_icons // menu_widget_area.pngmenu_widget_area.png BlameBlamePreviewPreview

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // menu_iconsmenu_icons // [email protected][email protected] BlameBlamePreviewPreview

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // menu_iconsmenu_icons // menu_widget_sidebar.pngmenu_widget_sidebar.png

Diff can't be displayed for binary file.

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // imgimg // menu_iconsmenu_icons // [email protected][email protected]

12345678

+/*+ * jQuery MiniColors: A tiny color picker built on jQuery+ *+ * Copyright Cory LaViska for A Beautiful Site, LLC. (http://www.abeautifulsite.net/)+ *+ * Licensed under the MIT license: http://opensource.org/licenses/MIT+ *+ */jQuery&&function(e){function t(t,n){var r=e('<div class="minicolors" />'),i=e.minicolors.defaults;if(t.data("minicolors-initialized"))return;n=e.extend(!0,{},i,n);r.addClass("minicolors-theme-"+n.theme).toggleClass("minicolors-with-opacity",n.opacity);n.position!==undefined&&e.each(n.position.split(" "),function(){r.addClass("minicolors-position-"+this)});t.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",n).prop("size",7).wrap(r).after('<div class="minicolors-panel minicolors-slider-'+n.control+'">'+'<div class="minicolors-slider">'+'<div class="minicolors-picker"></div>'+"</div>"+'<div class="minicolors-opacity-slider">'+'<div class="minicolors-picker"></div>'+"</div>"+'<div class="minicolors-grid">'+'<div class="minicolors-grid-inner"></div>'+'<div class="minicolors-picker"><div></div></div>'+"</div>"+"</div>");if(!n.inline){t.after('<span class="minicolors-swatch"><span class="minicolors-swatch-color"></span></span>');t.next(".minicolors-swatch").on("click",function(e){e.preventDefault();t.focus()})}t.parent().find(".minicolors-panel").on("selectstart",function(){return!1}).end();n.inline&&t.parent().addClass("minicolors-inline");u(t,!1);t.data("minicolors-initialized",!0)}function n(e){var t=e.parent();e.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input");t.before(e).remove()}function r(e){var t=e.parent(),n=t.find(".minicolors-panel"),r=e.data("minicolors-settings");if(!e.data("minicolors-initialized")||e.prop("disabled")||t.hasClass("minicolors-inline")||t.hasClass("minicolors-focus"))return;i();t.addClass("minicolors-focus");n.stop(!0,!0).fadeIn(r.showSpeed,function(){r.show&&r.show.call(e.get(0))})}function i(){e(".minicolors-focus").each(function(){var t=e(this),n=t.find(".minicolors-input"),r=t.find(".minicolors-panel"),i=n.data("minicolors-settings");r.fadeOut(i.hideSpeed,function(){i.hide&&i.hide.call(n.get(0));t.removeClass("minicolors-focus")})})}function s(e,t,n){var r=e.parents(".minicolors").find(".minicolors-input"),i=r.data("minicolors-settings"),s=e.find("[class$=-picker]"),u=e.offset().left,a=e.offset().top,f=Math.round(t.pageX-u),l=Math.round(t.pageY-a),c=n?i.animationSpeed:0,h,p,d,v;if(t.originalEvent.changedTouches){f=t.originalEvent.changedTouches[0].pageX-u;l=t.originalEvent.changedTouches[0].pageY-a}f<0&&(f=0);l<0&&(l=0);f>e.width()&&(f=e.width());l>e.height()&&(l=e.height());if(e.parent().is(".minicolors-slider-wheel")&&s.parent().is(".minicolors-grid")){h=75-f;p=75-l;d=Math.sqrt(h*h+p*p);v=Math.atan2(p,h);v<0&&(v+=Math.PI*2);if(d>75){d=75;f=75-75*Math.cos(v);l=75-75*Math.sin(v)}f=Math.round(f);l=Math.round(l)}e.is(".minicolors-grid")?s.stop(!0).animate({top:l+"px",left:f+"px"},c,i.animationEasing,function(){o(r,e)}):s.stop(!0).animate({top:l+"px"},c,i.animationEasing,function(){o(r,e)})}function o(e,t){function n(e,t){var n,r;if(!e.length||!t)return null;n=e.offset().left;r=e.offset().top;return{x:n-t.offset().left+e.outerWidth()/2,y:r-t.offset().top+e.outerHeight()/2}}var r,i,s,o,u,f,l,h=e.val(),d=e.attr("data-opacity"),v=e.parent(),g=e.data("minicolors-settings"),y=v.find(".minicolors-swatch"),b=v.find(".minicolors-grid"),w=v.find(".minicolors-slider"),E=v.find(".minicolors-opacity-slider"),S=b.find("[class$=-picker]"),x=w.find("[class$=-picker]"),T=E.find("[class$=-picker]"),N=n(S,b),C=n(x,w),k=n(T,E);if(t.is(".minicolors-grid, .minicolors-slider")){switch(g.control){case"wheel":o=b.width()/2-N.x;u=b.height()/2-N.y;f=Math.sqrt(o*o+u*u);l=Math.atan2(u,o);l<0&&(l+=Math.PI*2);if(f>75){f=75;N.x=69-75*Math.cos(l);N.y=69-75*Math.sin(l)}i=p(f/.75,0,100);r=p(l*180/Math.PI,0,360);s=p(100-Math.floor(C.y*(100/w.height())),0,100);h=m({h:r,s:i,b:s});w.css("backgroundColor",m({h:r,s:i,b:100}));break;case"saturation":r=p(parseInt(N.x*(360/b.width()),10),0,360);i=p(100-Math.floor(C.y*(100/w.height())),0,100);s=p(100-Math.floor(N.y*(100/b.height())),0,100);h=m({h:r,s:i,b:s});w.css("backgroundColor",m({h:r,s:100,b:s}));v.find(".minicolors-grid-inner").css("opacity",i/100);break;case"brightness":r=p(parseInt(N.x*(360/b.width()),10),0,360);i=p(100-Math.floor(N.y*(100/b.height())),0,100);s=p(100-Math.floor(C.y*(100/w.height())),0,100);h=m({h:r,s:i,b:s});w.css("backgroundColor",m({h:r,s:i,b:100}));v.find(".minicolors-grid-inner").css("opacity",1-s/100);break;default:r=p(360-parseInt(C.y*(360/w.height()),10),0,360);i=p(Math.floor(N.x*(100/b.width())),0,100);s=p(100-Math.floor(N.y*(100/b.height())),0,100);h=m({h:r,s:i,b:s});b.css("backgroundColor",m({h:r,s:100,b:100}))}e.val(c(h,g.letterCase))}if(t.is(".minicolors-opacity-slider")){g.opacity?d=parseFloat(1-k.y/E.height()).toFixed(2):d=1;g.opacity&&e.attr("data-opacity",d)}y.find("SPAN").css({backgroundColor:h,opacity:d});a(e,h,d)}function u(e,t){var n,r,i,s,o,u,f,l=e.parent(),d=e.data("minicolors-settings"),v=l.find(".minicolors-swatch"),y=l.find(".minicolors-grid"),b=l.find(".minicolors-slider"),w=l.find(".minicolors-opacity-slider"),E=y.find("[class$=-picker]"),S=b.find("[class$=-picker]"),x=w.find("[class$=-picker]");n=c(h(e.val(),!0),d.letterCase);n||(n=c(h(d.defaultValue,!0),d.letterCase));r=g(n);t||e.val(n);if(d.opacity){i=e.attr("data-opacity")===""?1:p(parseFloat(e.attr("data-opacity")).toFixed(2),0,1);isNaN(i)&&(i=1);e.attr("data-opacity",i);v.find("SPAN").css("opacity",i);o=p(w.height()-w.height()*i,0,w.height());x.css("top",o+"px")}v.find("SPAN").css("backgroundColor",n);switch(d.control){case"wheel":u=p(Math.ceil(r.s*.75),0,y.height()/2);f=r.h*Math.PI/180;s=p(75-Math.cos(f)*u,0,y.width());o=p(75-Math.sin(f)*u,0,y.height());E.css({top:o+"px",left:s+"px"});o=150-r.b/(100/y.height());n===""&&(o=0);S.css("top",o+"px");b.css("backgroundColor",m({h:r.h,s:r.s,b:100}));break;case"saturation":s=p(5*r.h/12,0,150);o=p(y.height()-Math.ceil(r.b/(100/y.height())),0,y.height());E.css({top:o+"px",left:s+"px"});o=p(b.height()-r.s*(b.height()/100),0,b.height());S.css("top",o+"px");b.css("backgroundColor",m({h:r.h,s:100,b:r.b}));l.find(".minicolors-grid-inner").css("opacity",r.s/100);break;case"brightness":s=p(5*r.h/12,0,150);o=p(y.height()-Math.ceil(r.s/(100/y.height())),0,y.height());E.css({top:o+"px",left:s+"px"});o=p(b.height()-r.b*(b.height()/100),0,b.height());S.css("top",o+"px");b.css("backgroundColor",m({h:r.h,s:r.s,b:100}));l.find(".minicolors-grid-inner").css("opacity",1-r.b/100);break;default:s=p(Math.ceil(r.s/(100/y.width())),0,y.width());o=p(y.height()-Math.ceil(r.b/(100/y.height())),0,y.height());E.css({top:o+"px",left:s+"px"});o=p(b.height()-r.h/(360/b.height()),0,b.height());S.css("top",o+"px");y.css("backgroundColor",m({h:r.h,s:100,b:100}))}e.data("minicolors-initialized")&&a(e,n,i)}function a(e,t,n){var r=e.data("minicolors-settings"),i=e.data("minicolors-lastChange");if(!i||i.hex!==t||i.opacity!==n){e.data("minicolors-lastChange",{hex:t,opacity:n});if(r.change)if(r.changeDelay){clearTimeout(e.data("minicolors-changeTimeout"));e.data("minicolors-changeTimeout",setTimeout(function(){r.change.call(e.get(0),t,n)},r.changeDelay))}else r.change.call(e.get(0),t,n);e.trigger("change").trigger("input")}}function f(t){var n=h(e(t).val(),!0),r=b(n),i=e(t).attr("data-opacity");if(!r)return null;i!==undefined&&e.extend(r,{a:parseFloat(i)});return r}function l(t,n){var r=h(e(t).val(),!0),i=b(r),s=e(t).attr("data-opacity");if(!i)return null;s===undefined&&(s=1);return n?"rgba("+i.r+", "+i.g+", "+i.b+", "+parseFloat(s)+")":"rgb("+i.r+", "+i.g+", "+i.b+")"}function c(e,t){return t==="uppercase"?e.toUpperCase():e.toLowerCase()}function h(e,t){e=e.replace(/[^A-F0-9]/ig,"");if(e.length!==3&&e.length!==6)return"";e.length===3&&t&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);return"#"+e}function p(e,t,n){e<t&&(e=t);e>n&&(e=n);return e}function d(e){var t={},n=Math.round(e.h),r=Math.round(e.s*255/100),i=Math.round(e.b*255/100);if(r===0)t.r=t.g=t.b=i;else{var s=i,o=(255-r)*i/255,u=(s-o)*(n%60)/60;n===360&&(n=0);if(n<60){t.r=s;t.b=o;t.g=o+u}else if(n<120){t.g=s;t.b=o;t.r=s-u}else if(n<180){t.g=s;t.r=o;t.b=o+u}else if(n<240){t.b=s;t.r=o;t.g=s-u}else if(n<300){t.b=s;t.g=o;t.r=o+u}else if(n<360){t.r=s;t.g=o;t.b=s-u}else{t.r=0;t.g=0;t.b=0}}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}}function v(t){var n=[t.r.toString(16),t.g.toString(16),t.b.toString(16)];e.each(n,function(e,t){t.length===1&&(n[e]="0"+t)});return"#"+n.join("")}function m(e){return v(d(e))}function g(e){var t=y(b(e));t.s===0&&(t.h=360);return t}function y(e){var t={h:0,s:0,b:0},n=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),i=r-n;t.b=r;t.s=r!==0?255*i/r:0;t.s!==0?e.r===r?t.h=(e.g-e.b)/i:e.g===r?t.h=2+(e.b-e.r)/i:t.h=4+(e.r-e.g)/i:t.h=-1;t.h*=60;t.h<0&&(t.h+=360);t.s*=100/255;t.b*=100/255;return t}function b(e){e=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:e>>16,g:(e&65280)>>8,b:e&255}}e.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",defaultValue:"",hide:null,hideSpeed:100,inline:!1,letterCase:"lowercase",opacity:!1,position:"bottom left",show:null,showSpeed:100,theme:"default"}};e.extend(e.fn,{minicolors:function(s,o){switch(s){case"destroy":e(this).each(function(){n(e(this))});return e(this);case"hide":i();return e(this);case"opacity":if(o===undefined)return e(this).attr("data-opacity");e(this).each(function(){u(e(this).attr("data-opacity",o))});return e(this);case"rgbObject":return f(e(this),s==="rgbaObject");case"rgbString":case"rgbaString":return l(e(this),s==="rgbaString");case"settings":if(o===undefined)return e(this).data("minicolors-settings");e(this).each(function(){var t=e(this).data("minicolors-settings")||{};n(e(this));e(this).minicolors(e.extend(!0,t,o))});return e(this);case"show":r(e(this).eq(0));return e(this);case"value":if(o===undefined)return e(this).val();e(this).each(function(){u(e(this).val(o))});return e(this);default:s!=="create"&&(o=s);e(this).each(function(){t(e(this),o)});return e(this)}}});e(document).on("mousedown.minicolors touchstart.minicolors",function(t){e(t.target).parents().add(t.target).hasClass("minicolors")||i()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(t){var n=e(this);t.preventDefault();e(document).data("minicolors-target",n);s(n,t,!0)}).on("mousemove.minicolors touchmove.minicolors",function(t){var n=e(document).data("minicolors-target");n&&s(n,t)}).on("mouseup.minicolors touchend.minicolors",function(){e(this).removeData("minicolors-target")}).on("mousedown.minicolors touchstart.minicolors",".minicolors-swatch",function(t){var n=e(this).parent().find(".minicolors-input");t.preventDefault();r(n)}).on("focus.minicolors",".minicolors-input",function(){var t=e(this);if(!t.data("minicolors-initialized"))return;r(t)}).on("blur.minicolors",".minicolors-input",function(){var t=e(this),n=t.data("minicolors-settings");if(!t.data("minicolors-initialized"))return;t.val(h(t.val(),!0));t.val()===""&&t.val(h(n.defaultValue,!0));t.val(c(t.val(),n.letterCase))}).on("keydown.minicolors",".minicolors-input",function(t){var n=e(this);if(!n.data("minicolors-initialized"))return;switch(t.keyCode){case 9:i();break;case 13:case 27:i();n.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var t=e(this);if(!t.data("minicolors-initialized"))return;u(t,!0)}).on("paste.minicolors",".minicolors-input",function(){var t=e(this);if(!t.data("minicolors-initialized"))return;setTimeout(function(){u(t,!0)},1)})}(jQuery);

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // jsjs // jquery.minicolors.min.jsjquery.minicolors.min.js BlameBlame

123456789

1011121314151617181920

+(function(f){if(f.zepto&&!f.fn.removeData)throw new ReferenceError("Zepto is loaded without the data module.");f.fn.noUiSlider=function(C,D){function s(a,b){return 100*b/(a[1]-a[0])}function E(a,b){return b*(a[1]-a[0])/100+a[0]}function t(a){return a instanceof f||f.zepto&&f.zepto.isZ(a)}function n(a){return!isNaN(parseFloat(a))&&isFinite(a)}function r(a,b){f.isArray(a)||(a=[a]);f.each(a,function(){"function"===typeof this&&this.call(b)})}function F(a,b){return function(){var c=[null,null];c[b]=f(this).val();+a.val(c,!0)}}function G(a,b){a=a.toFixed(b.decimals);0===parseFloat(a)&&(a=a.replace("-0","0"));return a.replace(".",b.serialization.mark)}function u(a){return parseFloat(a.toFixed(7))}function p(a,b,c,d){var e=d.target;a=a.replace(/\s/g,h+" ")+h;b.on(a,function(a){var b=e.attr("disabled");if(e.hasClass("noUi-state-tap")||void 0!==b&&null!==b)return!1;var g;a.preventDefault();var b=0===a.type.indexOf("touch"),h=0===a.type.indexOf("mouse"),l=0===a.type.indexOf("pointer"),v,H=a;0===a.type.indexOf("MSPointer")&&+(l=!0);a.originalEvent&&(a=a.originalEvent);b&&(g=a.changedTouches[0].pageX,v=a.changedTouches[0].pageY);if(h||l)l||void 0!==window.pageXOffset||(window.pageXOffset=document.documentElement.scrollLeft,window.pageYOffset=document.documentElement.scrollTop),g=a.clientX+window.pageXOffset,v=a.clientY+window.pageYOffset;g=f.extend(H,{pointX:g,pointY:v,cursor:h});c(g,d,e.data("base").data("options"))})}function I(a){var b=this.target;if(void 0===a)return this.element.data("value");!0===a?a=this.element.data("value"):+this.element.data("value",a);void 0!==a&&f.each(this.elements,function(){if("function"===typeof this)this.call(b,a);else this[0][this[1]](a)})}function J(a,b,c){if(t(b)){var d=[],e=a.data("target");a.data("options").direction&&(c=c?0:1);b.each(function(){f(this).on("change"+h,F(e,c));d.push([f(this),"val"])});return d}"string"===typeof b&&(b=[f('<input type="hidden" name="'+b+'">').appendTo(a).addClass(g[3]).change(function(a){a.stopPropagation()}),"val"]);return[b]}function K(a,b,c){var d=[];f.each(c.to[b],+function(e){d=d.concat(J(a,c.to[b][e],b))});return{element:a,elements:d,target:a.data("target"),val:I}}function L(a,b){var c=a.data("target");c.hasClass(g[14])||(b||(c.addClass(g[15]),setTimeout(function(){c.removeClass(g[15])},450)),c.addClass(g[14]),r(a.data("options").h,c))}function w(a,b){var c=a.data("options");b=u(b);a.data("target").removeClass(g[14]);a.css(c.style,b+"%").data("pct",b);a.is(":first-child")&&a.toggleClass(g[13],50<b);c.direction&&(b=100-b);a.data("store").val(G(E(c.range,b),+c))}function x(a,b){var c=a.data("base"),d=c.data("options"),c=c.data("handles"),e=0,k=100;if(!n(b))return!1;if(d.step){var m=d.step;b=Math.round(b/m)*m}1<c.length&&(a[0]!==c[0][0]?e=u(c[0].data("pct")+d.margin):k=u(c[1].data("pct")-d.margin));b=Math.min(Math.max(b,e),0>k?100:k);if(b===a.data("pct"))return[e?e:!1,100===k?!1:k];w(a,b);return!0}function A(a,b,c,d){a.addClass(g[5]);setTimeout(function(){a.removeClass(g[5])},300);x(b,c);r(d,a.data("target"));a.data("target").change()}function M(a,b,c){var d=+b.a,e=a[b.d]-b.start[b.d],e=100*e/b.size;if(1===d.length){if(a=x(d[0],b.c[0]+e),!0!==a){0<=f.inArray(d[0].data("pct"),a)&&L(b.b,!c.margin);return}}else{var k,m;c.step&&(a=c.step,e=Math.round(e/a)*a);a=k=b.c[0]+e;e=m=b.c[1]+e;0>a?(e+=-1*a,a=0):100<e&&(a-=e-100,e=100);if(0>k&&!a&&!d[0].data("pct")||100===e&&100<m&&100===d[1].data("pct"))return;w(d[0],a);w(d[1],e)}r(c.slide,b.target)}function N(a,b,c){1===b.a.length&&b.a[0].data("grab").removeClass(g[4]);a.cursor&&y.css("cursor","").off(h);z.off(h);+b.target.removeClass(g[14]+" "+g[20]).change();r(c.set,b.target)}function B(a,b,c){1===b.a.length&&b.a[0].data("grab").addClass(g[4]);a.stopPropagation();p(q.move,z,M,{start:a,b:b.b,target:b.target,a:b.a,c:[b.a[0].data("pct"),b.a[b.a.length-1].data("pct")],d:c.orientation?"pointY":"pointX",size:c.orientation?b.b.height():b.b.width()});p(q.end,z,N,{target:b.target,a:b.a});a.cursor&&(y.css("cursor",f(a.target).css("cursor")),1<b.a.length&&b.target.addClass(g[20]),y.on("selectstart"+h,function(){return!1}))}+function O(a,b,c){b=b.b;var d,e;a.stopPropagation();c.orientation?(a=a.pointY,e=b.height()):(a=a.pointX,e=b.width());d=b.data("handles");var k=a,m=c.style;1===d.length?d=d[0]:(m=d[0].offset()[m]+d[1].offset()[m],d=d[k<m/2?0:1]);a=100*(a-b.offset()[c.style])/e;A(b,d,a,[c.slide,c.set])}function P(a,b,c){var d=b.b.data("handles"),e;e=c.orientation?a.pointY:a.pointX;a=(e=e<b.b.offset()[c.style])?0:100;e=e?0:d.length-1;A(b.b,d[e],a,[c.slide,c.set])}function Q(a,b){function c(a){if(2!==a.length)return!1;+a=[parseFloat(a[0]),parseFloat(a[1])];return!n(a[0])||!n(a[1])||a[1]<a[0]?!1:a}var d={f:function(a,b){switch(a){case 1:case 0.1:case 0.01:case 0.001:case 1E-4:case 1E-5:a=a.toString().split(".");b.decimals="1"===a[0]?0:a[1].length;break;case void 0:b.decimals=2;break;default:return!1}return!0},e:function(a,b,c){if(!a)return b[c].mark=".",!0;switch(a){case ".":case ",":return!0;default:return!1}},g:function(a,b,c){function d(a){return t(a)||"string"===typeof a||"function"===typeof a||!1===a||t(a[0])&&+"function"===typeof a[0][a[1]]}function g(a){var b=[[],[]];d(a)?b[0].push(a):f.each(a,function(a,e){1<a||(d(e)?b[a].push(e):b[a]=b[a].concat(e))});return b}if(a){var l,h;a=g(a);b.direction&&a[1].length&&a.reverse();for(l=0;l<b.handles;l++)for(h=0;h<a[l].length;h++){if(!d(a[l][h]))return!1;a[l][h]||a[l].splice(h,1)}b[c].to=a}else b[c].to=[[],[]];return!0}};f.each({handles:{r:!0,t:function(a){a=parseInt(a,10);return 1===a||2===a}},range:{r:!0,t:function(a,b,d){b[d]=c(a);return b[d]&&b[d][0]!==b[d][1]}},+start:{r:!0,t:function(a,b,d){if(1===b.handles)return f.isArray(a)&&(a=a[0]),a=parseFloat(a),b.start=[a],n(a);b[d]=c(a);return!!b[d]}},connect:{r:!0,t:function(a,b,c){if("lower"===a)b[c]=1;else if("upper"===a)b[c]=2;else if(!0===a)b[c]=3;else if(!1===a)b[c]=0;else return!1;return!0}},orientation:{t:function(a,b,c){switch(a){case "horizontal":b[c]=0;break;case "vertical":b[c]=1;break;default:return!1}return!0}},margin:{r:!0,t:function(a,b,c){a=parseFloat(a);b[c]=s(b.range,a);return n(a)}},direction:{r:!0,+t:function(a,b,c){switch(a){case "ltr":b[c]=0;break;case "rtl":b[c]=1;b.connect=[0,2,1,3][b.connect];break;default:return!1}return!0}},behaviour:{r:!0,t:function(a,b,c){b[c]={tap:a!==(a=a.replace("tap","")),extend:a!==(a=a.replace("extend","")),drag:a!==(a=a.replace("drag","")),fixed:a!==(a=a.replace("fixed",""))};return!a.replace("none","").replace(/\-/g,"")}},serialization:{r:!0,t:function(a,b,c){return d.g(a.to,b,c)&&d.f(a.resolution,b)&&d.e(a.mark,b,c)}},slide:{t:function(a){return f.isFunction(a)}},+set:{t:function(a){return f.isFunction(a)}},block:{t:function(a){return f.isFunction(a)}},step:{t:function(a,b,c){a=parseFloat(a);b[c]=s(b.range,a);return n(a)}}},function(c,d){var f=a[c],g=void 0!==f;if(d.r&&!g||g&&!d.t(f,a,c))throw console&&console.log&&console.group&&(console.group("Invalid noUiSlider initialisation:"),console.log("Option:\t",c),console.log("Value:\t",f),console.log("Slider(s):\t",b),console.groupEnd()),new RangeError("noUiSlider");})}function R(a){this.data("options",f.extend(!0,+{},a));a=f.extend({handles:2,margin:0,connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal"},a);a.serialization=a.serialization||{};Q(a,this);a.style=a.orientation?"top":"left";return this.each(function(){var b=f(this),c,d=[],e,k=f("<div/>").appendTo(b);if(b.data("base"))throw Error("Slider was already initialized.");b.data("base",k).addClass([g[6],g[16+a.direction],g[10+a.orientation]].join(" "));for(c=0;c<a.handles;c++)e=f("<div><div/></div>").appendTo(k),e.addClass(g[1]),e.children().addClass([g[2],+g[2]+g[7+a.direction+(a.direction?-1*c:c)]].join(" ")),e.data({base:k,target:b,options:a,grab:e.children(),pct:-1}).attr("data-style",a.style),e.data({store:K(e,c,a.serialization)}),d.push(e);switch(a.connect){case 1:b.addClass(g[9]);d[0].addClass(g[12]);break;case 3:d[1].addClass(g[12]);case 2:d[0].addClass(g[9]);case 0:b.addClass(g[12])}k.addClass(g[0]).data({target:b,options:a,handles:d});b.val(a.start);if(!a.behaviour.fixed)for(c=0;c<d.length;c++)p(q.start,d[c].children(),B,{b:k,target:b,a:[d[c]]});+a.behaviour.tap&&p(q.start,k,O,{b:k,target:b});a.behaviour.extend&&(b.addClass(g[19]),a.behaviour.tap&&p(q.start,b,P,{b:k,target:b}));a.behaviour.drag&&(c=k.find("."+g[9]).addClass(g[18]),a.behaviour.fixed&&(c=c.add(k.children().not(c).data("grab"))),p(q.start,c,B,{b:k,target:b,a:d}))})}function S(){var a=f(this).data("base"),b=[];f.each(a.data("handles"),function(){b.push(f(this).data("store").val())});return 1===b.length?b[0]:a.data("options").direction?b.reverse():b}function T(a,b){f.isArray(a)||+(a=[a]);return this.each(function(){var c=f(this).data("base"),d,e=Array.prototype.slice.call(c.data("handles"),0),g=c.data("options");1<e.length&&(e[2]=e[0]);g.direction&&a.reverse();for(c=0;c<e.length;c++)if(d=a[c%2],null!==d&&void 0!==d){"string"===f.type(d)&&(d=d.replace(",","."));var h=g.range;d=parseFloat(d);d=s(h,0>h[0]?d+Math.abs(h[0]):d-h[0]);g.direction&&(d=100-d);!0!==x(e[c],d)&&e[c].data("store").val(!0);!0===b&&r(g.set,f(this))}})}function U(a){var b=[[a,""]];f.each(a.data("base").data("handles"),+function(){b=b.concat(f(this).data("store").elements)});f.each(b,function(){1<this.length&&this[0].off(h)});a.removeClass(g.join(" "));a.empty().removeData("base options")}function V(a){return this.each(function(){var b=f(this).val()||!1,c=f(this).data("options"),d=f.extend({},c,a);!1!==b&&U(f(this));a&&(f(this).noUiSlider(d),!1!==b&&d.start===c.start&&f(this).val(b))})}var z=f(document),y=f("body"),h=".nui",W=f.fn.val,g="noUi-base noUi-origin noUi-handle noUi-input noUi-active noUi-state-tap noUi-target -lower -upper noUi-connect noUi-horizontal noUi-vertical noUi-background noUi-stacking noUi-block noUi-state-blocked noUi-ltr noUi-rtl noUi-dragable noUi-extended noUi-state-drag".split(" "),+q=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"};f.fn.val=function(){return this.hasClass(g[6])?arguments.length?T.apply(this,arguments):S.apply(this):W.apply(this,arguments)};return(D?V:R).call(this,C)}})(window.jQuery||window.Zepto);

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // jsjs // jquery.nouislider.min.jsjquery.nouislider.min.js BlameBlame

}, initializeFormEditing: function(element) { //+ + removeClassProcessedElements(); $('#spb_edit_form .wp-editor-wrap .textarea_html').each(function(index) { initTinyMce($(this)); });-+ + $('.spb-colorpicker').minicolors();+ + if ($('.noUiSlider').length > 0) {+ $('.noUiSlider').each(function() {+ var uislider = jQuery(this),+ sliderInput = uislider.next('input.spb-uislider'),+ value = parseInt(sliderInput.val(), 10),+ step = parseFloat(sliderInput.data('step')),+ min = parseFloat(sliderInput.data('min')),+ max = parseFloat(sliderInput.data('max'));+ + console.log(step);+ + uislider.noUiSlider({+ range: [min,max],+ start: [value],+ handles: 1,+ step: step,+ serialization: {+ to: sliderInput,+ resolution: 1+ }+ });+ });+ }+ + if ($('.icon-picker').length > 0) {+ var selectedIcon = $('.icon-picker').val();+ if (selectedIcon) {+ $('.font-icon-grid').find('.'+selectedIcon).parent().addClass('selected');+ }+ }+ + $('.font-icon-grid').on('click', 'li', function() {+ var selection = $(this),+ iconName = selection.find('i').attr('class');+ + $('.font-icon-grid li').removeClass('selected');+ selection.addClass('selected');+ selection.parent().parent().find('input').val(iconName);+ });+ // $('#spb_edit_form .gallery_widget_attached_images_list').each(function(index) { // attachedImgSortable($(this)); // });

959697

9899

100101

102103104

9596979899

100101102

103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148

$('.spb_save_edit_form').unbind('click').click(function(e) { e.preventDefault();+ removeClassProcessedElements(); saveFormEditing(element);//(element);- }); $('#cancel-background-options').unbind('click').click(function(e){

116117118

119120121122123

160161162163164

165166167

198199200201

202203204

242243244

245246247248

this.addLastClass($(".spb_main_sortable")); var shortcodes = generateShortcodesFromHtml($(".spb_main_sortable"));+ + removeClassProcessedElements(); if ( isTinyMceActive() != true ) { $('#content').val(shortcodes);

232233234

235236237

276277278279280281282283

start: function(event, ui) { renderCorrectPlaceholder(event, ui);} }); initDroppable();- - - + /* Make menu elements dropable */ //$('.dropdown-toggle').dropdown();

268269270271272273

274275276

314315316

317318319320

281282283284

285286287

325326327

328329330331

/*** Template System ***/ spb_templateSystem();+ + /*** Element System ***/+ spb_customElementSystem(); $('#swift_page_builder').on('click', '.add-text-block-to-content', function(e) { e.preventDefault();

453454455

456457458

497498499500501502503504505

clear_page_builder_content(); }); + $('#fullscreen-spb').on('click', function(e) {+ e.preventDefault();+ $('body').addClass('spb-fullscreen-mode');+ });+ + $('#close-fullscreen-spb').on('click', function(e) {+ e.preventDefault();+ $('body').removeClass('spb-fullscreen-mode');+ });+ }); // end jQuery(document).ready function open_elements_dropdown() {

508509510

511512513

555556557558559560561562563564565566567568569570

jQuery('.spb_popular_layouts:first').trigger('click'); } +function open_custom_elements_dropdown() {+ jQuery('.spb_custom_elements:first').trigger('click');+}+ /** * Swift Page Builder class */

518519520

521522523

575576577578579580581582583584

jQuery('#spb_save_template').live("click", function(e) { e.preventDefault(); - var template_name = prompt("Please enter templates name", '');+ var template_name = prompt("Please enter a name to save the template as.", ''); if ( template_name != null && template_name != "" ) { var template = generateShortcodesFromHtml(jQuery(".spb_main_sortable"));+ + removeClassProcessedElements(); var data = { action: 'spb_save_template', template: template,

526527528529

530531

532533534

587588589

590591592593594595596597

jQuery('.spb_templates_ul').html(response); }); } else {- alert("Error. Please try again.");+ alert("There has been an error. Please try again."); } });

539540541542

543544545

602603604

605606607608

591592593594

595596597

654655656

657658659660

}); } +function spb_customElementSystem() {+ jQuery('.element-save').live("click", function(e) {+ e.preventDefault();+ + var element_name = prompt("Please enter a name to save the element as.", '');+ if ( element_name != null && element_name != "" ) {+ var element = generateShortcodesFromHtml(jQuery(this).closest('.spb_sortable'), true);+ + removeClassProcessedElements();+ var data = {+ action: 'spb_save_element',+ element: element,+ element_name: element_name+ };++ jQuery.post(ajaxurl, data, function(response) {+ jQuery('.spb_custom_elements_ul').html(response);+ });+ } else {+ alert("There has been an error. Please try again.");+ }+ });+ + jQuery('.spb_elements_li a').live("click", function(e) {+ e.preventDefault();+ var data = {+ action: 'spb_load_element',+ element_id: jQuery(this).attr('data-element_id')+ };+ + jQuery.post(ajaxurl, data, function(response) {+ jQuery('.spb_main_sortable').append(response).find(".spb_init_callback").each(function(index) {+ var fn = window[jQuery(this).attr("value")];+ if ( typeof fn === 'function' ) {+ fn(jQuery(this).closest('.spb_content_element'));+ }+ });+ //+ initDroppable();+ save_spb_html();+ });+ + jQuery(this).parents('.custom-elements-nav').find('.dropdown').removeClass('open');+ });+ + jQuery('.spb_remove_element').live("click", function(e) {+ e.preventDefault();+ var element_name = jQuery(this).closest('.spb_elements_li').find('a').text();+ var answer = confirm ("Confirm deletion of '"+element_name+"', or press Cancel to leave. This action cannot be undone.");+ if (answer) {+ //alert("delete");+ var data = {+ action: 'spb_delete_element',+ element_id: jQuery(this).closest('.spb_elements_li').find('a').attr('data-element_id')+ };++ jQuery.post(ajaxurl, data, function(response) {+ jQuery('.spb_custom_elements_ul').html(response);+ });+ }+ });+}+ // fix sub nav on scroll var $win, $nav, navTop, isFixed = 0; function spb_navOnScroll() {

606607608

609610611

669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737

687688689690

691692693

813814815

816817818819

action: 'spb_shortcodes_to_builder', content: content };- + jQuery.post(ajaxurl, data, function(response) { jQuery('.spb_main_sortable').html(response);

701702703704

705706707

827828829

830831832833

stop: function(event, ui) { jQuery('#spb_content').removeClass('sorting-started'); },- update: function() {jQuery.swift_page_builder.save_spb_html(); },+ update: function() {+ jQuery.swift_page_builder.save_spb_html();+ removeClassProcessedElements(); + }, over: function(event, ui) { ui.placeholder.css({maxWidth: ui.placeholder.parent().width()}); ui.placeholder.removeClass('hidden-placeholder');

756757758759

760761762

882883884

885886887888889890891

// cursorAt: { left: 10, top : 20 }, cursor: "move", items: "div.sortable_1st_level",//spb_sortable- update: function() {jQuery.swift_page_builder.save_spb_html(); }+ update: function() {+ jQuery.swift_page_builder.save_spb_html();+ removeClassProcessedElements();++ } }); jQuery('.spb_column_container').sortable({

836837838839

840841842

965966967

968969970971972973974975

// cursorAt: { left: 10, top : 20 }, cursor: "move", items: "div.spb_sortable:not(.spb_column)",- update: function() { jQuery.swift_page_builder.save_spb_html(); }+ update: function() {+ jQuery.swift_page_builder.save_spb_html();+ removeClassProcessedElements(); + } }); jQuery('.spb_main_sortable').droppable({

847848849850

851852853

980981982

983984985986987988989

} // end columnControls() +//Function to avoid that the same spb_element is processed more than once+function removeClassProcessedElements(){+ + jQuery(".spb_sortable").removeClass("spb_element_processed");+ +}+ /* Show widget edit form ---------------------------------------------------------- */ var current_scroll_pos = 0;

103910401041

104210431044

1175117611771178117911801181118211831184118511861187

1049105010511052

105310541055

105610571058

119211931194

119511961197

1198119912001201

function saveFormEditing(element) { jQuery("#publish").show(); // show main publish button jQuery('.spb_main_sortable, #spb-elements, .spb_switch-to-builder').show();+ removeClassProcessedElements(); //save data jQuery("#spb_edit_form .spb_param_value").each(function(index) { var element_to_update = jQuery(this).attr("name"), new_value = '';-+ // Textfield - input if ( jQuery(this).hasClass("textfield") ) { new_value = jQuery(this).val(); }+ // Color - input+ else if ( jQuery(this).hasClass("colorpicker") ) {+ new_value = jQuery(this).val();+ }+ // Slider - input+ else if ( jQuery(this).hasClass("uislider") ) {+ new_value = jQuery(this).val();+ }+ else if ( jQuery(this).hasClass("icon-picker") ) {+ new_value = jQuery(this).val();+ } // Dropdown - select- else if ( jQuery(this).hasClass("dropdown") ) {+ else if ( jQuery(this).hasClass("dropdown") || jQuery(this).hasClass("dropdown-id") ) { new_value = jQuery(this).val(); // get selected element var all_classes_ar = new Array(),

107610771078

107910801081108210831084

1085108610871088

10891090

109110921093

121912201221122212231224122512261227

12281229123012311232123312341235123612371238123912401241124212431244

1245124612471248

jQuery.swift_page_builder.addLastClass(jQuery(".spb_main_sortable")); var shortcodes = generateShortcodesFromHtml(jQuery(".spb_main_sortable"));- + + removeClassProcessedElements();+ if ( isTinyMceActive() != true ) { jQuery('#content').val(shortcodes); } else {

1294129512961297

129812991300

144914501451

145214531454145514561457

column_el_width = getColumnSize(element), params = '', sc_ending = ']';-+ //New Validation to avoid duplicated text+ if (!element.hasClass("spb_element_processed")){+ + + if ( element.parent().hasClass('spb_column_container') ) {+ element.addClass("spb_element_processed");+ }+ element.children('.spb_element_wrapper').children('.spb_param_value').each(function(index) { var param_name = jQuery(this).attr("name"), new_value = '';

1344134513461347

134813491350

150115021503

15041505150615071508150915101511151215131514

new_value = jQuery(this).val(); } }+ else if ( jQuery(this).hasClass("colorpicker") ) {+ new_value = jQuery(this).val();+ }+ else if ( jQuery(this).hasClass("uislider") ) {+ new_value = jQuery(this).val();+ }+ else if ( jQuery(this).hasClass("icon-picker") ) {+ new_value = jQuery(this).val();+ } else if ( jQuery(this).hasClass("dropdown") ) { new_value = jQuery(this).val(); }+ else if ( jQuery(this).hasClass("dropdown-id") ) {+ new_value = jQuery(this).val();+ } else if ( jQuery(this).hasClass("select-multiple") ) { new_value = jQuery(this).val(); }

135713581359

136013611362

136313641365

152115221523152415251526152715281529153015311532153315341535153615371538153915401541

output += '[/'+sc_base+'] '; } jQuery('.spb_column_container').removeClass('converted');+ } }); return output;

145314541455

145614571458

1629163016311632163316341635

168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730

173117321733

186618671868

18691870

187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897

total_width = width; } - if (cur_el.hasClass('spb_column') || cur_el.hasClass('spb_tabs') || cur_el.hasClass('spb_tour') || cur_el.hasClass('spb_accordion')) {+ if (cur_el.hasClass('spb_column') || cur_el.hasClass('spb_row') || cur_el.hasClass('spb_tabs') || cur_el.hasClass('spb_tour') || cur_el.hasClass('spb_accordion')) { if (cur_el.find('.spb_element_wrapper .spb_column_container').length > 0) { cur_el.removeClass('empty_column');

$('.dropdown-toggle').removeClass('selected'); - if ($('#spb-elements').hasClass('subnav-fixed') || $(this).hasClass('spb_templates') || $(this).hasClass('spb_columns')) {+ if ($('#spb-elements').hasClass('subnav-fixed') || $(this).hasClass('spb_templates') || $(this).hasClass('spb_custom_elements') || slideOutClose();

jQuery('.spb_remove_template').live("click", function(e) { e.preventDefault(); var template_name = jQuery(this).closest('.spb_template_li').find('a').text();- var answer = confirm ("Confirm deleting '"+template_name+"' template, press Cancel to leave. This action cannot be undone.");+ var answer = confirm ("Confirm deletion of '"+template_name+"' template, or press Cancel to leave. This action cannot be undone."); if (answer) { //alert("delete"); var data = {

if (jQuery.trim(content).length > 0 && jQuery.trim(content).substr(0,1) != "[" && jQuery.trim(content).substr(0,5) != "<span") { alert("By switching to the page builder, any content not in page builder assets will be removed for consistency."); - content = '[spb_text_block pb_margin_bottom="no" pb_border_bottom="no" width="1/1" el_position="first last"]' + content + '[/spb_text_block]';+ //content = '[spb_text_block pb_margin_bottom="no" pb_border_bottom="no" width="1/1" el_position="first last"]' + content + '[/spb_text_block]'; if ( isTinyMceActive() ) { tinyMCE.get('content').setContent(content); } else {

element_type = element.attr("data-element_type"); jQuery('body').css('overflow', 'hidden');- jQuery('#spb_edit_form').html(jQuery('#spb_loading').val()).show().css({"padding-top" : 60});+ jQuery('#spb_edit_form').html('<div class="spb-loading-message">'+jQuery('#spb_loading').val()+'</div>').show().css({"padding-top" : 60}); jQuery("#publish").hide(); // hide main publish button //jQuery('.spb_main_sortable, #spb-elements, .spb_switch-to-builder').hide();-+ var data = { action: 'spb_show_edit_form', element: element_type,

el.closest('.spb_element_wrapper').addClass(class_to_set); } -/* Call to action Callbacks----------------------------------------------------------- */-function spbCallToActionInitCallBack(element) {- var el = element.find('.spb_param_value.position');- var class_to_set = el.val();- el.closest('.spb_element_wrapper').addClass(class_to_set);-}-function spbCallToActionSaveCallBack(element) {- var el_class = element.find('.spb_param_value.color').val() + " " + element.find('.spb_param_value.icon').val();- //- element.find('.spb_element_wrapper').removeClass(el_class);-}- /* Button Callbacks ---------------------------------------------------------- */-function spbButtonInitCallBack(element) {- var el_class = element.find('.spb_param_value.color').val() + ' ' + element.find('.spb_param_value.size').val() + ' ' + element.find('.spb_param_value.icon').val();- //- element.find('button.title').attr({ "class" : "spb_param_value title textfield btn " + el_class });-- var icon = element.find('.spb_param_value.icon').val();- if ( icon != 'none' && element.find('button i.icon').length == 0 ) {- element.find('button.title').append(' <i class="icon"></i>');- }-}--function spbButtonSaveCallBack(element) {- var el_class = element.find('.spb_param_value.color').val() + ' ' + element.find('.spb_param_value.size').val() + ' ' + element.find('.spb_param_value.icon').val();- //- element.find('.spb_element_wrapper').removeClass(el_class);- element.find('button.title').attr({ "class" : "spb_param_value title textfield btn " + el_class });-- var icon = element.find('.spb_param_value.icon').val();- if ( icon != 'none' && element.find('button i.icon').length == 0 ) {- element.find('button.title').append(' <i class="icon"></i>');- } else {- element.find('button.title i.icon').remove();- }-}+//function spbButtonInitCallBack(element) {+// var el_class = element.find('.spb_param_value.color').val() + ' ' + element.find('.spb_param_value.size').val() + ' ' + element.find('.spb_param_value.icon').val();+// //+// element.find('button.title').attr({ "class" : "spb_param_value title textfield btn " + el_class });+//+// var icon = element.find('.spb_param_value.icon').val();+// if ( icon != 'none' && element.find('button i.icon').length == 0 ) {+// element.find('button.title').append(' <i class="icon"></i>');+// }+//}+//+//function spbButtonSaveCallBack(element) {+// var el_class = element.find('.spb_param_value.color').val() + ' ' + element.find('.spb_param_value.size').val() + ' ' + element.find('.spb_param_value.icon').val();+// //+// element.find('.spb_element_wrapper').removeClass(el_class);+// element.find('button.title').attr({ "class" : "spb_param_value title textfield btn " + el_class });+//+// var icon = element.find('.spb_param_value.icon').val();+// if ( icon != 'none' && element.find('button i.icon').length == 0 ) {+// element.find('button.title').append(' <i class="icon"></i>');+// } else {+// element.find('button.title i.icon').remove();+// }+//} /* URL Encoding ---------------------------------------------------------- */

dantedante // swift-frameworkswift-framework // page-builderpage-builder // assetsassets // jsjs // page-builder.jspage-builder.js Download patchDownload patchBlameBlame

wp_enqueue_style('bootstrap'); wp_enqueue_style('ui-custom-theme'); wp_enqueue_style('page-builder-css');- + wp_enqueue_style('colorpicker-css');+ wp_enqueue_style('uislider-css');+ wp_enqueue_script('jquery-ui-tabs'); wp_enqueue_script('jquery-ui-droppable'); wp_enqueue_script('jquery-ui-draggable');

101102103104

105106107

101102103

104105106107108109

109110111

112113114115116

117118119120121

122123124

111112113114115116117118119120121122123124125126127128129130131132

wp_enqueue_script('bootstrap-js'); wp_enqueue_script('page-builder-js');+ wp_enqueue_script('colorpicker-js');+ wp_enqueue_script('uislider-js'); } public function registerJavascript() { wp_register_script('page-builder-js', $this->assetURL( 'js/page-builder.js' ), array('jquery'), SPB_VERSION, true); wp_register_script('bootstrap-js', $this->assetURL( 'js/bootstrap.min.js' ), false, SPB_VERSION, true);+ wp_register_script('colorpicker-js', $this->assetURL( 'js/jquery.minicolors.min.js' ), array('jquery'), SPB_VERSION, true);+ wp_register_script('uislider-js', $this->assetURL( 'js/jquery.nouislider.min.js' ), array('jquery'), SPB_VERSION, true); } public function registerCss() { wp_register_style( 'bootstrap', $this->assetURL( 'css/bootstrap.css' ), false, SPB_VERSION, false ); wp_register_style( 'page-builder-css', $this->assetURL( 'css/page-builder.css' ), false, NULL, false );+ wp_register_style( 'colorpicker-css', $this->assetURL( 'css/jquery.minicolors.css' ), false, NULL, false );+ wp_register_style( 'uislider-css', $this->assetURL( 'css/jquery.nouislider.min.css' ), false, NULL, false ); } public function swiftPageBuilderEditPage() {

dantedante // swift-frameworkswift-framework // page-builderpage-builder // builderbuilder // build.phpbuild.php Download patchDownload patchBlameBlame

/* LAYOUT CONFIG ================================================== */ - SPBMap::layout(array('id'=>'column_12', 'title'=>'1/2'));- SPBMap::layout(array('id'=>'column_12-12', 'title'=>'1/2 + 1/2'));- SPBMap::layout(array('id'=>'column_13', 'title'=>'1/3'));- SPBMap::layout(array('id'=>'column_13-13-13', 'title'=>'1/3 + 1/3 + 1/3'));- SPBMap::layout(array('id'=>'column_13-23', 'title'=>'1/3 + 2/3'));- SPBMap::layout(array('id'=>'column_23-13', 'title'=>'2/3 + 1/3'));- SPBMap::layout(array('id'=>'column_14', 'title'=>'1/4'));- SPBMap::layout(array('id'=>'column_12-14-14', 'title'=>'1/2 + 1/4 + 1/4'));- SPBMap::layout(array('id'=>'column_14-12-14', 'title'=>'1/4 + 1/2 + 1/4'));- SPBMap::layout(array('id'=>'column_14-14-12', 'title'=>'1/4 + 1/4 + 1/2'));- SPBMap::layout(array('id'=>'column_14-14-14-14', 'title'=>'1/4 + 1/4 + 1/4 + 1/4'));- SPBMap::layout(array('id'=>'column_11', 'title'=>'1/1'));- SPBMap::layout(array('id'=>'column_16', 'title'=>'1/6')); + SPBMap::layout(array('id'=>'row', 'title'=>'Row'));+ SPBMap::layout(array('id'=>'column_12', 'title'=>'1/2 Column'));+ SPBMap::layout(array('id'=>'column_12-12', 'title'=>'1/2 + 1/2 Columns'));+ SPBMap::layout(array('id'=>'column_13', 'title'=>'1/3 Column'));+ SPBMap::layout(array('id'=>'column_13-13-13', 'title'=>'1/3 + 1/3 + 1/3 Columns'));+ SPBMap::layout(array('id'=>'column_13-23', 'title'=>'1/3 + 2/3 Columns'));+ SPBMap::layout(array('id'=>'column_23-13', 'title'=>'2/3 + 1/3 Columns'));+ SPBMap::layout(array('id'=>'column_14', 'title'=>'1/4 Column'));+ SPBMap::layout(array('id'=>'column_12-14-14', 'title'=>'1/2 + 1/4 + 1/4 Columns'));+ SPBMap::layout(array('id'=>'column_14-12-14', 'title'=>'1/4 + 1/2 + 1/4 Columns'));+ SPBMap::layout(array('id'=>'column_14-14-12', 'title'=>'1/4 + 1/4 + 1/2 Columns'));+ SPBMap::layout(array('id'=>'column_14-14-14-14', 'title'=>'1/4 + 1/4 + 1/4 + 1/4 Column'));+ SPBMap::layout(array('id'=>'column_11', 'title'=>'1/1 Column'));+ SPBMap::layout(array('id'=>'column_16', 'title'=>'1/6 Column')); ?>

23456789

1011121314151617

18

234 56789

10111213141516171819

dantedante // swift-frameworkswift-framework // page-builderpage-builder // builderbuilder // liblib // default-map.phpdefault-map.php Download patchDownload patchBlameBlame

21222324

252627

212223

242526272829303132

72737475

767778

777879

80818283

public function output($post = null) { - $options = get_option('sf_dante_options');- $advanced_pb = false;- if (isset($options['advanced_pb']) && $options['advanced_pb'] == 1) {- $advanced_pb = true;- }- $output = ' <div id="spb-elements" class="navbar"> <div class="navbar-inner">

156157158159160161162163164165166167

161162163

164165166

169170171172

173174175176177178179

180181182183

184185186187188189190191192

168169170

171172173174175176

177178179180

181182183184185186

187188189

public function output($post = null) { if(empty($this->params)) return '';- $output = '<li><a id="'.$this->params['id'].'" data-element="spb_column" data-width="'.$this->params['id'].'" class="'.$this->params['id'].' clickable_layout_action dropable_column" href="#"><span>'.__($this->params['title'], "swift-framework-admin").'</span></a></li>';+ $output = "";+ if ($this->params['id'] == "row") {+ $output = '<li class="row-option"><a id="'.$this->params['id'].'" data-element="spb_row" data-width="'.$this->params['id'].'" class="'.$this->params['id'].' clickable_layout_action dropable_column" href="#"><span>'.__($this->params['title'], "swift-framework-admin").'</span></a></li>';+ } else {+ $output = '<li><a id="'.$this->params['id'].'" data-element="spb_column" data-width="'.$this->params['id'].'" class="'.$this->params['id'].' clickable_layout_action dropable_column" href="#"><span>'.__($this->params['title'], "swift-framework-admin").'</span></a></li>';+ } return $output; } }

} $class = ' ' . implode(" ", $class_ar); }- $output .= '<li><a data-element="' . $this->base . '" id="' . $this->base . '" class="dropable_el clickable_action'.$class.'" href="#">' . $this->getIcon() . __($this->params["name"], "swift-framework-admin") .'</a></li>';+ $output .= '<li class="menu-item-'. $this->base .'"><a data-element="' . $this->base . '" id="' . $this->base . '" class="dropable_el clickable_action'.$class.'" href="#">' . $this->getIcon() . __($this->params["name"], "swift-framework-admin") .'</a></li>'; if ($this->base != "spb_column") { return $output;

<div class="nav-collapse"> <ul class="nav"> <li class="dropdown content-dropdown">- <a class="dropdown-toggle spb_content_elements" data-slideout="spb-content-elements" href="#">'.__("+ <a class="dropdown-toggle spb_content_elements" data-slideout="spb-content-elements" href="#">'.__("Elements", "swift-framework-admin").' <b class="caret"></b></a> <ul class="dropdown-menu spb_elements_ul"> '.$this->getContentLayouts().' </ul> </li> </ul>';- - if ($advanced_pb) {+ $output .= '<ul class="nav pull-left columns-dropdown"> <li class="dropdown">- <a class="dropdown-toggle spb_columns" href="#">'.__("Add Columns", "swift-framework-admin").' <b class="caret"></b></a>+ <a class="dropdown-toggle spb_columns" href="#">'.__("Layout", "swift-framework-admin").' <b class="caret"></b></a> <ul class="dropdown-menu"> '.$this->getColumnLayouts().' </ul> </li> </ul>';- } $output .= '<ul class="nav pull-left pre-built-pages-nav"> <li class="dropdown">

dantedante // swift-frameworkswift-framework // page-builderpage-builder // builderbuilder // liblib // layouts.phplayouts.php Download patchDownload patchBlameBlame

347348349

350351352

347348349350351352353354355356357358359360361362363364365366367

$value = $param_value; $param_line .= '<input name="'.$param['param_name'].'" class="spb_param_value spb-textinput '.$param['param_name'].' '.$param['type'].'" type="text" value="'.$value.'" />'; }+ // Textfield - color+ else if ( $param['type'] == 'colorpicker' ) {+ $value = __($param_value, "swift-framework-admin");+ $value = $param_value;+ $param_line .= '<input name="'.$param['param_name'].'" class="spb_param_value spb-colorpicker '.$param['param_name'].' '.$param['type'].'" type="text" value="'.$value.'" maxlength="6" size"6" />';+ }+ // Slider - uislider+ else if ( $param['type'] == 'uislider' ) {+ $value = __($param_value, "swift-framework-admin");+ $value = $param_value;+ $min = isset($param['min']) ? $param['min'] : 0;+ $max = isset($param['max']) ? $param['max'] : 800;+ $step = isset($param['step']) ? $param['step'] : 5;+ $param_line .= '<div class="noUiSlider"></div><input name="'.$param['param_name'].'" class="spb_param_value spb-uislider '.$param['param_name'].' '.$param['type'].'" type="text" value="'.$value.'" maxlength="6" size"6" data-min="'.$min.'" data-max="'.$max.'" data-step="'.$step.'" />';+ } // Dropdown - select else if ( $param['type'] == 'dropdown' ) { $param_line .= '<select name="'.$param['param_name'].'" class="spb_param_value spb-input spb-select '.$param['param_name'].' '.$param['type'].'">';

dantedante // swift-frameworkswift-framework // page-builderpage-builder // builderbuilder // liblib // shortcodes.phpshortcodes.php Download patchDownload patchBlameBlame

'title' => '', 'item_count' => '-1', 'category' => '',+ 'carousel' => '', 'carousel_columns' => '', 'carousel_auto' => 'no', 'pagination' => 'no',

101112

131415

10111213141516

6869707172

73747576

777879

697071

72737475767778

7980818283

107108109110111112113114115116117118119120121122123124125126

127128129130131

132133134

111112113

114

115116117118119120121122123124125

126127128129130131132133134135136137138139140141142143144145

), array( "type" => "dropdown",+ "heading" => __("Carousel", "swift-framework-admin"),+ "param_name" => "carousel",+ "value" => array(__("Yes", "swift-framework-admin") => "yes",+ __("No", "swift-framework-admin") => "no"+ ),+ "description" => __("Enable the client asset to be a carousel, rather than a grid.", "swift-framework-admin")+ ),+ array(+ "type" => "dropdown", "heading" => __("Carousel Auto-Rotate", "swift-framework-admin"), "param_name" => "carousel_auto", "value" => array(__("Yes", "swift-framework-admin") => "yes",

183184185

186187188

194195196197198199200201202203204205206207208

$columns = 6; } - if ($carousel_auto == "yes") {- $items .= '<div class="carousel-overflow"><ul id="carousel-'.$sf_carouselID.'" class="clients-items carousel-items clearfix" data-columns="'.$columns.'" data-auto="true">'; + if ($carousel == "yes" || $carousel == "") {+ if ($carousel_auto == "yes") {+ $items .= '<div class="carousel-overflow"><ul id="carousel-'.$sf_carouselID.'" class="clients-items carousel-items clearfix" data-columns="'.$columns.'" data-auto="true">'; + } else {+ $items .= '<div class="carousel-overflow"><ul id="carousel-'.$sf_carouselID.'" class="clients-items carousel-items clearfix" data-columns="'.$columns.'" data-auto="false">';+ } } else {- $items .= '<div class="carousel-overflow"><ul id="carousel-'.$sf_carouselID.'" class="clients-items carousel-items clearfix" data-columns="'.$columns.'" data-auto="false">';- }- + $items .= '<ul class="carousel-grid row">';+ } $client_width = 200; $client_height = 200;

endwhile; wp_reset_postdata();- - $items .= '</ul>';- - $items .= '<a href="#" class="prev"><i class="ss-navigateleft"></i></a><a href="#" class="next"><i class="ss-navigateright"></i></a>';- - $options = get_option('sf_dante_options');- if ($options['enable_swipe_indicators']) {- $items .= '<div class="sf-swipe-indicator"></div>';- } - $items .= '</div>';- - // PAGINATION- - if ($pagination == "yes") {- - $items .= '<div class="pagination-wrap">';+ if ($carousel == "yes" || $carousel == "") {+ + $items .= '</ul>';+ + $items .= '<a href="#" class="prev"><i class="ss-navigateleft"></i></a><a href="#" class="next"><i class="ss-navigateright"></i></a>';+ + $options = get_option('sf_dante_options');+ if ($options['enable_swipe_indicators']) {+ $items .= '<div class="sf-swipe-indicator"></div>';+ } - $items .= pagenavi($clients_items);- $items .= '</div>'; + } else {+ + $items .= '</ul>';+ + // PAGINATION+ if ($pagination == "yes") {+ + $items .= '<div class="pagination-wrap">';+ + $items .= pagenavi($clients_items);+ + $items .= '</div>';+ + } + } // PAGE BUILDER OUPUT

dantedante // swift-frameworkswift-framework // page-builderpage-builder // builderbuilder // shortcodesshortcodes // clients.phpclients.php Download patchDownload patchBlameBlame

123456789

101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899

100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160

+<?php++class SwiftPageBuilderShortcode_spb_icon_box extends SwiftPageBuilderShortcode {++ public function content( $atts, $content = null ) {++ $title = $el_class = $text_color = $image_url = $image_object = $width = $el_position = '';++ extract(shortcode_atts(array(+ 'title' => '',+ 'character' => '',+ 'image' => '',+ 'animation' => '',+ 'animation_delay' => '',+ 'box_type' => '',+ 'color' => '',+ 'target' => '',+ 'el_class' => '',+ 'el_position' => '',+ 'width' => '1/1'+ ), $atts));++ $output = '';+ + if ($image != "") {+ $img_url = wp_get_attachment_url( $image, 'full' );+ $image_object = sf_aq_resize( $img_url, 70, 70, true, false); + $image_url = $image_object[0];+ }+ + $icon_box_output = do_shortcode('[sf_iconbox character="'.$character.'" image="'.$image.'" color="standard" type="'.$box_type.'" title="'.$title.'" animation="'.$animation.'" animation_delay="'.$animation_delay.'" color="'.$color.'"]'.$content.'[/sf_iconbox]');+ + $el_class = $this->getExtraClass($el_class);+ $width = spb_translateColumnWidthToSpan($width);++ $output .= "\n\t".'<div class="spb_icon_box '.$width.$el_class.'">'; + $output .= "\n\t\t".'<div class="spb_wrapper box-wrap">';+ $output .= "\n\t\t\t".$icon_box_output;+ $output .= "\n\t\t".'</div> '.$this->endBlockComment('.spb_wrapper');+ $output .= "\n\t".'</div> '.$this->endBlockComment($width);++ $output = $this->startRow($el_position) . $output . $this->endRow($el_position);+ + global $sf_include_carousel;+ $sf_include_carousel = true;+ + return $output;+ }+}++SPBMap::map( 'spb_icon_box', array(+ "name" => __("Icon Box", "swift-framework-admin"),+ "base" => "spb_icon_box",+ "class" => "",+ "icon" => "spb-icon-icon-box",+ "wrapper_class" => "clearfix",+ "params" => array(+ array(+ "type" => "textfield",+ "heading" => __("Icon Box title", "swift-framework-admin"),+ "param_name" => "title",+ "holder" => 'div',+ "value" => "",+ "description" => __("Icon Box title text.", "swift-framework-admin")+ ),+ array(+ "type" => "dropdown",+ "heading" => __("Icon Box Type", "swift-framework-admin"),+ "param_name" => "box_type",+ "value" => array(+ __('Standard', "swift-framework-admin") => "standard",+ __('Standard with Title Icon', "swift-framework-admin") => "standard-title",+ __('Left Icon', "swift-framework-admin") => "left-icon",+ __('Left Icon Alt', "swift-framework-admin") => "left-icon-alt",+ __('Boxed One', "swift-framework-admin") => "boxed-one",+ __('Boxed Two', "swift-framework-admin") => "boxed-two",+ __('Boxed Three', "swift-framework-admin") => "boxed-three",+ __('Boxed Four', "swift-framework-admin") => "boxed-four",+ __('Animated', "swift-framework-admin") => "animated",+ ),+ "description" => __("Choose the type of icon box.", "swift-framework-admin")+ ),+ array(+ "type" => "icon-picker",+ "heading" => __("Icon Box Icon", "swift-framework-admin"),+ "param_name" => "image",+ "value" => "",+ "description" => ''+ ),+ array(+ "type" => "textfield",+ "heading" => __("Icon Box Character", "swift-framework-admin"),+ "param_name" => "character",+ "value" => "",+ "description" => __("Instead of an icon, you can optionally provide a single letter/digit here. NOTE: This will override the icon selection.", "swift-framework-admin")+ ),+ array(+ "type" => "textarea_html",+ "holder" => "div",+ "class" => "",+ "heading" => __("Text", "swift-framework-admin"),+ "param_name" => "content",+ "value" => __("click the edit button to change this text.", "swift-framework-admin"),+ "description" => __("Enter your content.", "swift-framework-admin")+ ),+ array(+ "type" => "dropdown",+ "heading" => __("Icon Box Color", "swift-framework-admin"),+ "param_name" => "color",+ "value" => array(+ __('Standard', "swift-framework-admin") => "standard",+ __('Accent', "swift-framework-admin") => "accent",+ __('Secondary Accent', "swift-framework-admin") => "secondary-accent",+ __('Icon One', "swift-framework-admin") => "icon-one",+ __('Icon Two', "swift-framework-admin") => "icon-two",+ __('Icon Three', "swift-framework-admin") => "icon-three",+ __('Icon Four', "swift-framework-admin") => "icon-four"+ ),+ "description" => __("These colours are all set in the Color Customiser (link in the WP Admin Bar).", "swift-framework-admin")+ ),+ array(+ "type" => "dropdown",+ "heading" => __("Intro Animation", "swift-framework-admin"),+ "param_name" => "animation",+ "value" => array(+ __("None", "swift-framework-admin") => "none",+ __("Fade In", "swift-framework-admin") => "fade-in",+ __("Fade From Left", "swift-framework-admin") => "fade-from-left",+ __("Fade From Right", "swift-framework-admin") => "fade-from-right",+ __("Fade From Bottom", "swift-framework-admin") => "fade-from-bottom",+ __("Move Up", "swift-framework-admin") => "move-up",+ __("Grow", "swift-framework-admin") => "grow",+ __("Fly", "swift-framework-admin") => "fly",+ __("Helix", "swift-framework-admin") => "helix",+ __("Flip", "swift-framework-admin") => "flip",+ __("Pop Up", "swift-framework-admin") => "pop-up",+ __("Spin", "swift-framework-admin") => "spin",+ __("Flip X", "swift-framework-admin") => "flip-x",+ __("Flip Y", "swift-framework-admin") => "flip-y"+ ),+ "description" => __("Select an intro animation for the icon box that will show it when it appears within the viewport.", "swift-framework-admin")+ ),+ array(+ "type" => "textfield",+ "heading" => __("Animation Delay", "swift-framework-admin"),+ "param_name" => "animation_delay",+ "value" => "",+ "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")+ ),+ array(+ "type" => "textfield",+ "heading" => __("Extra class name", "swift-framework-admin"),+ "param_name" => "el_class",+ "value" => "",+ "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")+ )+ )+) );++?>

dantedante // swift-frameworkswift-framework // page-builderpage-builder // builderbuilder // shortcodesshortcodes // icon-boxes.phpicon-boxes.php BlameBlame

123456789

101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899

100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361

+<?php++ /*+ *+ * Swift Page Builder - Row Shortcode Class+ * ------------------------------------------------+ * Swift Framework+ * Copyright Swift Ideas 2014 - http://www.swiftideas.net+ *+ */+ + class SwiftPageBuilderShortcode_spb_row extends SwiftPageBuilderShortcode {+ + public function content( $atts, $content = null ) {+ + $el_class = $width = $row_bg_color = $row_padding_vertical = $row_margin_vertical = $remove_element_spacing = $el_position = '';+ + extract(shortcode_atts(array(+ 'wrap_type' => '',+ 'row_bg_color' => '',+ 'row_id' => '',+ 'row_name' => '',+ 'row_padding_vertical' => '',+ 'row_margin_vertical' => '30',+ 'row_overlay_opacity' => '0',+ 'remove_element_spacing' => '',+ 'parallax_type' => '',+ 'bg_image' => '',+ 'bg_video_mp4' => '',+ 'bg_video_webm' => '',+ 'bg_video_ogg' => '',+ 'parallax_video_height' => 'video-height',+ 'parallax_image_height' => 'content-height',+ 'parallax_video_overlay' => 'none',+ 'parallax_image_movement' => 'fixed',+ 'parallax_image_speed' => '0.5',+ 'bg_type' => '',+ 'el_class' => '',+ 'el_position' => '',+ 'width' => '1/1'+ ), $atts));+ + $output = $inline_style = $rowId = '';+ + if ($row_id != "") {+ $rowId = 'id="'.$row_id.'" data-rowname="'.$row_name.'"';+ }+ + $el_class = $this->getExtraClass($el_class);+ $orig_width = $width;+ $width = spb_translateColumnWidthToSpan($width);+ $img_url = wp_get_attachment_image_src($bg_image, 'full');+ + if ($remove_element_spacing == "yes") {+ $el_class .= ' remove-element-spacing';+ }+ + if ($row_bg_color != "") {+ $inline_style .= 'background-color:'.$row_bg_color.';';+ }+ if ($row_padding_vertical != "") {+ $inline_style .= 'padding-top:'.$row_padding_vertical.'px;padding-bottom:'.$row_padding_vertical.'px;';+ }+ if ($row_margin_vertical != "") {+ $inline_style .= 'margin-top:'.$row_margin_vertical.'px;margin-bottom:'.$row_margin_vertical.'px;';+ }+ + if ($parallax_type != "color") {+ $inline_style .= 'background-image: url('.$img_url[0].');';+ }+ + + if ($parallax_type == "video") {+ if ($img_url[0] != "") {+ $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.' spb_parallax_asset sf-parallax sf-parallax-video parallax-'.$parallax_video_height.' spb_content_element bg-type-'.$bg_type.' '.$width.$el_class.'" style="'.$inline_style.'" '.$rowId.'>'; + } else {+ $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.' spb_parallax_asset sf-parallax sf-parallax-video parallax-'.$parallax_video_height.' spb_content_element bg-type-'.$bg_type.' '.$width.$el_class.'" style="'.$inline_style.'" '.$rowId.'>'; + }+ } else if ($parallax_type == "image") {+ if ($img_url[0] != "") {+ if ($parallax_image_movement == "stellar") {+ $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.' spb_parallax_asset sf-parallax parallax-'.$parallax_image_height.' parallax-'.$parallax_image_movement.' spb_content_element bg-type-'.$bg_type.' '.$width.$el_class.'" data-parallax-speed="'.$parallax_image_speed.'" style="'.$inline_style.'" '.$rowId.'>';+ } else {+ $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.' spb_parallax_asset sf-parallax parallax-'.$parallax_image_height.' parallax-'.$parallax_image_movement.' spb_content_element bg-type-'.$bg_type.' '.$width.$el_class.'" style="'.$inline_style.'" '.$rowId.'>';+ }+ } else {+ $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.' spb_parallax_asset sf-parallax parallax-'.$parallax_image_height.' spb_content_element bg-type-'.$bg_type.' '.$width.$el_class.'" style="'.$inline_style.'" '.$rowId.'>';+ } + } else {+ $output .= "\n\t".'<div class="spb-row-container spb-row-'.$wrap_type.'" style="'.$inline_style.'" '.$rowId.'>'; + }+ + if ($wrap_type == "content-width") {+ //$output .= "\n\t\t".'<div class="container">';+ }+ $output .= "\n\t\t".'<div class="spb_content_element '.$width.$el_class.'">';+ $output .= "\n\t\t\t".'<div class="spb_wrapper">';+ $output .= "\n\t\t\t\t". spb_format_content($content);+ $output .= "\n\t\t\t".'</div> '.$this->endBlockComment('.spb_wrapper');+ + if ($parallax_type == "video") {+ $output .= '<video class="parallax-video" poster="'.$img_url[0].'" preload="auto" autoplay loop="loop" muted="muted">';+ if ($bg_video_mp4 != "") {+ $output .= '<source src="'.$bg_video_mp4.'" type="video/mp4">';+ }+ if ($bg_video_webm != "") {+ $output .= '<source src="'.$bg_video_webm.'" type="video/webm">';+ }+ if ($bg_video_ogg != "") {+ $output .= '<source src="'.$bg_video_ogg.'" type="video/ogg">';+ }+ $output .= '</video>';+ $output .= '<div class="video-overlay overlay-'.$parallax_video_overlay.'"></div>';+ }+ + $output .= "\n\t\t".'</div> '.$this->endBlockComment($width);+ + if ($row_overlay_opacity != "0") {+ $opacity = intval($row_overlay_opacity, 10) / 100;+ $output .= '<div class="row-overlay" style="background-color:'.$row_bg_color.';opacity:'.$opacity.';"></div>';+ }+ + + if ($wrap_type == "content-width") {+ //$output .= "\n\t\t".'</div>';+ }+ $output .= "\n\t".'</div>';+ + $output = $this->startRow($el_position, '', true) . $output . $this->endRow($el_position, '', true);+ + if ($parallax_type == "image" || $parallax_type == "video") {+ global $sf_include_parallax;+ $sf_include_parallax = true;+ }+ + return $output;+ }+ + public function contentAdmin($atts, $content = null) {+ $width = $el_class = $bg_color = $padding_vertical = '';+ extract(shortcode_atts(array(+ 'wrap_type' => '',+ 'el_class' => '',+ 'row_bg_color' => '',+ 'row_padding_vertical' => '',+ 'row_margin_vertical' => '',+ 'row_overlay_opacity' => '0',+ 'remove_element_spacing' => '',+ 'row_id' => '',+ 'row_name' => '',+ 'parallax_type' => '',+ 'bg_image' => '',+ 'bg_video_mp4' => '',+ 'bg_video_webm' => '',+ 'bg_video_ogg' => '',+ 'parallax_video_height' => 'video-height',+ 'parallax_image_height' => 'content-height',+ 'parallax_video_overlay' => 'none',+ 'parallax_image_movement' => 'fixed',+ 'parallax_image_speed' => '0.5',+ 'bg_type' => '',+ 'width' => 'span12'+ ), $atts));+ + $output = '';++ $output .= '<div data-element_type="spb_row" class="spb_row spb_sortable span12 spb_droppable not-column-inherit">';+ $output .= '<input type="hidden" class="spb_sc_base" name="element_name-spb_row" value="spb_row">';+ $output .= '<div class="controls sidebar-name"><div class="controls_right"><a class="column_edit" href="#" title="Edit"></a> <a class="column_clone" href="#" title="Clone"></a> <a class="column_delete" href="#" title="Delete"></a></div></div>';+ $output .= '<div class="spb_element_wrapper">';+ $output .= '<div class="row-fluid spb_column_container spb_sortable_container not-column-inherit">';+ $output .= do_shortcode( shortcode_unautop($content) );+ $output .= SwiftPageBuilder::getInstance()->getLayout()->getContainerHelper();+ $output .= '</div>';+ if ( isset($this->settings['params']) ) {+ $inner = '';+ foreach ($this->settings['params'] as $param) {+ $param_value = isset($$param['param_name']) ? $$param['param_name'] : '';+ //var_dump($param_value);+ if ( is_array($param_value)) {+ // Get first element from the array+ reset($param_value);+ $first_key = key($param_value);+ $param_value = $param_value[$first_key];+ }+ $inner .= $this->singleParamHtmlHolder($param, $param_value);+ }+ $output .= $inner;+ }+ $output .= '</div>';+ $output .= '</div>';+ + return $output;+ }+ }+ + SPBMap::map( 'spb_row', array(+ "name" => __("Row", "swift-framework-admin"),+ "base" => "spb_row",+ "controls" => "edit_delete",+ "content_element" => false,+ "params" => array(+ array(+ "type" => "dropdown",+ "heading" => __("Wrap type", "swift-framework-admin"),+ "param_name" => "wrap_type",+ "value" => array(__('Standard Width Content', "swift-framework-admin") => "content-width", __('Full Width Content', "swift-framework-admin") => "full-width"),+ "description" => __("Select if you want to row to wrap the content to the grid, or if you want the content to be edge to edge.", "swift-framework-admin")+ ),+ array(+ "type" => "colorpicker",+ "heading" => __("Background color", "swift-framework-admin"),+ "param_name" => "row_bg_color",+ "value" => "",+ "description" => __("Select a background colour for the row here.", "swift-framework-admin")+ ),+ array(+ "type" => "dropdown",+ "heading" => __("Row Type", "swift-framework-admin"),+ "param_name" => "parallax_type",+ "value" => array(+ __("Color", "swift-framework-admin") => "color",+ __("Image", "swift-framework-admin") => "image",+ __("Video", "swift-framework-admin") => "video"+ ),+ "description" => __("Choose whether you want to use an image or video for the background of the parallax. This will decide what is used from the options below.", "swift-framework-admin")+ ),+ array(+ "type" => "attach_image",+ "heading" => __("Background Image", "swift-framework-admin"),+ "param_name" => "bg_image",+ "value" => "",+ "description" => "Choose an image to use as the background for the parallax area."+ ),+ array(+ "type" => "dropdown",+ "heading" => __("Background Type", "swift-framework-admin"),+ "param_name" => "bg_type",+ "value" => array(+ __("Cover", "swift-framework-admin") => "cover",+ __("Pattern", "swift-framework-admin") => "pattern"+ ),+ "description" => __("If you're uploading an image that you want to spread across the whole asset, then choose cover. Else choose pattern for an image you want to repeat.", "swift-framework-admin")+ ),+ array(+ "type" => "textfield",+ "heading" => __("Background Video (MP4)", "swift-framework-admin"),+ "param_name" => "bg_video_mp4",+ "value" => "",+ "description" => "Provide a video URL in MP4 format to use as the background for the parallax area. You can upload these videos through the WordPress media manager."+ ),+ array(+ "type" => "textfield",+ "heading" => __("Background Video (WebM)", "swift-framework-admin"),+ "param_name" => "bg_video_webm",+ "value" => "",+ "description" => "Provide a video URL in WebM format to use as the background for the parallax area. You can upload these videos through the WordPress media manager."+ ),+ array(+ "type" => "textfield",+ "heading" => __("Background Video (Ogg)", "swift-framework-admin"),+ "param_name" => "bg_video_ogg",+ "value" => "",+ "description" => "Provide a video URL in OGG format to use as the background for the parallax area. You can upload these videos through the WordPress media manager."+ ),+ array(+ "type" => "dropdown",+ "heading" => __("Parallax Video Height", "swift-framework-admin"),+ "param_name" => "parallax_video_height",+ "value" => array(+ __("Video Height", "swift-framework-admin") => "video-height",+ __("Content Height", "swift-framework-admin") => "content-height"+ ),+ "description" => __("If you are using this as a video parallax asset, then please choose whether you'd like asset to sized based on the content height or the video height.", "swift-framework-admin")+ ),+ array(+ "type" => "dropdown",+ "heading" => __("Parallax Image Height", "swift-framework-admin"),+ "param_name" => "parallax_image_height",+ "value" => array(+ __("Content Height", "swift-framework-admin") => "content-height",+ __("Window Height", "swift-framework-admin") => "window-height"+ ),+ "description" => __("If you are using this as an image parallax asset, then please choose whether you'd like asset to sized based on the content height or the height of the viewport window.", "swift-framework-admin")+ ),+ array(+ "type" => "dropdown",+ "heading" => __("Background Image Movement", "swift-framework-admin"),+ "param_name" => "parallax_image_movement",+ "value" => array(+ __("Fixed", "swift-framework-admin") => "fixed",+ __("Scroll", "swift-framework-admin") => "scroll",+ __("Stellar (dynamic)", "swift-framework-admin") => "stellar",+ ),+ "description" => __("Choose the type of movement you would like the parallax image to have. Fixed means the background image is fixed on the page, Scroll means the image will scroll will the page, and stellar makes the image move at a seperate speed to the page, providing a layered effect.", "swift-framework-admin")+ ),+ array(+ "type" => "textfield",+ "heading" => __("Parallax Image Speed (Stellar Only)", "swift-framework-admin"),+ "param_name" => "parallax_image_speed",+ "value" => "0.5",+ "description" => "The speed at which the parallax image moves in relation to the page scrolling. For example, 0.5 would mean the image scrolls at half the speed of the standard page scroll. (Default 0.5)."+ ),+ array(+ "type" => "uislider",+ "heading" => __("Overlay Opacity", "swift-framework-admin"),+ "param_name" => "row_overlay_opacity",+ "value" => "0",+ "step" => "5",+ "min" => "0",+ "max" => "100",+ "description" => __("Adjust the overlay capacity if using an image or video option. This uses the color option, and shows an overlay over the image/video at the desired opacity. Percentage.", "swift-framework-admin")+ ),+ array(+ "type" => "uislider",+ "heading" => __("Padding - Vertical", "swift-framework-admin"),+ "param_name" => "row_padding_vertical",+ "value" => "30",+ "description" => __("Adjust the vertical padding for the row.", "swift-framework-admin")+ ),+ array(+ "type" => "uislider",+ "heading" => __("Margin - Vertical", "swift-framework-admin"),+ "param_name" => "row_margin_vertical",+ "value" => "30",+ "description" => __("Adjust the margin above and below the row.", "swift-framework-admin")+ ),+ array(+ "type" => "dropdown",+ "heading" => __("Remove Element Spacing", "swift-framework-admin"),+ "param_name" => "remove_element_spacing",+ "value" => array(+ __('No', "swift-framework-admin") => "no",+ __('Yes', "swift-framework-admin") => "yes"),+ "description" => __("Enable this option if you wish to remove all spacing from the elements within the row.", "swift-framework-admin")+ ),+ array(+ "type" => "textfield",+ "heading" => __("Row ID", "swift-framework-admin"),+ "param_name" => "row_id",+ "value" => "",+ "description" => __("If you wish to add an ID to the row, then add it here. You can then use the id to deep link to this section of the page. This is also used for one page navigation. NOTE: Make sure this is unique to the page!!", "swift-framework-admin")+ ),+ array(+ "type" => "textfield",+ "heading" => __("Row Section Name", "swift-framework-admin"),+ "param_name" => "row_name",+ "value" => "",+ "description" => __("This is used for the one page navigation, to identify the row. If this is left blank, then the row will be left off of the one page navigation.", "swift-framework-admin")+ ),+ array(+ "type" => "textfield",+ "heading" => __("Extra class name", "swift-framework-admin"),+ "param_name" => "el_class",+ "value" => "",+ "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin")+ )+ )+ ) );++?>

dantedante // swift-frameworkswift-framework // page-builderpage-builder // builderbuilder // shortcodesshortcodes // row.phprow.php BlameBlame

$width = spb_translateColumnWidthToSpan($width); $search_form .= '<form method="get" class="search-form search-widget" action="'.get_home_url().'/">';- $search_form .= '<input type="text" placeholder="'.$search_input_text.'" name="sf-search" />';+ $search_form .= '<input type="text" placeholder="'.$search_input_text.'" name="s" />'; $search_form .= '</form>'; $output .= "\n\t".'<div class="spb_search_widget spb_content_element '.$width.$el_class.'">';

31323334

353637

313233

34353637

dantedante // swift-frameworkswift-framework // page-builderpage-builder // builderbuilder // shortcodesshortcodes // search.phpsearch.php Download patchDownload patchBlameBlame

$el_class = $this->getExtraClass($el_class); $width = spb_translateColumnWidthToSpan($width); - $output .= "\n\t".'<div class="spb_search_widget spb_content_element '.$width.$el_class.'">';- $output .= "\n\t\t".'<div class="spb_wrapper latest-tweet-bar-wrap clearfix">';+ $output .= "\n\t".'<div class="spb_sidebar_widget spb_content_element '.$width.$el_class.'">';+ $output .= "\n\t\t".'<div class="spb_wrapper clearfix">'; $output .= "\n\t\t\t".$sidebar_value; $output .= "\n\t\t".'</div> '.$this->endBlockComment('.spb_wrapper'); $output .= "\n\t".'</div> '.$this->endBlockComment($width);

3738394041

424344

373839

4041424344

dantedante // swift-frameworkswift-framework // page-builderpage-builder // builderbuilder // shortcodesshortcodes // sidebar-widget.phpsidebar-widget.php Download patchDownload patchBlameBlame

134135136137

138139

140141142

134135136

137138

139140141142

$tabs_nav .= '<ul class="nav nav-tabs">'; foreach ( $tab_titles as $tab ) { if ($tab_count == 0) {- $tabs_nav .= '<li class="active"><a href="#'. preg_replace("#[[:punct:]]#", "", (strtolower(str_replace(' ', '-', $tab[0])))).'" data-toggle="tab">' . $tab[0] . '</a></li>';+ $tabs_nav .= '<li class="active"><a href="#'. preg_replace("#[[:punct:]]#", "", (strtolower(str_replace(' ', '-', $tab[0])))) } else {- $tabs_nav .= '<li><a href="#'. preg_replace("#[[:punct:]]#", "", (strtolower(str_replace(' ', '-', $tab[0])))).'" data-toggle="tab">' . $tab[0] . '</a></li>'; + $tabs_nav .= '<li><a href="#'. preg_replace("#[[:punct:]]#", "", (strtolower(str_replace(' ', '-', $tab[0])))) .'" data-toggle="tab">' . $tab[0] . '</a></li>'; } $tab_count++; }

dantedante // swift-frameworkswift-framework // page-builderpage-builder // builderbuilder // shortcodesshortcodes // tabs.phptabs.php Download patchDownload patchBlameBlame

function spb_register_assets() { require_once( SPB_SHORTCODES_DIR . 'default.php' ); require_once( SPB_SHORTCODES_DIR . 'column.php' );+ require_once( SPB_SHORTCODES_DIR . 'row.php' ); require_once( SPB_SHORTCODES_DIR . 'accordion.php' ); require_once( SPB_SHORTCODES_DIR . 'tabs.php' ); require_once( SPB_SHORTCODES_DIR . 'tour.php' ); require_once( SPB_SHORTCODES_DIR . 'impact-text.php' );+ require_once( SPB_SHORTCODES_DIR . 'icon-boxes.php' ); require_once( SPB_SHORTCODES_DIR . 'media.php' ); require_once( SPB_SHORTCODES_DIR . 'raw_content.php' ); require_once( SPB_SHORTCODES_DIR . 'portfolio.php' );

323334

35363738

394041

323334353637383940414243

dantedante // swift-frameworkswift-framework // page-builderpage-builder // builderbuilder // spb-includes.phpspb-includes.php Download patchDownload patchBlameBlame

update_post_meta( $menu_item_db_id, '_menu_item_icon', $menu_icon_value ); } - if ( isset( $_REQUEST['menu-item-htmlcontent']) ) {+ if ( isset( $_REQUEST['menu-item-htmlcontent'][$menu_item_db_id]) ) { $menu_htmlcontent_value = $_REQUEST['menu-item-htmlcontent'][$menu_item_db_id]; update_post_meta( $menu_item_db_id, '_menu_item_htmlcontent', $menu_htmlcontent_value ); }

75767778

798081

757677

78798081

update_post_meta( $menu_item_db_id, '_menu_nocolumnspacing', 0 ); } - if ( isset( $_REQUEST['menu-item-width']) ) {+ if ( isset( $_REQUEST['menu-item-width'][$menu_item_db_id]) ) { $menu_width_value = $_REQUEST['menu-item-width'][$menu_item_db_id]; update_post_meta( $menu_item_db_id, '_menu_item_width', $menu_width_value ); }

110111112113

114115116

110111112

113114115116

dantedante // swift-frameworkswift-framework // sf-megamenusf-megamenu // sf-megamenu.phpsf-megamenu.php Download patchDownload patchBlameBlame

635636637

638639640

635636637638639640641642643644645646647648649650651652

<p class="info">Enter the day for which you want the countdown to count to (e.g. 24).</p> </div> <div class="option">+ <label for="countdown-hour"><?php _e('Hour', 'swift-framework-admin'); ?></label>+ <input id="countdown-hour" name="countdown-hour" type="text" value=""/>+ <p class="info">Enter the hour for which you want the countdown to count to (e.g. 12) (24 hour format).</p>+ </div>+ <div class="option">+ <label for="countdown-type"><?php _e('Countdown Type ', 'swift-framework-admin'); ?></label>+ <select id="countdown-type" name="countdown-type">+ <option value="countdown"><?php _e('Count Down', 'swift-framework-admin'); ?></option>+ <option value="countup"><?php _e('Count Up', 'swift-framework-admin'); ?></option>+ </select>+ </div>+ <div class="option"> <label for="countdown-fontsize"><?php _e('Countdown Font Size', 'swift-framework-admin'); ?></label> <select id="countdown-fontsize" name="countdown-fontsize"> <option value="small"><?php _e('Small', 'swift-framework-admin'); ?></option>

dantedante // swift-frameworkswift-framework // sf-shortcodessf-shortcodes // interface.phpinterface.php Download patchDownload patchBlameBlame

var countdown_year = document.getElementById('countdown-year').value; var countdown_month = document.getElementById('countdown-month').value; var countdown_day = document.getElementById('countdown-day').value;+ var countdown_hour = document.getElementById('countdown-hour').value;+ var countdown_type = document.getElementById('countdown-type').value; var countdown_fontsize = document.getElementById('countdown-fontsize').value; var countdown_displaytext = document.getElementById('countdown-displaytext').value;

939495

969798

93949596979899

100

280281282283

284285286

282283284

285286287288

if (shortcode_select == 'shortcode-countdown') { - shortcodeHTML = '[sf_countdown year="' + countdown_year + '" month="' + countdown_month + '" day="' + countdown_day + '" fontsize="' + countdown_fontsize + '" displaytext="' + countdown_displaytext + '"]<br/>';+ shortcodeHTML = '[sf_countdown year="' + countdown_year + '" month="' + countdown_month + '" day="' + countdown_day + '" }

dantedante // swift-frameworkswift-framework // sf-shortcodessf-shortcodes // sf.shortcode.embed.jssf.shortcode.embed.js Download patchDownload patchBlameBlame

111311141115

1116111711181119112011211122

112311241125

11131114111511161117111811191120112111221123

1124112511261127

add_shortcode('sf_supersearch', 'sf_supersearch'); + /* EMAIL ENCODE SHORTCODE+ ================================================== */+ function sf_email_encode_function( $atts, $content ){+ return '<a href="'.antispambot("mailto:".$content).'">'.antispambot($content).'</a>';+ }+ add_shortcode( 'email', 'sf_email_encode_function' );+ /* SWIFT GALLERY SHORTCODE ================================================= */

117911801181

118211831184

1181118211831184118511861187118811891190119111921193

"year" => '', "month" => '', "day" => '',+ "hour" => '0',+ "type" => 'countdown', "fontsize" => 'large', "displaytext" => '' ), $atts)); $countdown_output = ''; - $countdown_output .= '<div class="sf-countdown text-'.$fontsize.'" data-year="'.$year.'" data-month="'.$month.'" data-day="'.$day.'"></div>';+ $countdown_output .= '<div class="sf-countdown text-'.$fontsize.'" data-year="'.$year.'" data-month="'.$month.'" data-day="'.$day.'" if ($displaytext != "") { $countdown_output .= '<h3 class="countdown-subject">'.$displaytext.'</h3>'; }

dantedante // swift-frameworkswift-framework // shortcodes.phpshortcodes.php Download patchDownload patchBlameBlame

// Widget Options $title = apply_filters('widget_title', $instance['title'] ); // Title $number = $instance['number']; // Number of posts to show+ $category = $instance['category']; // Category to show+ + if ($category == "All") {$category = "all";}+ if ($category == "all") {$category = '';}+ $category_slug = str_replace('_', '-', $category); echo $before_widget;

252627

282930

2526272829303132333435

$recent_portfolio = new WP_Query( array( 'post_type' => 'portfolio',- 'posts_per_page' => $number+ 'posts_per_page' => $number,+ 'portfolio-category' => $category_slug, ) );

33343536

373839

383940

4142434445

$instance['title'] = strip_tags( $new_instance['title'] ); $instance['number'] = strip_tags( $new_instance['number'] );+ $instance['category'] = strip_tags( $new_instance['category'] ); return $instance; }

888990

919293

949596979899

100

// Set defaults if instance doesn't already exist if ( $instance ) {- $title = $instance['title'];+ $title = $instance['title']; $number = $instance['number'];+ $category = $instance['category']; } else {- // Defaults- $title = '';- $number = '6';+ // Defaults+ $title = '';+ $number = '5';+ $category = ''; } // The widget form

96979899

100

101102103104

105106107

103104105

106107108109

110111112113114115116

114115116

117118119

123124125126127128129130131132133134135136137138139140

<label for="<?php echo $this->get_field_id('number'); ?>"><?php echo __( 'Number of items to show:', 'swift-framework-admin' ); ?></label> <input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="text" value="<?php echo $number; ?>" size="3" /> </p>+ <p>+ <label for="<?php echo $this->get_field_id('category'); ?>"><?php _e('Category', 'wp_widget_plugin'); ?></label>+ <select name="<?php echo $this->get_field_name('category'); ?>" id="<?php echo $this->get_field_id('category'); ?>" class="">+ <?php+ $options = sf_get_category_list('portfolio-category');+ foreach ($options as $option) {+ echo '<option value="' . $option . '" id="' . $option . '"', $category == $option ? ' selected="selected"' : '', '>', $option, '</option>';+ }+ ?>+ </select>+ </p>+ </p> <?php }

dantedante // swift-frameworkswift-framework // widgetswidgets // widget-portfolio-grid.phpwidget-portfolio-grid.php Download patchDownload patchBlameBlame

// Widget Options $title = apply_filters('widget_title', $instance['title'] ); // Title $number = $instance['number']; // Number of posts to show+ $category = $instance['category']; // Category to show+ + if ($category == "All") {$category = "all";}+ if ($category == "all") {$category = '';}+ $category_slug = str_replace('_', '-', $category); echo $before_widget;

252627

282930

2526272829303132333435

$recent_portfolio = new WP_Query( array( 'post_type' => 'portfolio',- 'posts_per_page' => $number+ 'posts_per_page' => $number,+ 'portfolio-category' => $category_slug, ) );

33343536

373839

383940

4142434445

$instance['title'] = strip_tags( $new_instance['title'] ); $instance['number'] = strip_tags( $new_instance['number'] );+ $instance['category'] = strip_tags( $new_instance['category'] ); return $instance; }

787980

818283

84858687888990

if ( $instance ) { $title = $instance['title']; $number = $instance['number'];+ $category = $instance['category']; } else { // Defaults $title = ''; $number = '5';+ $category = ''; } // The widget form

888990

91929394

959697

9596979899

100101102103104105106

104105106

107108109

113114115116117118119120121122123124125126127128129130

<label for="<?php echo $this->get_field_id('number'); ?>"><?php echo __( 'Number of items to show:', 'swift-framework-admin' ); ?></label> <input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="text" value="<?php echo $number; ?>" size="3" /> </p>+ <p>+ <label for="<?php echo $this->get_field_id('category'); ?>"><?php _e('Category', 'wp_widget_plugin'); ?></label>+ <select name="<?php echo $this->get_field_name('category'); ?>" id="<?php echo $this->get_field_id('category'); ?>" class="">+ <?php+ $options = sf_get_category_list('portfolio-category');+ foreach ($options as $option) {+ echo '<option value="' . $option . '" id="' . $option . '"', $category == $option ? ' selected="selected"' : '', '>', $option, '</option>';+ }+ ?>+ </select>+ </p>+ </p> <?php }

dantedante // swift-frameworkswift-framework // widgetswidgets // widget-portfolio.phpwidget-portfolio.php Download patchDownload patchBlameBlame

// Widget Options $title = apply_filters('widget_title', $instance['title'] ); // Title $number = $instance['number']; // Number of posts to show+ $category = $instance['category']; // Category to show+ + if ($category == "All") {$category = "all";}+ if ($category == "all") {$category = '';}+ $category_slug = str_replace('_', '-', $category); echo $before_widget;

252627

282930

2526272829303132333435

$recent_posts = new WP_Query( array( 'post_type' => 'post',- 'posts_per_page' => $number+ 'posts_per_page' => $number,+ 'category_name' => $category_slug, ) );

33343536

373839

383940

4142434445

$instance['title'] = strip_tags( $new_instance['title'] ); $instance['number'] = strip_tags( $new_instance['number'] );+ $instance['category'] = strip_tags( $new_instance['category'] ); return $instance; }

919293

949596

979899

100101102103

if ( $instance ) { $title = $instance['title']; $number = $instance['number'];+ $category = $instance['category']; } else { // Defaults $title = ''; $number = '5';+ $category = ''; } // The widget form

101102103

104105106107

108109110

108109110111112113114115116117118119

117118119

120121122

126127128129130131132133134135136137138139140141142143

<label for="<?php echo $this->get_field_id('number'); ?>"><?php echo __( 'Number of posts to show:', 'swift-framework-admin'); ?></label> <input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="text" value="<?php echo $number; ?>" size="3" /> </p>+ <p>+ <label for="<?php echo $this->get_field_id('category'); ?>"><?php _e('Category', 'wp_widget_plugin'); ?></label>+ <select name="<?php echo $this->get_field_name('category'); ?>" id="<?php echo $this->get_field_id('category'); ?>" class="">+ <?php+ $options = sf_get_category_list('category');+ foreach ($options as $option) {+ echo '<option value="' . $option . '" id="' . $option . '"', $category == $option ? ' selected="selected"' : '', '>', $option, '</option>';+ }+ ?>+ </select>+ </p>+ </p> <?php }

dantedante // swift-frameworkswift-framework // widgetswidgets // widget-posts.phpwidget-posts.php Download patchDownload patchBlameBlame

27282930

313233

272829

30313233

</div> - <div class="span3">+ <div class="col-sm-3"> <?php woocommerce_cart_totals(); ?>

143144145146

147148149

143144145

146147148149

198199200201

202203204

198199200

201202203204

</div> - <div class="span3">+ <div class="col-sm-3"> <?php woocommerce_cart_totals(); ?>

367368369370

371372373

367368369

370371372373

<div class="row"> - <div class="span9">+ <div class="col-sm-9"> <h3 class="bag-summary"><?php _e('Your selection', 'swiftframework');?> <span>(<?php echo $cart_count; ?>)</span></h3>

<div class="row"> - <div class="span9">+ <div class="col-sm-9"> <h3 class="bag-summary"><?php _e('Your selection', 'swiftframework');?> <span>(<?php echo $cart_count; ?>)</span></h3>

dantedante // woocommercewoocommerce // cartcart // cart.phpcart.php Download patchDownload patchBlameBlame

$args = array( 'post_type' => 'product', 'ignore_sticky_posts' => 1,- 'posts_per_page' => apply_filters( 'woocommerce_cross_sells_total', 2 ),+ 'posts_per_page' => apply_filters( 'woocommerce_cross_sells_total', 4 ), 'no_found_rows' => 1, 'orderby' => 'rand', 'post__in' => $crosssells,

20212223

242526

202122

23242526

$products = new WP_Query( $args ); -$woocommerce_loop['columns'] = apply_filters( 'woocommerce_cross_sells_columns', 2 );+$woocommerce_loop['columns'] = apply_filters( 'woocommerce_cross_sells_columns', 4 ); if ( $products->have_posts() ) : ?>

29303132

333435

293031

32333435

dantedante // woocommercewoocommerce // cartcart // cross-sells.phpcross-sells.php Download patchDownload patchBlameBlame

114115116117118

119120121

114115116

117118119120121

?> <?php if (function_exists('be_previous_post_link') && $has_cat != 0) { ?> <div class="product-navigation">- <div class="nav-previous"><?php be_previous_post_link( '%link', '<i class="ss-navigateright"></i>', true, '', 'product_cat' ); ?></div>- <div class="nav-next"><?php be_next_post_link( '%link', '<i class="ss-navigateleft"></i>', true, '', 'product_cat' ); ?></div>+ <div class="nav-previous"><?php previous_post_link( '%link', '<i class="ss-navigateright"></i>', true, '', 'product_cat' ); ?></div>+ <div class="nav-next"><?php next_post_link( '%link', '<i class="ss-navigateleft"></i>', true, '', 'product_cat' ); ?></div> </div> <?php } ?>

dantedante // woocommercewoocommerce // content-single-product.phpcontent-single-product.php Download patchDownload patchBlameBlame

<?php do_action('woocommerce_before_add_to_cart_form'); ?> - <form action="<?php echo esc_url( $product->add_to_cart_url() ); ?>" class="cart" method="post" enctype='multipart/form-data'>-- <?php do_action('woocommerce_before_add_to_cart_button'); ?>-+ <form class="cart" method="post" enctype='multipart/form-data'>+ <?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>+ <?php if ( ! $product->is_sold_individually() ) woocommerce_quantity_input( array(

29303132333435

363738

293031

323334353637

40414243

444546

394041

424344454647

'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->backorders_allowed() ? '' : $product->get_stock_quantity(), $product ) ) ); ?>- ++ <input type="hidden" name="add-to-cart" value="<?php echo esc_attr( $product->id ); ?>" />+ <?php $button_text = '<i class="ss-cart"></i>' . apply_filters('single_add_to_cart_text', __("Add to shopping bag", "swiftframework"), $product->product_type); ?>

dantedante // woocommercewoocommerce // single-productsingle-product // add-to-cartadd-to-cart // simple.phpsimple.php Download patchDownload patchBlameBlame

616263

646566

6162636465666768697071727374757677

echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<li itemprop="image">%s<a href="%s" itemprop="image" class="woocommerce-main-image zoom" title="%s" alt="%s" data-rel="prettyPhoto[product-gallery]"><i class="ss-expand"></i></a></li>', $image_html, $image_link, $image_title, $image_alt ), $post->ID ); + } else {+ + $image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ), array(+ 'title' => $image_title,+ 'class' => 'product-slider-image'+ ) );+ + + echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<li itemprop="image"><a href="%s" itemprop="image" class="woocommerce-main-image zoom" title="%s" data-rel="prettyPhoto' . $gallery . '">%s</a></li>', $image_link, $image_title, $image ), $post->ID );+ + } }

dantedante // woocommercewoocommerce // single-productsingle-product // product-image.phpproduct-image.php Download patchDownload patchBlameBlame

* Each tab is an array containing title, callback and priority. * @see woocommerce_default_product_tabs() */+function sf_add_desc_tab($tabs = array()) {+ global $post;+ $product_description = get_post_meta($post->ID, 'sf_product_description', true);+ if ($product_description != "") {+ $tabs['description'] = array(+ 'title' => __( 'Description', 'woocommerce' ),+ 'priority' => 10,+ 'callback' => 'woocommerce_product_description_tab'+ );+ }+ return $tabs;+}+add_filter('woocommerce_product_tabs', 'sf_add_desc_tab', 0);+ $tabs = apply_filters( 'woocommerce_product_tabs', array() ); if ( ! empty( $tabs ) ) : ?>

151617

181920

1516171819202122232425262728293031323334

dantedante // woocommercewoocommerce // single-productsingle-product // tabstabs // tabs.phptabs.php Download patchDownload patchBlameBlame

Comments You are not subscribed to this changeset → subscribe

Need help formatting the text?Don’t notify anyone → change

Post comment or Preview

Recommended