Changeset 2397279
- Timestamp:
- 10/10/2020 07:34:35 PM (5 years ago)
- Location:
- dd-lastviewed
- Files:
-
- 2 added
- 4 deleted
- 16 edited
- 1 copied
-
assets/screenshot-1.jpg (added)
-
assets/screenshot-1.png (deleted)
-
assets/screenshot-2.jpg (added)
-
assets/screenshot-2.png (deleted)
-
assets/screenshot-3.png (deleted)
-
assets/screenshot-5.png (deleted)
-
tags/6.0 (copied) (copied from dd-lastviewed/trunk)
-
tags/6.0/css/admin-style.css (modified) (1 diff)
-
tags/6.0/dd_templates/form.php (modified) (5 diffs)
-
tags/6.0/js/ddLastViewedFront.js (modified) (1 diff)
-
tags/6.0/js/ddLastViewedFront.min.js (modified) (1 diff)
-
tags/6.0/js/default.js (modified) (3 diffs)
-
tags/6.0/js/default.min.js (modified) (1 diff)
-
tags/6.0/last-viewed.php (modified) (8 diffs)
-
tags/6.0/readme.txt (modified) (3 diffs)
-
trunk/css/admin-style.css (modified) (1 diff)
-
trunk/dd_templates/form.php (modified) (5 diffs)
-
trunk/js/ddLastViewedFront.js (modified) (1 diff)
-
trunk/js/ddLastViewedFront.min.js (modified) (1 diff)
-
trunk/js/default.js (modified) (3 diffs)
-
trunk/js/default.min.js (modified) (1 diff)
-
trunk/last-viewed.php (modified) (8 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dd-lastviewed/tags/6.0/css/admin-style.css
r2310177 r2397279 1 @font-face{font-family:"dd_icons";src:url("../fonts/custom_dashicons.eot?7k7b29");src:url("../fonts/custom_dashicons.eot?#iefix7k7b29") format("embedded-opentype"),url("../fonts/custom_dashicons.woff?7k7b29") format("woff"),url("../fonts/custom_dashicons.ttf?7k7b29") format("truetype"),url("../fonts/custom_dashicons.svg?7k7b29#custom_dashicons") format("svg");font-weight:normal;font-style:normal}[class^=icon-],[class*=" icon-"]{font-family:"dd_icons";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logobrand:before{content:""}.icon-logo:before{content:""}.icon-brand:before{content:""}.icon-rss:before{content:""}.icon-linkedin:before{content:""}.icon-facebook:before{content:""}.icon-googleplus:before{content:""}.icon-twitter:before{content:""}.icon-list:before{content:""}.icon-search:before{content:""}.icon-uniE60A:before{content:""}.icon-arrow-up:before{content:""}.icon-arrow-down:before{content:""}.icon-arrow-left:before{content:""}.icon-arrow-right:before{content:""}.icon-arrow-up2:before{content:""}.icon-arrow-down2:before{content:""}.icon-arrow-left2:before{content:""}.icon-arrow-right2:before{content:""}.icon-arrow-up3:before{content:""}.icon-arrow-down3:before{content:""}.icon-arrow-left3:before{content:""}.icon-publish:before{content:""}.icon-rocket:before{content:""}.icon-wordpress:before{content:""}.icon-powercord:before{content:""}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, white 50%, #eeeeee 100%);background-image:-o-linear-gradient(top, white 50%, #eeeeee 100%);background-image:linear-gradient(to bottom, white 50%, #eeeeee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF", endColorstr="#FFEEEEEE", GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);background-image:-o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);background-image:linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE", endColorstr="#FFCCCCCC", GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, white 0%, #eeeeee 50%);background-image:-o-linear-gradient(top, white 0%, #eeeeee 50%);background-image:linear-gradient(to bottom, white 0%, #eeeeee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF", endColorstr="#FFEEEEEE", GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eeeeee 50%, white 100%);background-image:-o-linear-gradient(top, #eeeeee 50%, white 100%);background-image:linear-gradient(to bottom, #eeeeee 50%, white 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE", endColorstr="#FFFFFFFF", GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:gray}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}#available-widgets div[id*=dd_last_viewed] .widget-title h3:before,.widgets-sortables div[id*=dd_last_viewed] .widget-title h3:before,#customize-controls div[id*=dd_last_viewed] .widget-title h3:before{font-family:"dd_icons",serif;content:"";margin:0 6px 0 0;float:left}.showItem,.linkItem{margin-right:4px;display:flex}.contentItem{flex-grow:2}.contentSettings{margin: .2em 0 .2em 58px}.contentSettings label{line-height:1.5;display:block}.contentSettings .showTruncate{margin-bottom:.2em}.contentSettings .LV_setting_row{align-items:center;margin:0}.contentSettings .LV_setting_row input{flex-grow:2}.showTitle .contentItem{padding-left:3px}.dd-switch{min-width:28px;width:28px;max-width:28px;overflow:hidden;border:solid 1px #e5e5e5;border-radius:7px;text-decoration:none;cursor:pointer;display:inline-block;vertical-align:middle;margin:0}.dd-switch+input{display:none}.dd-switch .switchHolder{width:40px;height:14px;position:relative;margin-left:-50%;transition:margin .15s;-webkit-transition:margin .15s}.dd-switch .switchHolder .onSquare{width:30px;height:100%;position:absolute;left:-10px;padding:0;box-shadow:none;border:none;z-index:0}.dd-switch .switchHolder .buttonSwitch{position:absolute;left:50%;height:14px;display:block;width:14px;margin-left:-7px;border-radius:50%;padding:0;z-index:2;color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08)}.dd-switch .switchHolder .offSquare{width:30px;height:100%;position:absolute;right:-10px;background:#f1f1f1}.dd-switch .switchHolder .offSquare:hover{background:#e5e5e5}.dd-switch .switchHolder .offSquare:active{background:#c5c5c5}.dd-switch.on .switchHolder{margin-left:1px}.LV_setting_row{margin:1em 0;display:flex;align-items:center}.LV_setting_row input,.LV_setting_row select{margin:0;max-width:100%;width:100%}.showExcerpt{margin-bottom:.2em}.content_rich{display:inline-block;font-size:10px}.content_rich input[type=radio]{min-width:10px;width:10px;height:10px}.content_rich input[type=radio]:checked:before{margin:1px}.button.lv_link{width:16px;height:16px;min-height:16px;min-width:16px;padding:0;margin:0;vertical-align:middle;color:#555;border-color:#555}.button.lv_link:before{-webkit-font-smoothing:antialiased;font-family:"dashIcons",serif;content:"";font-size:12px;display:block;line-height:15px;text-align:center}.button.lv_link.button-primary{color:#fff}.button.lv_link.button-primary:before{font-family:"dashIcons",serif;content:""}.button.lv_link:active,.button.button-primary.lv_link:active{vertical-align:middle}.lv_link+input{display:none}.types-and-terms{width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.donateReview{display:inline-block;width:100%}.collapse-trigger{font-size:11px;opacity:.6;margin-bottom:10px;float:right;display:block}.collapse-content{display:none;width:100%;margin-bottom:10px;font-size:11px;clear:right}.collapse-content.visible{display:block}.collapse-content p{font-size:11px}.notice-customTemplate{background:#fff;border-left:4px solid #00a0d2;padding:1px 6px;display:block;min-width:100%;box-sizing:border-box;font-size:10px}.NumberItems{display:flex;align-items:center}.NumberItems label{margin-right:6px}.NumberItems input[type=number]{width:45px;padding-right:0;flex-grow:2}div[id*=dd_last_viewed] input.select2-search__field{min-height:0;height:auto;line-height:21px}div[id*=dd_last_viewed] input[type=number]{width:45px;padding-right:0}.cookie_lifetime label{line-height:1.5}.cookie_lifetime .LV_setting_row{align-items:center;margin:0 0 1em}.cookie_lifetime .LV_setting_row input[type=number]{width:50px;margin-right:6px}.select2-container{z-index:8}.select2-container--open{z-index:500000}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple.ddlv-exclude-ids,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple.ddlv-exclude-ids{border-radius:4px !important}/*# sourceMappingURL=admin-style.css.map */1 @font-face{font-family:"dd_icons";src:url("../fonts/custom_dashicons.eot?7k7b29");src:url("../fonts/custom_dashicons.eot?#iefix7k7b29") format("embedded-opentype"),url("../fonts/custom_dashicons.woff?7k7b29") format("woff"),url("../fonts/custom_dashicons.ttf?7k7b29") format("truetype"),url("../fonts/custom_dashicons.svg?7k7b29#custom_dashicons") format("svg");font-weight:normal;font-style:normal}[class^=icon-],[class*=" icon-"]{font-family:"dd_icons";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logobrand:before{content:""}.icon-logo:before{content:""}.icon-brand:before{content:""}.icon-rss:before{content:""}.icon-linkedin:before{content:""}.icon-facebook:before{content:""}.icon-googleplus:before{content:""}.icon-twitter:before{content:""}.icon-list:before{content:""}.icon-search:before{content:""}.icon-uniE60A:before{content:""}.icon-arrow-up:before{content:""}.icon-arrow-down:before{content:""}.icon-arrow-left:before{content:""}.icon-arrow-right:before{content:""}.icon-arrow-up2:before{content:""}.icon-arrow-down2:before{content:""}.icon-arrow-left2:before{content:""}.icon-arrow-right2:before{content:""}.icon-arrow-up3:before{content:""}.icon-arrow-down3:before{content:""}.icon-arrow-left3:before{content:""}.icon-publish:before{content:""}.icon-rocket:before{content:""}.icon-wordpress:before{content:""}.icon-powercord:before{content:""}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, white 50%, #eeeeee 100%);background-image:-o-linear-gradient(top, white 50%, #eeeeee 100%);background-image:linear-gradient(to bottom, white 50%, #eeeeee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF", endColorstr="#FFEEEEEE", GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);background-image:-o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);background-image:linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE", endColorstr="#FFCCCCCC", GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, white 0%, #eeeeee 50%);background-image:-o-linear-gradient(top, white 0%, #eeeeee 50%);background-image:linear-gradient(to bottom, white 0%, #eeeeee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF", endColorstr="#FFEEEEEE", GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eeeeee 50%, white 100%);background-image:-o-linear-gradient(top, #eeeeee 50%, white 100%);background-image:linear-gradient(to bottom, #eeeeee 50%, white 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE", endColorstr="#FFFFFFFF", GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:gray}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}#available-widgets div[id*=dd_last_viewed] .widget-title h3:before,.widgets-sortables div[id*=dd_last_viewed] .widget-title h3:before,#customize-controls div[id*=dd_last_viewed] .widget-title h3:before{font-family:"dd_icons",serif;content:"";margin:0 6px 0 0;float:left}.showItem,.linkItem{margin-right:4px;display:flex}.contentItem{flex-grow:2}.contentSettings{margin:-0.8em 0 .2em 35px}.contentSettings label{line-height:1.5;display:block}.contentSettings .showTruncate{margin-bottom:.2em}.contentSettings .LV_setting_row{align-items:center;margin:0}.contentSettings .LV_setting_row input{flex-grow:2}.showTitle .contentItem{padding-left:3px}.dd-switch{min-width:28px;width:28px;max-width:28px;overflow:hidden;border:solid 1px #e5e5e5;border-radius:7px;text-decoration:none;cursor:pointer;display:inline-block;vertical-align:middle;margin:0}.dd-switch+input{display:none}.dd-switch .switchHolder{width:40px;height:14px;position:relative;margin-left:-50%;transition:margin .15s;-webkit-transition:margin .15s}.dd-switch .switchHolder .onSquare{width:30px;height:100%;position:absolute;left:-10px;padding:0;box-shadow:none;border:none;z-index:0}.dd-switch .switchHolder .buttonSwitch{position:absolute;left:50%;height:14px;display:block;width:14px;margin-left:-7px;border-radius:50%;padding:0;z-index:2;color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08)}.dd-switch .switchHolder .offSquare{width:30px;height:100%;position:absolute;right:-10px;background:#f1f1f1}.dd-switch .switchHolder .offSquare:hover{background:#e5e5e5}.dd-switch .switchHolder .offSquare:active{background:#c5c5c5}.dd-switch.on .switchHolder{margin-left:1px}.LV_setting_row{margin:1em 0;display:flex;align-items:center}.LV_setting_row input,.LV_setting_row select{margin:0;max-width:100%;width:100%}.content_rich{display:inline-block;font-size:10px}.content_rich input[type=radio]{min-width:10px;width:10px;height:10px}.content_rich input[type=radio]:checked:before{margin:1px}.button.lv_link{width:16px;height:16px;min-height:16px;min-width:16px;padding:0;margin:0;vertical-align:middle;color:#555;border-color:#555}.button.lv_link:before{-webkit-font-smoothing:antialiased;font-family:"dashIcons",serif;content:"";font-size:12px;display:block;line-height:15px;text-align:center}.button.lv_link.button-primary{color:#fff}.button.lv_link.button-primary:before{font-family:"dashIcons",serif;content:""}.button.lv_link:active,.button.button-primary.lv_link:active{vertical-align:middle}.lv_link+input{display:none}.types-and-terms{width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.donateReview{display:inline-block;width:100%}.js-advancedCookie,.collapse-trigger{font-size:11px;opacity:.6;margin-bottom:10px;float:right;display:block}.collapse-content{display:none;width:100%;margin-bottom:10px;font-size:11px;clear:right}.collapse-content.visible{display:block}.collapse-content p{font-size:11px}.notice-customTemplate{background:#fff;border-left:4px solid #00a0d2;padding:1px 6px;display:block;min-width:100%;box-sizing:border-box;font-size:10px}.NumberItems{display:flex;align-items:center}.NumberItems label{margin-right:6px}.NumberItems input[type=number]{width:45px;padding-right:0;flex-grow:2}div.editwidget input.select2-search__field,div[id*=dd_last_viewed] input.select2-search__field{min-height:0;height:auto;line-height:21px}div.editwidget input[type=number],div[id*=dd_last_viewed] input[type=number]{width:45px;padding-right:0}div.editwidget input[type=number].lifetimeInput,div[id*=dd_last_viewed] input[type=number].lifetimeInput{width:60px;margin-right:6px}.cookie_lifetime label{line-height:1.5}.cookie_lifetime .LV_setting_row{align-items:center;margin:0 0 1em}.cookie_lifetime .LV_setting_row input[type=number]{width:50px;margin-right:6px}.select2-container{z-index:8}.select2-container--open{z-index:500000}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple.ddlv-exclude-ids,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple.ddlv-exclude-ids{border-radius:4px !important}.clearfix:before,.clearfix:after{content:" ";display:table}.clearfix:after{clear:both}.avoid_widget_caching+.contentSettings .LV_setting_row{margin:1em 0}/*# sourceMappingURL=admin-style.css.map */ -
dd-lastviewed/tags/6.0/dd_templates/form.php
r2271970 r2397279 1 1 <?php 2 3 2 $args_custom_types = array( 4 3 'public' => true, … … 36 35 $lastViewed_lv_link_thumb = isset($instance['lastViewed_lv_link_thumb']) ? (bool)$instance['lastViewed_lv_link_thumb'] : false; 37 36 $lastViewed_lv_link_excerpt = isset($instance['lastViewed_lv_link_excerpt']) ? (bool)$instance['lastViewed_lv_link_excerpt'] : false; 38 $cookie_lifetime_checked = isset($instance['cookie_lifetime_checked']) ? (bool)$instance['cookie_lifetime_checked'] : false;39 37 $cookie_lifetime = isset($instance['cookie_lifetime'] ) && $instance['cookie_lifetime'] != 0 ? $instance['cookie_lifetime'] : $this->cookieLifetime; 38 $advanced_cookie_settings_checked = isset($instance['advanced_cookie_settings_checked']) ? (bool)$instance['advanced_cookie_settings_checked'] : false; 39 $avoid_widget_caching_checked = isset($instance['avoid_widget_caching_checked']) ? (bool)$instance['avoid_widget_caching_checked'] : false; 40 40 $cookie_timeformat = esc_attr(isset($instance['cookie_timeformat']) ? $instance['cookie_timeformat'] : $this->cookieFormat); 41 41 $cookie_samesite = isset($instance['cookie_samesite']) ? $instance['cookie_samesite'] : "None"; 42 $cookie_secure = isset($instance['cookie_secure']) ? $instance['cookie_secure'] : false; 42 43 ?> 43 44 <p> … … 255 256 256 257 <hr> 257 <div class="cookie_lifetime"> 258 <?php 259 $checked = $cookie_lifetime_checked == true ? 'checked="checked"' : ''; 260 $value = $cookie_lifetime_checked; 258 259 <div class="advancedCookie LV_setting_row"> 260 <?php 261 $checked = $advanced_cookie_settings_checked == true ? 'checked="checked"' : ''; 262 $value = $advanced_cookie_settings_checked; 261 263 $status = $value == '1' ? 'on' : ''; 262 264 ?> 265 <div class="showItem"> 266 <div class="dd-switch <?php echo $status; ?>"> 267 <div class="switchHolder"> 268 <div class="onSquare button-primary"></div> 269 <div class="buttonSwitch"></div> 270 <div class="offSquare"></div> 271 </div> 272 </div> 273 <input id="<?php echo $this->get_field_id('advanced_cookie_settings_checked'); ?>" name="<?php echo $this->get_field_name('advanced_cookie_settings_checked'); ?>" type="checkbox" <?php echo $checked; ?>/> 274 </div> 275 <div class="contentItem"> 276 Advanced Cookie Settings 277 </div> 278 </div> 279 280 <div class="contentSettings <?php echo $advanced_cookie_settings_checked != true ? 'hidden' : '' ?>"> 263 281 <label><?php _e('Cookie Lifetime:','dd-lastviewed'); ?></label> 282 <div class="LV_setting_row"> 283 <input id="<?php echo $this->get_field_id('cookie_lifetime'); ?>" class="lifetimeInput" type="number" name="<?php echo $this->get_field_name('cookie_lifetime'); ?>" min="1" value="<?php echo $cookie_lifetime ?>"> 284 <select id="<?php echo $this->get_field_id('cookie_timeformat'); ?>" name="<?php echo $this->get_field_name('cookie_timeformat'); ?>"> 285 <?php 286 $timeformat = array( 287 'seconds' => ucfirst(__('seconds','dd-lastviewed')), 288 'minutes' => ucfirst(__('minutes','dd-lastviewed')), 289 'hours' => ucfirst(__('hours','dd-lastviewed')), 290 'days' => ucfirst(__('days','dd-lastviewed')), 291 'years' => ucfirst(__('years','dd-lastviewed')) 292 ); 293 foreach ($timeformat as $format => $translation) { 294 $selected = $cookie_timeformat == $format ? 'selected' : ''; 295 echo '<option value="' . $format . '" ' . $selected . '>' . $translation . '</option>'; 296 } 297 ?> 298 </select> 299 </div> 300 <label for="<?php echo $this->get_field_id('cookie_samesite'); ?>"><?php _e('Same Site:','dd-lastviewed'); ?></label> 301 <div class="LV_setting_row"> 302 <?php 303 304 $sameSiteOptions = array('None', 'Lax', 'Strict'); 305 306 ?> 307 <select id="<?php echo $this->get_field_id('cookie_samesite'); ?>" name="<?php echo $this->get_field_name('cookie_samesite'); ?>"> 308 <?php 309 foreach ($sameSiteOptions as $option) { 310 $selected = $cookie_samesite == $option ? 'selected' : ''; 311 echo '<option value="' . $option . '" ' . $selected . '>' . $option . '</option>'; 312 } 313 ?> 314 </select> 315 </div> 316 <label for="<?php echo $this->get_field_id('cookie_secure'); ?>"><?php _e('Secure:','dd-lastviewed'); ?></label> 317 <div class="LV_setting_row"> 318 <?php 319 320 $secureOptions = array('True' => true, 'False' => false); 321 322 ?> 323 <select id="<?php echo $this->get_field_id('cookie_secure'); ?>" name="<?php echo $this->get_field_name('cookie_secure'); ?>"> 324 <?php 325 foreach ($secureOptions as $key => $option) { 326 $selected = $cookie_secure === $option ? 'selected' : ''; 327 echo '<option value="' . $option . '" ' . $selected . '>' . $key . '</option>'; 328 } 329 ?> 330 </select> 331 </div> 332 </div> 333 <hr> 334 <div class="avoid_widget_caching LV_setting_row"> 335 <?php 336 $checked = $avoid_widget_caching_checked == true ? 'checked="checked"' : ''; 337 $value = $avoid_widget_caching_checked; 338 $status = $value == '1' ? 'on' : ''; 339 ?> 340 <div class="showItem"> 341 <div class="dd-switch <?php echo $status; ?>"> 342 <div class="switchHolder"> 343 <div class="onSquare button-primary"></div> 344 <div class="buttonSwitch"></div> 345 <div class="offSquare"></div> 346 </div> 347 </div> 348 <input id="<?php echo $this->get_field_id('avoid_widget_caching_checked'); ?>" name="<?php echo $this->get_field_name('avoid_widget_caching_checked'); ?>" type="checkbox" <?php echo $checked; ?>/> 349 </div> 350 <div class="contentItem"><?php echo __('Avoid Widget Caching','dd-lastviewed'); ?></div> 351 </div> 352 <div class="contentSettings <?php echo $avoid_widget_caching_checked != true ? 'hidden' : '' ?>"> 353 <p style="font-size: 11px; opacity:0.6"> 354 <?php echo __('Avoid this widget gets cached by any 3th parties. Depends on what kind of cache, configure those settings below, to still get the best performance out of this widget.','dd-lastviewed') ?> 355 </p> 356 <?php 357 $checked = $lastViewed_ajaxLoad == '1' ? 'checked="checked"' : ''; 358 $status = $lastViewed_ajaxLoad == '1' ? 'on' : ''; 359 ?> 264 360 <div class="LV_setting_row"> 265 361 <div class="showItem"> … … 271 367 </div> 272 368 </div> 273 <input id="<?php echo $this->get_field_id('cookie_lifetime_checked'); ?>" name="<?php echo $this->get_field_name('cookie_lifetime_checked'); ?>" type="checkbox" <?php echo $checked; ?>/>274 </div>275 <input id="<?php echo $this->get_field_id('cookie_lifetime'); ?>" type="number" name="<?php echo $this->get_field_name('cookie_lifetime'); ?>" min="1" value="<?php echo $cookie_lifetime ?>">276 <select id="<?php echo $this->get_field_id('cookie_timeformat'); ?>" name="<?php echo $this->get_field_name('cookie_timeformat'); ?>">277 <?php278 $timeformat = array(279 'seconds' => ucfirst(__('seconds','dd-lastviewed')),280 'minutes' => ucfirst(__('minutes','dd-lastviewed')),281 'hours' => ucfirst(__('hours','dd-lastviewed')),282 'days' => ucfirst(__('days','dd-lastviewed')),283 'years' => ucfirst(__('years','dd-lastviewed'))284 );285 foreach ($timeformat as $format => $translation) {286 $selected = $cookie_timeformat == $format ? 'selected' : '';287 echo '<option value="' . $format . '" ' . $selected . '>' . $translation . '</option>';288 }289 ?>290 </select>291 </div>292 </div>293 <hr>294 <div class="ajaxLoad">295 <?php296 echo "<label>".__('Avoid Widget Caching:','dd-lastviewed')."</label>";297 ?>298 <p style="font-size: 11px; opacity:0.6">299 <?php echo __('Avoid this widget gets cached by any 3th parties. Depends on what kind of cache, configure those settings below, to still get the best performance out of this widget.','dd-lastviewed') ?>300 </p>301 <?php302 303 $checked = $lastViewed_ajaxLoad == '1' ? 'checked="checked"' : '';304 $status = $lastViewed_ajaxLoad == '1' ? 'on' : '';305 306 ?>307 <div class="LV_setting_row">308 <div class="showItem">309 <div class="dd-switch <?php echo $status; ?>">310 <div class="switchHolder">311 <div class="onSquare button-primary"></div>312 <div class="buttonSwitch"></div>313 <div class="offSquare"></div>314 </div>315 </div>316 369 <input id="<?php echo $this->get_field_id('lastViewed_ajaxLoad'); ?>" name="<?php echo $this->get_field_name('lastViewed_ajaxLoad'); ?>" type="checkbox" <?php echo $checked; ?> title="Load widget with Ajax"/> 317 370 </div> … … 320 373 </div> 321 374 </div> 322 323 <?php 324 $checked = $lastViewed_cookieByJs == '1' ? 'checked="checked"' : ''; 325 $status = $lastViewed_cookieByJs == '1' ? 'on' : ''; 326 ?> 327 375 <?php 376 $checked = $lastViewed_cookieByJs == '1' ? 'checked="checked"' : ''; 377 $status = $lastViewed_cookieByJs == '1' ? 'on' : ''; 378 ?> 328 379 <div class="LV_setting_row"> 329 380 <div class="showItem"> -
dd-lastviewed/tags/6.0/js/ddLastViewedFront.js
r2271970 r2397279 35 35 $.each( JSON.parse(cookiesList), function( key, cookie ) { 36 36 var expires = (new Date(cookie['expire']* 1000)).toUTCString(); 37 document.cookie = cookie['name'] + "=" + (cookie['list']) + "; expires=" + expires + "; path=" +cookie['path']; 37 var $secure = cookie['secure'] === 'True' ? 'Secure;' : ''; 38 39 if (cookie['advanced_checked']) { 40 document.cookie = cookie['name'] + "=" + (cookie['list']) + "; expires=" + expires + "; path=" +cookie['path'] + "; SameSite="+cookie['sameSite']+";" + $secure; 41 } else { 42 document.cookie = cookie['name'] + "=" + (cookie['list']) + "; expires=" + expires + "; path=" +cookie['path']; 43 } 38 44 }); 39 45 } -
dd-lastviewed/tags/6.0/js/ddLastViewedFront.min.js
r2271970 r2397279 1 !function( e){if(e(document).find(".js-ddLastViewedAjax").each(function(){var t="#"+e(this).attr("id"),a={action:"ajax_load_widget",widgetId:e(this).data("id"),postId:lvData.postID};jQuery.ajax({url:lvData.ajaxurl,type:"POST",data:a,success:function(a){e(t).replaceWith(a)}})}),lvData.postID){var a={action:"ajax_set_cookie_by_js",postId:lvData.postID,postType:lvData.postType};jQuery.ajax({url:lvData.ajaxurl,type:"POST",data:a,success:function(a){e.each(JSON.parse(a),function(a,t){var e=new Date(1e3*t.expire).toUTCString();document.cookie=t.name+"="+t.list+"; expires="+e+"; path="+t.path})}})}}(jQuery);1 !function(t){if(t(document).find(".js-ddLastViewedAjax").each(function(){var e="#"+t(this).attr("id"),a={action:"ajax_load_widget",widgetId:t(this).data("id"),postId:lvData.postID};jQuery.ajax({url:lvData.ajaxurl,type:"POST",data:a,success:function(a){t(e).replaceWith(a)}})}),lvData.postID){var a={action:"ajax_set_cookie_by_js",postId:lvData.postID,postType:lvData.postType};jQuery.ajax({url:lvData.ajaxurl,type:"POST",data:a,success:function(a){t.each(JSON.parse(a),function(a,e){var t=new Date(1e3*e.expire).toUTCString(),i="True"===e.secure?"Secure;":"";e.advanced_checked?document.cookie=e.name+"="+e.list+"; expires="+t+"; path="+e.path+"; SameSite="+e.sameSite+";"+i:document.cookie=e.name+"="+e.list+"; expires="+t+"; path="+e.path})}})}}(jQuery); -
dd-lastviewed/tags/6.0/js/default.js
r2385967 r2397279 21 21 bindSelect(); 22 22 }); 23 // $(document).on('click','.widget[id*="dd_last_viewed-"] .widget-control-remove', function(){ 24 // var id = ($(this).closest('.widget').attr('id').split('-'))[2]; 25 // 26 // console.log(id); 27 // console.log('delte da motherfcker'); 28 // 29 // document.cookie = "cookie_data_lastviewed_widget_" + id + " =; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/" 30 // }); 23 31 $(document).on('click','.dd-switch', function(){ 24 32 $(this).toggleClass('on'); 25 33 $(this).next('input').trigger('click'); 26 34 27 if($(this).next('[id*="lastViewed_showExcerpt"]')) { 35 if (!$(this).hasClass( 'on' )) { 36 var link = $(this).parent().parent().find('.lv_link.button-primary'); 37 if (link.length) { 38 link.trigger('click'); 39 } 40 } 41 42 if($(this).next('[id*="lastViewed_showExcerpt"]').length > 0) { 43 $(this).parent().parent().next('.contentSettings').toggleClass('hidden'); 44 } 45 if($(this).next('[id*="advanced_cookie_settings_checked"]').length > 0) { 46 $(this).parent().parent().next('.contentSettings').toggleClass('hidden'); 47 } 48 if($(this).next('[id*="avoid_widget_caching_checked"]').length > 0) { 28 49 $(this).parent().parent().next('.contentSettings').toggleClass('hidden'); 29 50 } … … 31 52 32 53 $(document).on('click','.lv_link', function(){ 54 var dd_switch_sibling = $(this).parent().parent().find('.dd-switch'); 55 33 56 $(this).toggleClass('button-primary'); 34 57 $(this).next('input').trigger("click"); 58 59 if ($(this).hasClass( 'button-primary' ) && !dd_switch_sibling.hasClass('on')) { 60 dd_switch_sibling.trigger("click"); 61 } 35 62 }); 36 63 … … 41 68 42 69 function bindSelect () { 70 var disableAccessibilityMode = $('.editwidget'); 71 72 if (disableAccessibilityMode.length) { 73 disableAccessibilityMode.find('.js-types-and-terms').select2({ 74 width: '100%', 75 containerCssClass: "ddlv-types-and-terms" 76 }); 77 disableAccessibilityMode.find('.js-exclude-ids').select2({ 78 tags: true, 79 tokenSeparators: [',', ' '], 80 width: '100%', 81 containerCssClass: "ddlv-exclude-ids", 82 maximumSelectionLength: 0, 83 dropdownCss: { 'display': 'none' }, 84 createTag: function (params) { 85 // Don't offset to create a tag if there is no @ symbol 86 if (isNaN(params.term)) { 87 // Return null to disable tag creation 88 return null; 89 } 90 91 return { 92 id: params.term, 93 text: params.term 94 } 95 } 96 }); 97 } 43 98 44 99 var widgetSelector = ".widget[id*=\'dd_last_viewed-\']"; -
dd-lastviewed/tags/6.0/js/default.min.js
r2385967 r2397279 1 !function(s){function e(){ s(".widget[id*='dd_last_viewed-']").each(function(){var t=s(this).find(".js-types-and-terms"),e=s(this).attr("id").split("-"),n=s(this).find(".js-exclude-ids");e=e[2],t.data("select2")||"__i__"===e||(t.select2({width:"100%",containerCssClass:"ddlv-types-and-terms"}),n.select2({tags:!0,tokenSeparators:[","," "],width:"100%",containerCssClass:"ddlv-exclude-ids",maximumSelectionLength:0,dropdownCss:{display:"none"},createTag:function(t){return isNaN(t.term)?null:{id:t.term,text:t.term}}}))})}s(document).ready(function(){e(),s(document).on("keypress",".exclude_ids .select2-search__field",function(t){s(this).val(s(this).val().replace(/[^\d].+/,"")),(isNaN(t.key)&&","!==t.key||!s(this).val()&&","===t.key)&&t.preventDefault()});var t=s(".button-primary").css("background-color");s(document).on("hover",".select2-results__option--highlighted[aria-selected]",function(){s(".select2-results__option").removeAttr("style"),s(this).css("background-color",t)})}),s(document).on("widget-updated widget-added",function(){e()}),s(document).on("click",".dd-switch",function(){s(this).toggleClass("on"),s(this).next("input").trigger("click"),s(this).next('[id*="lastViewed_showExcerpt"]')&&s(this).parent().parent().next(".contentSettings").toggleClass("hidden")}),s(document).on("click",".lv_link",function(){s(this).toggleClass("button-primary"),s(this).next("input").trigger("click")}),s(document).on("click",".js-collapse",function(t){t.preventDefault(),s(this).next().toggleClass("visible")})}(jQuery);1 !function(s){function e(){var t=s(".editwidget");t.length&&(t.find(".js-types-and-terms").select2({width:"100%",containerCssClass:"ddlv-types-and-terms"}),t.find(".js-exclude-ids").select2({tags:!0,tokenSeparators:[","," "],width:"100%",containerCssClass:"ddlv-exclude-ids",maximumSelectionLength:0,dropdownCss:{display:"none"},createTag:function(t){return isNaN(t.term)?null:{id:t.term,text:t.term}}}));s(".widget[id*='dd_last_viewed-']").each(function(){var t=s(this).find(".js-types-and-terms"),e=s(this).attr("id").split("-"),n=s(this).find(".js-exclude-ids");e=e[2],t.data("select2")||"__i__"===e||(t.select2({width:"100%",containerCssClass:"ddlv-types-and-terms"}),n.select2({tags:!0,tokenSeparators:[","," "],width:"100%",containerCssClass:"ddlv-exclude-ids",maximumSelectionLength:0,dropdownCss:{display:"none"},createTag:function(t){return isNaN(t.term)?null:{id:t.term,text:t.term}}}))})}s(document).ready(function(){e(),s(document).on("keypress",".exclude_ids .select2-search__field",function(t){s(this).val(s(this).val().replace(/[^\d].+/,"")),(isNaN(t.key)&&","!==t.key||!s(this).val()&&","===t.key)&&t.preventDefault()});var t=s(".button-primary").css("background-color");s(document).on("hover",".select2-results__option--highlighted[aria-selected]",function(){s(".select2-results__option").removeAttr("style"),s(this).css("background-color",t)})}),s(document).on("widget-updated widget-added",function(){e()}),s(document).on("click",".dd-switch",function(){if(s(this).toggleClass("on"),s(this).next("input").trigger("click"),!s(this).hasClass("on")){var t=s(this).parent().parent().find(".lv_link.button-primary");t.length&&t.trigger("click")}0<s(this).next('[id*="lastViewed_showExcerpt"]').length&&s(this).parent().parent().next(".contentSettings").toggleClass("hidden"),0<s(this).next('[id*="advanced_cookie_settings_checked"]').length&&s(this).parent().parent().next(".contentSettings").toggleClass("hidden"),0<s(this).next('[id*="avoid_widget_caching_checked"]').length&&s(this).parent().parent().next(".contentSettings").toggleClass("hidden")}),s(document).on("click",".lv_link",function(){var t=s(this).parent().parent().find(".dd-switch");s(this).toggleClass("button-primary"),s(this).next("input").trigger("click"),s(this).hasClass("button-primary")&&!t.hasClass("on")&&t.trigger("click")}),s(document).on("click",".js-collapse",function(t){t.preventDefault(),s(this).next().toggleClass("visible")})}(jQuery); -
dd-lastviewed/tags/6.0/last-viewed.php
r2385967 r2397279 2 2 /* 3 3 Plugin Name: DD Last Viewed 4 Version: 5.34 Version: 6.0 5 5 Plugin URI: http://wouterdijkstra.com 6 Description: Shows the users recently viewed/visited Posts, Pages, Custom Types and even Termsin a widget.6 Description: Shows the users recently viewed/visited posts, filtered on types or terms, in a widget. 7 7 Author: Wouter Dijkstra 8 8 Author URI: http://wouterdijkstra.com … … 55 55 private $cookieLifetime = 365; 56 56 private $cookieFormat = 'days'; 57 private $cookieSameSite_default = 'Lax'; 58 private $cookieSecure_default = false; 57 59 private $post_type; 58 60 private $selectedTypesTerms; … … 148 150 $cookieListPhp = ($this->generateCookiesDataObject('php')); 149 151 foreach ($cookieListPhp as $cookie) { 150 setcookie($cookie['name'], $cookie['list'], $cookie['expire'], $cookie['path']); 152 $sameSite = $cookie['sameSite'] ? $cookie['sameSite'] : $this->cookieSameSite_default; 153 $secure = $cookie['secure'] === 'True'; 154 155 if ($cookie['advanced_checked']) { 156 $cookieOptions = array( 157 'expires' => $cookie['expire'], 158 'path' => $cookie['path'], 159 'samesite' => $sameSite, 160 'secure' => $secure 161 ); 162 } else { 163 $cookieOptions = array( 164 'expires' => $cookie['expire'], 165 'path' => $cookie['path'], 166 ); 167 } 168 169 setcookie( $cookie['name'], $cookie['list'], $cookieOptions ); 151 170 } 152 171 } … … 163 182 */ 164 183 function getExpireTime($params){ 165 $ clc = isset($params["cookie_lifetime_checked"]) ? $params["cookie_lifetime_checked"] : false;184 $acsc = isset($params["advanced_cookie_settings_checked"]) ? $params["advanced_cookie_settings_checked"] : false; 166 185 $cl = isset($params["cookie_lifetime"]) ? $params["cookie_lifetime"] : 1; 167 186 $ct = isset($params["cookie_timeformat"]) ? $params["cookie_timeformat"] : 'years'; 168 187 169 return (time() + ($ clc ? $cl * self::time[$ct] : self::time['years']));188 return (time() + ($acsc ? $cl * self::time[$ct] : self::time['years'])); 170 189 } 171 190 … … 353 372 $instance['lastViewed_linkname'] = strip_tags($new_instance['lastViewed_linkname']); 354 373 $instance['lastViewed_showPostTitle'] = (bool)$new_instance['lastViewed_showPostTitle']; 355 $instance['lastViewed_ajaxLoad'] = (bool)$new_instance['lastViewed_ajaxLoad'];356 $instance['lastViewed_cookieByJs'] = (bool)$new_instance['lastViewed_cookieByJs'];357 374 $instance['lastViewed_showThumb'] = (bool)$new_instance['lastViewed_showThumb']; 358 375 $instance['lastViewed_thumbSize'] = strip_tags($new_instance['lastViewed_thumbSize']); … … 370 387 $instance['lastviewed_excl_ids'] = $lastviewed_excl_ids; 371 388 372 $instance[' cookie_lifetime_checked'] = (bool)$new_instance['cookie_lifetime_checked'];373 374 if ($instance[' cookie_lifetime_checked']) {389 $instance['advanced_cookie_settings_checked'] = (bool)$new_instance['advanced_cookie_settings_checked']; 390 391 if ($instance['advanced_cookie_settings_checked']) { 375 392 $instance['cookie_lifetime'] = strip_tags(isset($new_instance['cookie_lifetime']) ? $new_instance['cookie_lifetime'] : $this->cookieLifetime); 376 393 $instance['cookie_timeformat'] = strip_tags($new_instance['cookie_timeformat']); 377 } 378 else { 394 $instance['cookie_samesite'] = strip_tags($new_instance['cookie_samesite']); 395 $instance['cookie_secure'] = (bool)$new_instance['cookie_secure']; 396 } else { 379 397 $instance['cookie_lifetime'] = $this->cookieLifetime; 380 398 $instance['cookie_timeformat'] = $this->cookieFormat; 381 382 } 383 399 $instance['cookie_samesite'] = $this->cookieSameSite_default; 400 $instance['cookie_secure'] = $this->cookieSecure_default; 401 } 402 403 $instance['avoid_widget_caching_checked'] = (bool)$new_instance['avoid_widget_caching_checked']; 404 405 if ($instance['avoid_widget_caching_checked']) { 406 $instance['lastViewed_ajaxLoad'] = (bool)$new_instance['lastViewed_ajaxLoad']; 407 $instance['lastViewed_cookieByJs'] = (bool)$new_instance['lastViewed_cookieByJs']; 408 } else { 409 $instance['lastViewed_ajaxLoad'] = false; 410 $instance['lastViewed_cookieByJs'] = false; 411 } 384 412 return $instance; 385 413 } … … 529 557 $exclude_post = in_array($this->currentPostId, $exclude_ids); //true/false 530 558 559 $advanced_checked = isset($params["advanced_cookie_settings_checked"]) ? $params["advanced_cookie_settings_checked"] : false; 560 $sameSite = isset($params["cookie_samesite"]) ? $params["cookie_samesite"] : $this->cookieSameSite_default; 561 $secure = isset($params["cookie_secure"]) ? $params["cookie_secure"] : $this->cookieSecure_default; 562 531 563 if (!empty($matching_selection) && !$exclude_post) { 532 564 $expire_time = $this->getExpireTime($params); … … 537 569 array_push($newList, $this->currentPostId); 538 570 $newList = implode(",",array_filter( $newList)); 539 $cookie = array('name' => $cookieName, 'list' => $newList, 'expire' => $expire_time, 'path' => "/" ) ;571 $cookie = array('name' => $cookieName, 'list' => $newList, 'expire' => $expire_time, 'path' => "/", 'sameSite' => $sameSite, 'secure' => $secure, 'advanced_checked' => $advanced_checked) ; 540 572 541 573 if ($params['lastViewed_cookieByJs'] == 1) { -
dd-lastviewed/tags/6.0/readme.txt
r2385967 r2397279 2 2 Contributors: Mosterd3d 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5V2C94HQAN63C&lc=US&item_name=Dijkstra%20Design¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted 4 Tags: History, Last Viewed, Recently, visited, customise, woocommerce, posts, custom, posttypes, thumbnail, cookie, widget, recent, visit terms, taxonomies, taxonomy, term, category, template, customise, woo-commerce4 Tags: history, lastviewed, recently, visited, posts viewed recently, customisable, seo, woo-commerce, posts, custom, posttypes, thumbnail, cookie, widget, recent, visit terms, taxonomies, taxonomy, term, category, template, customise, woocommerce 5 5 Requires at least: 3.3 6 6 Tested up to: 5.5.1 7 Stable tag: 5.37 Stable tag: 6.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Shows the visitors recently viewed/visited Posts, Pages, Custom Types and even Termsin a widget.11 Shows the users recently viewed/visited posts, filtered on types or terms, in a widget. 12 12 13 13 == Description == 14 14 15 This plugin contains the lastViewed -widget. This widget shows the users recently viewed/visited Posts, Pages, Custom Types and even Terms in a widget. Very nice to use in combination with Woo-commerce!15 This plugin contains the lastViewed widget. This widget shows the users recently viewed/visited Posts, Pages, Custom Types and even Terms in a widget. Very nice to use in combination with Woo-commerce! 16 16 Using caching plugins? No problem! By 2 easy clicks you can bypass the caching and still get the best performance out of this widget. 17 17 … … 25 25 * Add links to elements 26 26 * Set cookie lifetime 27 * load widget with AJAX 27 * Set cookie same site 28 * Set cookie secure 29 * Set cookie by PHP or JS 30 * load widget with PHP or AJAX 28 31 29 32 … … 51 54 Do you have ideas, questions or issues with LastViewed? Please leave a message in the support forum. 52 55 53 == Screenshots ==54 55 1. screenshot-1.png56 2. screenshot-2.png57 3. screenshot-3.png58 59 56 == Changelog == 57 58 = 6.0 = 59 * Created advanced cookie settings 60 * Extend cookie settings with sameSite options 61 * Extend cookie settings with Secure options 62 * Activate switch if link is activated 63 * Deactivate link if switch is deactivated 64 * Aligned styling "Avoid widget caching" 65 * Fix styling and js on "accessibility mode" 60 66 61 67 = 5.3 = -
dd-lastviewed/trunk/css/admin-style.css
r2310177 r2397279 1 @font-face{font-family:"dd_icons";src:url("../fonts/custom_dashicons.eot?7k7b29");src:url("../fonts/custom_dashicons.eot?#iefix7k7b29") format("embedded-opentype"),url("../fonts/custom_dashicons.woff?7k7b29") format("woff"),url("../fonts/custom_dashicons.ttf?7k7b29") format("truetype"),url("../fonts/custom_dashicons.svg?7k7b29#custom_dashicons") format("svg");font-weight:normal;font-style:normal}[class^=icon-],[class*=" icon-"]{font-family:"dd_icons";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logobrand:before{content:""}.icon-logo:before{content:""}.icon-brand:before{content:""}.icon-rss:before{content:""}.icon-linkedin:before{content:""}.icon-facebook:before{content:""}.icon-googleplus:before{content:""}.icon-twitter:before{content:""}.icon-list:before{content:""}.icon-search:before{content:""}.icon-uniE60A:before{content:""}.icon-arrow-up:before{content:""}.icon-arrow-down:before{content:""}.icon-arrow-left:before{content:""}.icon-arrow-right:before{content:""}.icon-arrow-up2:before{content:""}.icon-arrow-down2:before{content:""}.icon-arrow-left2:before{content:""}.icon-arrow-right2:before{content:""}.icon-arrow-up3:before{content:""}.icon-arrow-down3:before{content:""}.icon-arrow-left3:before{content:""}.icon-publish:before{content:""}.icon-rocket:before{content:""}.icon-wordpress:before{content:""}.icon-powercord:before{content:""}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, white 50%, #eeeeee 100%);background-image:-o-linear-gradient(top, white 50%, #eeeeee 100%);background-image:linear-gradient(to bottom, white 50%, #eeeeee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF", endColorstr="#FFEEEEEE", GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);background-image:-o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);background-image:linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE", endColorstr="#FFCCCCCC", GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, white 0%, #eeeeee 50%);background-image:-o-linear-gradient(top, white 0%, #eeeeee 50%);background-image:linear-gradient(to bottom, white 0%, #eeeeee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF", endColorstr="#FFEEEEEE", GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eeeeee 50%, white 100%);background-image:-o-linear-gradient(top, #eeeeee 50%, white 100%);background-image:linear-gradient(to bottom, #eeeeee 50%, white 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE", endColorstr="#FFFFFFFF", GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:gray}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}#available-widgets div[id*=dd_last_viewed] .widget-title h3:before,.widgets-sortables div[id*=dd_last_viewed] .widget-title h3:before,#customize-controls div[id*=dd_last_viewed] .widget-title h3:before{font-family:"dd_icons",serif;content:"";margin:0 6px 0 0;float:left}.showItem,.linkItem{margin-right:4px;display:flex}.contentItem{flex-grow:2}.contentSettings{margin: .2em 0 .2em 58px}.contentSettings label{line-height:1.5;display:block}.contentSettings .showTruncate{margin-bottom:.2em}.contentSettings .LV_setting_row{align-items:center;margin:0}.contentSettings .LV_setting_row input{flex-grow:2}.showTitle .contentItem{padding-left:3px}.dd-switch{min-width:28px;width:28px;max-width:28px;overflow:hidden;border:solid 1px #e5e5e5;border-radius:7px;text-decoration:none;cursor:pointer;display:inline-block;vertical-align:middle;margin:0}.dd-switch+input{display:none}.dd-switch .switchHolder{width:40px;height:14px;position:relative;margin-left:-50%;transition:margin .15s;-webkit-transition:margin .15s}.dd-switch .switchHolder .onSquare{width:30px;height:100%;position:absolute;left:-10px;padding:0;box-shadow:none;border:none;z-index:0}.dd-switch .switchHolder .buttonSwitch{position:absolute;left:50%;height:14px;display:block;width:14px;margin-left:-7px;border-radius:50%;padding:0;z-index:2;color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08)}.dd-switch .switchHolder .offSquare{width:30px;height:100%;position:absolute;right:-10px;background:#f1f1f1}.dd-switch .switchHolder .offSquare:hover{background:#e5e5e5}.dd-switch .switchHolder .offSquare:active{background:#c5c5c5}.dd-switch.on .switchHolder{margin-left:1px}.LV_setting_row{margin:1em 0;display:flex;align-items:center}.LV_setting_row input,.LV_setting_row select{margin:0;max-width:100%;width:100%}.showExcerpt{margin-bottom:.2em}.content_rich{display:inline-block;font-size:10px}.content_rich input[type=radio]{min-width:10px;width:10px;height:10px}.content_rich input[type=radio]:checked:before{margin:1px}.button.lv_link{width:16px;height:16px;min-height:16px;min-width:16px;padding:0;margin:0;vertical-align:middle;color:#555;border-color:#555}.button.lv_link:before{-webkit-font-smoothing:antialiased;font-family:"dashIcons",serif;content:"";font-size:12px;display:block;line-height:15px;text-align:center}.button.lv_link.button-primary{color:#fff}.button.lv_link.button-primary:before{font-family:"dashIcons",serif;content:""}.button.lv_link:active,.button.button-primary.lv_link:active{vertical-align:middle}.lv_link+input{display:none}.types-and-terms{width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.donateReview{display:inline-block;width:100%}.collapse-trigger{font-size:11px;opacity:.6;margin-bottom:10px;float:right;display:block}.collapse-content{display:none;width:100%;margin-bottom:10px;font-size:11px;clear:right}.collapse-content.visible{display:block}.collapse-content p{font-size:11px}.notice-customTemplate{background:#fff;border-left:4px solid #00a0d2;padding:1px 6px;display:block;min-width:100%;box-sizing:border-box;font-size:10px}.NumberItems{display:flex;align-items:center}.NumberItems label{margin-right:6px}.NumberItems input[type=number]{width:45px;padding-right:0;flex-grow:2}div[id*=dd_last_viewed] input.select2-search__field{min-height:0;height:auto;line-height:21px}div[id*=dd_last_viewed] input[type=number]{width:45px;padding-right:0}.cookie_lifetime label{line-height:1.5}.cookie_lifetime .LV_setting_row{align-items:center;margin:0 0 1em}.cookie_lifetime .LV_setting_row input[type=number]{width:50px;margin-right:6px}.select2-container{z-index:8}.select2-container--open{z-index:500000}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple.ddlv-exclude-ids,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple.ddlv-exclude-ids{border-radius:4px !important}/*# sourceMappingURL=admin-style.css.map */1 @font-face{font-family:"dd_icons";src:url("../fonts/custom_dashicons.eot?7k7b29");src:url("../fonts/custom_dashicons.eot?#iefix7k7b29") format("embedded-opentype"),url("../fonts/custom_dashicons.woff?7k7b29") format("woff"),url("../fonts/custom_dashicons.ttf?7k7b29") format("truetype"),url("../fonts/custom_dashicons.svg?7k7b29#custom_dashicons") format("svg");font-weight:normal;font-style:normal}[class^=icon-],[class*=" icon-"]{font-family:"dd_icons";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logobrand:before{content:""}.icon-logo:before{content:""}.icon-brand:before{content:""}.icon-rss:before{content:""}.icon-linkedin:before{content:""}.icon-facebook:before{content:""}.icon-googleplus:before{content:""}.icon-twitter:before{content:""}.icon-list:before{content:""}.icon-search:before{content:""}.icon-uniE60A:before{content:""}.icon-arrow-up:before{content:""}.icon-arrow-down:before{content:""}.icon-arrow-left:before{content:""}.icon-arrow-right:before{content:""}.icon-arrow-up2:before{content:""}.icon-arrow-down2:before{content:""}.icon-arrow-left2:before{content:""}.icon-arrow-right2:before{content:""}.icon-arrow-up3:before{content:""}.icon-arrow-down3:before{content:""}.icon-arrow-left3:before{content:""}.icon-publish:before{content:""}.icon-rocket:before{content:""}.icon-wordpress:before{content:""}.icon-powercord:before{content:""}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, white 50%, #eeeeee 100%);background-image:-o-linear-gradient(top, white 50%, #eeeeee 100%);background-image:linear-gradient(to bottom, white 50%, #eeeeee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF", endColorstr="#FFEEEEEE", GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);background-image:-o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);background-image:linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE", endColorstr="#FFCCCCCC", GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, white 0%, #eeeeee 50%);background-image:-o-linear-gradient(top, white 0%, #eeeeee 50%);background-image:linear-gradient(to bottom, white 0%, #eeeeee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF", endColorstr="#FFEEEEEE", GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eeeeee 50%, white 100%);background-image:-o-linear-gradient(top, #eeeeee 50%, white 100%);background-image:linear-gradient(to bottom, #eeeeee 50%, white 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE", endColorstr="#FFFFFFFF", GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:gray}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}#available-widgets div[id*=dd_last_viewed] .widget-title h3:before,.widgets-sortables div[id*=dd_last_viewed] .widget-title h3:before,#customize-controls div[id*=dd_last_viewed] .widget-title h3:before{font-family:"dd_icons",serif;content:"";margin:0 6px 0 0;float:left}.showItem,.linkItem{margin-right:4px;display:flex}.contentItem{flex-grow:2}.contentSettings{margin:-0.8em 0 .2em 35px}.contentSettings label{line-height:1.5;display:block}.contentSettings .showTruncate{margin-bottom:.2em}.contentSettings .LV_setting_row{align-items:center;margin:0}.contentSettings .LV_setting_row input{flex-grow:2}.showTitle .contentItem{padding-left:3px}.dd-switch{min-width:28px;width:28px;max-width:28px;overflow:hidden;border:solid 1px #e5e5e5;border-radius:7px;text-decoration:none;cursor:pointer;display:inline-block;vertical-align:middle;margin:0}.dd-switch+input{display:none}.dd-switch .switchHolder{width:40px;height:14px;position:relative;margin-left:-50%;transition:margin .15s;-webkit-transition:margin .15s}.dd-switch .switchHolder .onSquare{width:30px;height:100%;position:absolute;left:-10px;padding:0;box-shadow:none;border:none;z-index:0}.dd-switch .switchHolder .buttonSwitch{position:absolute;left:50%;height:14px;display:block;width:14px;margin-left:-7px;border-radius:50%;padding:0;z-index:2;color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08)}.dd-switch .switchHolder .offSquare{width:30px;height:100%;position:absolute;right:-10px;background:#f1f1f1}.dd-switch .switchHolder .offSquare:hover{background:#e5e5e5}.dd-switch .switchHolder .offSquare:active{background:#c5c5c5}.dd-switch.on .switchHolder{margin-left:1px}.LV_setting_row{margin:1em 0;display:flex;align-items:center}.LV_setting_row input,.LV_setting_row select{margin:0;max-width:100%;width:100%}.content_rich{display:inline-block;font-size:10px}.content_rich input[type=radio]{min-width:10px;width:10px;height:10px}.content_rich input[type=radio]:checked:before{margin:1px}.button.lv_link{width:16px;height:16px;min-height:16px;min-width:16px;padding:0;margin:0;vertical-align:middle;color:#555;border-color:#555}.button.lv_link:before{-webkit-font-smoothing:antialiased;font-family:"dashIcons",serif;content:"";font-size:12px;display:block;line-height:15px;text-align:center}.button.lv_link.button-primary{color:#fff}.button.lv_link.button-primary:before{font-family:"dashIcons",serif;content:""}.button.lv_link:active,.button.button-primary.lv_link:active{vertical-align:middle}.lv_link+input{display:none}.types-and-terms{width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.donateReview{display:inline-block;width:100%}.js-advancedCookie,.collapse-trigger{font-size:11px;opacity:.6;margin-bottom:10px;float:right;display:block}.collapse-content{display:none;width:100%;margin-bottom:10px;font-size:11px;clear:right}.collapse-content.visible{display:block}.collapse-content p{font-size:11px}.notice-customTemplate{background:#fff;border-left:4px solid #00a0d2;padding:1px 6px;display:block;min-width:100%;box-sizing:border-box;font-size:10px}.NumberItems{display:flex;align-items:center}.NumberItems label{margin-right:6px}.NumberItems input[type=number]{width:45px;padding-right:0;flex-grow:2}div.editwidget input.select2-search__field,div[id*=dd_last_viewed] input.select2-search__field{min-height:0;height:auto;line-height:21px}div.editwidget input[type=number],div[id*=dd_last_viewed] input[type=number]{width:45px;padding-right:0}div.editwidget input[type=number].lifetimeInput,div[id*=dd_last_viewed] input[type=number].lifetimeInput{width:60px;margin-right:6px}.cookie_lifetime label{line-height:1.5}.cookie_lifetime .LV_setting_row{align-items:center;margin:0 0 1em}.cookie_lifetime .LV_setting_row input[type=number]{width:50px;margin-right:6px}.select2-container{z-index:8}.select2-container--open{z-index:500000}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple.ddlv-exclude-ids,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple.ddlv-exclude-ids{border-radius:4px !important}.clearfix:before,.clearfix:after{content:" ";display:table}.clearfix:after{clear:both}.avoid_widget_caching+.contentSettings .LV_setting_row{margin:1em 0}/*# sourceMappingURL=admin-style.css.map */ -
dd-lastviewed/trunk/dd_templates/form.php
r2271970 r2397279 1 1 <?php 2 3 2 $args_custom_types = array( 4 3 'public' => true, … … 36 35 $lastViewed_lv_link_thumb = isset($instance['lastViewed_lv_link_thumb']) ? (bool)$instance['lastViewed_lv_link_thumb'] : false; 37 36 $lastViewed_lv_link_excerpt = isset($instance['lastViewed_lv_link_excerpt']) ? (bool)$instance['lastViewed_lv_link_excerpt'] : false; 38 $cookie_lifetime_checked = isset($instance['cookie_lifetime_checked']) ? (bool)$instance['cookie_lifetime_checked'] : false;39 37 $cookie_lifetime = isset($instance['cookie_lifetime'] ) && $instance['cookie_lifetime'] != 0 ? $instance['cookie_lifetime'] : $this->cookieLifetime; 38 $advanced_cookie_settings_checked = isset($instance['advanced_cookie_settings_checked']) ? (bool)$instance['advanced_cookie_settings_checked'] : false; 39 $avoid_widget_caching_checked = isset($instance['avoid_widget_caching_checked']) ? (bool)$instance['avoid_widget_caching_checked'] : false; 40 40 $cookie_timeformat = esc_attr(isset($instance['cookie_timeformat']) ? $instance['cookie_timeformat'] : $this->cookieFormat); 41 41 $cookie_samesite = isset($instance['cookie_samesite']) ? $instance['cookie_samesite'] : "None"; 42 $cookie_secure = isset($instance['cookie_secure']) ? $instance['cookie_secure'] : false; 42 43 ?> 43 44 <p> … … 255 256 256 257 <hr> 257 <div class="cookie_lifetime"> 258 <?php 259 $checked = $cookie_lifetime_checked == true ? 'checked="checked"' : ''; 260 $value = $cookie_lifetime_checked; 258 259 <div class="advancedCookie LV_setting_row"> 260 <?php 261 $checked = $advanced_cookie_settings_checked == true ? 'checked="checked"' : ''; 262 $value = $advanced_cookie_settings_checked; 261 263 $status = $value == '1' ? 'on' : ''; 262 264 ?> 265 <div class="showItem"> 266 <div class="dd-switch <?php echo $status; ?>"> 267 <div class="switchHolder"> 268 <div class="onSquare button-primary"></div> 269 <div class="buttonSwitch"></div> 270 <div class="offSquare"></div> 271 </div> 272 </div> 273 <input id="<?php echo $this->get_field_id('advanced_cookie_settings_checked'); ?>" name="<?php echo $this->get_field_name('advanced_cookie_settings_checked'); ?>" type="checkbox" <?php echo $checked; ?>/> 274 </div> 275 <div class="contentItem"> 276 Advanced Cookie Settings 277 </div> 278 </div> 279 280 <div class="contentSettings <?php echo $advanced_cookie_settings_checked != true ? 'hidden' : '' ?>"> 263 281 <label><?php _e('Cookie Lifetime:','dd-lastviewed'); ?></label> 282 <div class="LV_setting_row"> 283 <input id="<?php echo $this->get_field_id('cookie_lifetime'); ?>" class="lifetimeInput" type="number" name="<?php echo $this->get_field_name('cookie_lifetime'); ?>" min="1" value="<?php echo $cookie_lifetime ?>"> 284 <select id="<?php echo $this->get_field_id('cookie_timeformat'); ?>" name="<?php echo $this->get_field_name('cookie_timeformat'); ?>"> 285 <?php 286 $timeformat = array( 287 'seconds' => ucfirst(__('seconds','dd-lastviewed')), 288 'minutes' => ucfirst(__('minutes','dd-lastviewed')), 289 'hours' => ucfirst(__('hours','dd-lastviewed')), 290 'days' => ucfirst(__('days','dd-lastviewed')), 291 'years' => ucfirst(__('years','dd-lastviewed')) 292 ); 293 foreach ($timeformat as $format => $translation) { 294 $selected = $cookie_timeformat == $format ? 'selected' : ''; 295 echo '<option value="' . $format . '" ' . $selected . '>' . $translation . '</option>'; 296 } 297 ?> 298 </select> 299 </div> 300 <label for="<?php echo $this->get_field_id('cookie_samesite'); ?>"><?php _e('Same Site:','dd-lastviewed'); ?></label> 301 <div class="LV_setting_row"> 302 <?php 303 304 $sameSiteOptions = array('None', 'Lax', 'Strict'); 305 306 ?> 307 <select id="<?php echo $this->get_field_id('cookie_samesite'); ?>" name="<?php echo $this->get_field_name('cookie_samesite'); ?>"> 308 <?php 309 foreach ($sameSiteOptions as $option) { 310 $selected = $cookie_samesite == $option ? 'selected' : ''; 311 echo '<option value="' . $option . '" ' . $selected . '>' . $option . '</option>'; 312 } 313 ?> 314 </select> 315 </div> 316 <label for="<?php echo $this->get_field_id('cookie_secure'); ?>"><?php _e('Secure:','dd-lastviewed'); ?></label> 317 <div class="LV_setting_row"> 318 <?php 319 320 $secureOptions = array('True' => true, 'False' => false); 321 322 ?> 323 <select id="<?php echo $this->get_field_id('cookie_secure'); ?>" name="<?php echo $this->get_field_name('cookie_secure'); ?>"> 324 <?php 325 foreach ($secureOptions as $key => $option) { 326 $selected = $cookie_secure === $option ? 'selected' : ''; 327 echo '<option value="' . $option . '" ' . $selected . '>' . $key . '</option>'; 328 } 329 ?> 330 </select> 331 </div> 332 </div> 333 <hr> 334 <div class="avoid_widget_caching LV_setting_row"> 335 <?php 336 $checked = $avoid_widget_caching_checked == true ? 'checked="checked"' : ''; 337 $value = $avoid_widget_caching_checked; 338 $status = $value == '1' ? 'on' : ''; 339 ?> 340 <div class="showItem"> 341 <div class="dd-switch <?php echo $status; ?>"> 342 <div class="switchHolder"> 343 <div class="onSquare button-primary"></div> 344 <div class="buttonSwitch"></div> 345 <div class="offSquare"></div> 346 </div> 347 </div> 348 <input id="<?php echo $this->get_field_id('avoid_widget_caching_checked'); ?>" name="<?php echo $this->get_field_name('avoid_widget_caching_checked'); ?>" type="checkbox" <?php echo $checked; ?>/> 349 </div> 350 <div class="contentItem"><?php echo __('Avoid Widget Caching','dd-lastviewed'); ?></div> 351 </div> 352 <div class="contentSettings <?php echo $avoid_widget_caching_checked != true ? 'hidden' : '' ?>"> 353 <p style="font-size: 11px; opacity:0.6"> 354 <?php echo __('Avoid this widget gets cached by any 3th parties. Depends on what kind of cache, configure those settings below, to still get the best performance out of this widget.','dd-lastviewed') ?> 355 </p> 356 <?php 357 $checked = $lastViewed_ajaxLoad == '1' ? 'checked="checked"' : ''; 358 $status = $lastViewed_ajaxLoad == '1' ? 'on' : ''; 359 ?> 264 360 <div class="LV_setting_row"> 265 361 <div class="showItem"> … … 271 367 </div> 272 368 </div> 273 <input id="<?php echo $this->get_field_id('cookie_lifetime_checked'); ?>" name="<?php echo $this->get_field_name('cookie_lifetime_checked'); ?>" type="checkbox" <?php echo $checked; ?>/>274 </div>275 <input id="<?php echo $this->get_field_id('cookie_lifetime'); ?>" type="number" name="<?php echo $this->get_field_name('cookie_lifetime'); ?>" min="1" value="<?php echo $cookie_lifetime ?>">276 <select id="<?php echo $this->get_field_id('cookie_timeformat'); ?>" name="<?php echo $this->get_field_name('cookie_timeformat'); ?>">277 <?php278 $timeformat = array(279 'seconds' => ucfirst(__('seconds','dd-lastviewed')),280 'minutes' => ucfirst(__('minutes','dd-lastviewed')),281 'hours' => ucfirst(__('hours','dd-lastviewed')),282 'days' => ucfirst(__('days','dd-lastviewed')),283 'years' => ucfirst(__('years','dd-lastviewed'))284 );285 foreach ($timeformat as $format => $translation) {286 $selected = $cookie_timeformat == $format ? 'selected' : '';287 echo '<option value="' . $format . '" ' . $selected . '>' . $translation . '</option>';288 }289 ?>290 </select>291 </div>292 </div>293 <hr>294 <div class="ajaxLoad">295 <?php296 echo "<label>".__('Avoid Widget Caching:','dd-lastviewed')."</label>";297 ?>298 <p style="font-size: 11px; opacity:0.6">299 <?php echo __('Avoid this widget gets cached by any 3th parties. Depends on what kind of cache, configure those settings below, to still get the best performance out of this widget.','dd-lastviewed') ?>300 </p>301 <?php302 303 $checked = $lastViewed_ajaxLoad == '1' ? 'checked="checked"' : '';304 $status = $lastViewed_ajaxLoad == '1' ? 'on' : '';305 306 ?>307 <div class="LV_setting_row">308 <div class="showItem">309 <div class="dd-switch <?php echo $status; ?>">310 <div class="switchHolder">311 <div class="onSquare button-primary"></div>312 <div class="buttonSwitch"></div>313 <div class="offSquare"></div>314 </div>315 </div>316 369 <input id="<?php echo $this->get_field_id('lastViewed_ajaxLoad'); ?>" name="<?php echo $this->get_field_name('lastViewed_ajaxLoad'); ?>" type="checkbox" <?php echo $checked; ?> title="Load widget with Ajax"/> 317 370 </div> … … 320 373 </div> 321 374 </div> 322 323 <?php 324 $checked = $lastViewed_cookieByJs == '1' ? 'checked="checked"' : ''; 325 $status = $lastViewed_cookieByJs == '1' ? 'on' : ''; 326 ?> 327 375 <?php 376 $checked = $lastViewed_cookieByJs == '1' ? 'checked="checked"' : ''; 377 $status = $lastViewed_cookieByJs == '1' ? 'on' : ''; 378 ?> 328 379 <div class="LV_setting_row"> 329 380 <div class="showItem"> -
dd-lastviewed/trunk/js/ddLastViewedFront.js
r2271970 r2397279 35 35 $.each( JSON.parse(cookiesList), function( key, cookie ) { 36 36 var expires = (new Date(cookie['expire']* 1000)).toUTCString(); 37 document.cookie = cookie['name'] + "=" + (cookie['list']) + "; expires=" + expires + "; path=" +cookie['path']; 37 var $secure = cookie['secure'] === 'True' ? 'Secure;' : ''; 38 39 if (cookie['advanced_checked']) { 40 document.cookie = cookie['name'] + "=" + (cookie['list']) + "; expires=" + expires + "; path=" +cookie['path'] + "; SameSite="+cookie['sameSite']+";" + $secure; 41 } else { 42 document.cookie = cookie['name'] + "=" + (cookie['list']) + "; expires=" + expires + "; path=" +cookie['path']; 43 } 38 44 }); 39 45 } -
dd-lastviewed/trunk/js/ddLastViewedFront.min.js
r2271970 r2397279 1 !function( e){if(e(document).find(".js-ddLastViewedAjax").each(function(){var t="#"+e(this).attr("id"),a={action:"ajax_load_widget",widgetId:e(this).data("id"),postId:lvData.postID};jQuery.ajax({url:lvData.ajaxurl,type:"POST",data:a,success:function(a){e(t).replaceWith(a)}})}),lvData.postID){var a={action:"ajax_set_cookie_by_js",postId:lvData.postID,postType:lvData.postType};jQuery.ajax({url:lvData.ajaxurl,type:"POST",data:a,success:function(a){e.each(JSON.parse(a),function(a,t){var e=new Date(1e3*t.expire).toUTCString();document.cookie=t.name+"="+t.list+"; expires="+e+"; path="+t.path})}})}}(jQuery);1 !function(t){if(t(document).find(".js-ddLastViewedAjax").each(function(){var e="#"+t(this).attr("id"),a={action:"ajax_load_widget",widgetId:t(this).data("id"),postId:lvData.postID};jQuery.ajax({url:lvData.ajaxurl,type:"POST",data:a,success:function(a){t(e).replaceWith(a)}})}),lvData.postID){var a={action:"ajax_set_cookie_by_js",postId:lvData.postID,postType:lvData.postType};jQuery.ajax({url:lvData.ajaxurl,type:"POST",data:a,success:function(a){t.each(JSON.parse(a),function(a,e){var t=new Date(1e3*e.expire).toUTCString(),i="True"===e.secure?"Secure;":"";e.advanced_checked?document.cookie=e.name+"="+e.list+"; expires="+t+"; path="+e.path+"; SameSite="+e.sameSite+";"+i:document.cookie=e.name+"="+e.list+"; expires="+t+"; path="+e.path})}})}}(jQuery); -
dd-lastviewed/trunk/js/default.js
r2385967 r2397279 21 21 bindSelect(); 22 22 }); 23 // $(document).on('click','.widget[id*="dd_last_viewed-"] .widget-control-remove', function(){ 24 // var id = ($(this).closest('.widget').attr('id').split('-'))[2]; 25 // 26 // console.log(id); 27 // console.log('delte da motherfcker'); 28 // 29 // document.cookie = "cookie_data_lastviewed_widget_" + id + " =; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/" 30 // }); 23 31 $(document).on('click','.dd-switch', function(){ 24 32 $(this).toggleClass('on'); 25 33 $(this).next('input').trigger('click'); 26 34 27 if($(this).next('[id*="lastViewed_showExcerpt"]')) { 35 if (!$(this).hasClass( 'on' )) { 36 var link = $(this).parent().parent().find('.lv_link.button-primary'); 37 if (link.length) { 38 link.trigger('click'); 39 } 40 } 41 42 if($(this).next('[id*="lastViewed_showExcerpt"]').length > 0) { 43 $(this).parent().parent().next('.contentSettings').toggleClass('hidden'); 44 } 45 if($(this).next('[id*="advanced_cookie_settings_checked"]').length > 0) { 46 $(this).parent().parent().next('.contentSettings').toggleClass('hidden'); 47 } 48 if($(this).next('[id*="avoid_widget_caching_checked"]').length > 0) { 28 49 $(this).parent().parent().next('.contentSettings').toggleClass('hidden'); 29 50 } … … 31 52 32 53 $(document).on('click','.lv_link', function(){ 54 var dd_switch_sibling = $(this).parent().parent().find('.dd-switch'); 55 33 56 $(this).toggleClass('button-primary'); 34 57 $(this).next('input').trigger("click"); 58 59 if ($(this).hasClass( 'button-primary' ) && !dd_switch_sibling.hasClass('on')) { 60 dd_switch_sibling.trigger("click"); 61 } 35 62 }); 36 63 … … 41 68 42 69 function bindSelect () { 70 var disableAccessibilityMode = $('.editwidget'); 71 72 if (disableAccessibilityMode.length) { 73 disableAccessibilityMode.find('.js-types-and-terms').select2({ 74 width: '100%', 75 containerCssClass: "ddlv-types-and-terms" 76 }); 77 disableAccessibilityMode.find('.js-exclude-ids').select2({ 78 tags: true, 79 tokenSeparators: [',', ' '], 80 width: '100%', 81 containerCssClass: "ddlv-exclude-ids", 82 maximumSelectionLength: 0, 83 dropdownCss: { 'display': 'none' }, 84 createTag: function (params) { 85 // Don't offset to create a tag if there is no @ symbol 86 if (isNaN(params.term)) { 87 // Return null to disable tag creation 88 return null; 89 } 90 91 return { 92 id: params.term, 93 text: params.term 94 } 95 } 96 }); 97 } 43 98 44 99 var widgetSelector = ".widget[id*=\'dd_last_viewed-\']"; -
dd-lastviewed/trunk/js/default.min.js
r2385967 r2397279 1 !function(s){function e(){ s(".widget[id*='dd_last_viewed-']").each(function(){var t=s(this).find(".js-types-and-terms"),e=s(this).attr("id").split("-"),n=s(this).find(".js-exclude-ids");e=e[2],t.data("select2")||"__i__"===e||(t.select2({width:"100%",containerCssClass:"ddlv-types-and-terms"}),n.select2({tags:!0,tokenSeparators:[","," "],width:"100%",containerCssClass:"ddlv-exclude-ids",maximumSelectionLength:0,dropdownCss:{display:"none"},createTag:function(t){return isNaN(t.term)?null:{id:t.term,text:t.term}}}))})}s(document).ready(function(){e(),s(document).on("keypress",".exclude_ids .select2-search__field",function(t){s(this).val(s(this).val().replace(/[^\d].+/,"")),(isNaN(t.key)&&","!==t.key||!s(this).val()&&","===t.key)&&t.preventDefault()});var t=s(".button-primary").css("background-color");s(document).on("hover",".select2-results__option--highlighted[aria-selected]",function(){s(".select2-results__option").removeAttr("style"),s(this).css("background-color",t)})}),s(document).on("widget-updated widget-added",function(){e()}),s(document).on("click",".dd-switch",function(){s(this).toggleClass("on"),s(this).next("input").trigger("click"),s(this).next('[id*="lastViewed_showExcerpt"]')&&s(this).parent().parent().next(".contentSettings").toggleClass("hidden")}),s(document).on("click",".lv_link",function(){s(this).toggleClass("button-primary"),s(this).next("input").trigger("click")}),s(document).on("click",".js-collapse",function(t){t.preventDefault(),s(this).next().toggleClass("visible")})}(jQuery);1 !function(s){function e(){var t=s(".editwidget");t.length&&(t.find(".js-types-and-terms").select2({width:"100%",containerCssClass:"ddlv-types-and-terms"}),t.find(".js-exclude-ids").select2({tags:!0,tokenSeparators:[","," "],width:"100%",containerCssClass:"ddlv-exclude-ids",maximumSelectionLength:0,dropdownCss:{display:"none"},createTag:function(t){return isNaN(t.term)?null:{id:t.term,text:t.term}}}));s(".widget[id*='dd_last_viewed-']").each(function(){var t=s(this).find(".js-types-and-terms"),e=s(this).attr("id").split("-"),n=s(this).find(".js-exclude-ids");e=e[2],t.data("select2")||"__i__"===e||(t.select2({width:"100%",containerCssClass:"ddlv-types-and-terms"}),n.select2({tags:!0,tokenSeparators:[","," "],width:"100%",containerCssClass:"ddlv-exclude-ids",maximumSelectionLength:0,dropdownCss:{display:"none"},createTag:function(t){return isNaN(t.term)?null:{id:t.term,text:t.term}}}))})}s(document).ready(function(){e(),s(document).on("keypress",".exclude_ids .select2-search__field",function(t){s(this).val(s(this).val().replace(/[^\d].+/,"")),(isNaN(t.key)&&","!==t.key||!s(this).val()&&","===t.key)&&t.preventDefault()});var t=s(".button-primary").css("background-color");s(document).on("hover",".select2-results__option--highlighted[aria-selected]",function(){s(".select2-results__option").removeAttr("style"),s(this).css("background-color",t)})}),s(document).on("widget-updated widget-added",function(){e()}),s(document).on("click",".dd-switch",function(){if(s(this).toggleClass("on"),s(this).next("input").trigger("click"),!s(this).hasClass("on")){var t=s(this).parent().parent().find(".lv_link.button-primary");t.length&&t.trigger("click")}0<s(this).next('[id*="lastViewed_showExcerpt"]').length&&s(this).parent().parent().next(".contentSettings").toggleClass("hidden"),0<s(this).next('[id*="advanced_cookie_settings_checked"]').length&&s(this).parent().parent().next(".contentSettings").toggleClass("hidden"),0<s(this).next('[id*="avoid_widget_caching_checked"]').length&&s(this).parent().parent().next(".contentSettings").toggleClass("hidden")}),s(document).on("click",".lv_link",function(){var t=s(this).parent().parent().find(".dd-switch");s(this).toggleClass("button-primary"),s(this).next("input").trigger("click"),s(this).hasClass("button-primary")&&!t.hasClass("on")&&t.trigger("click")}),s(document).on("click",".js-collapse",function(t){t.preventDefault(),s(this).next().toggleClass("visible")})}(jQuery); -
dd-lastviewed/trunk/last-viewed.php
r2385967 r2397279 2 2 /* 3 3 Plugin Name: DD Last Viewed 4 Version: 5.34 Version: 6.0 5 5 Plugin URI: http://wouterdijkstra.com 6 Description: Shows the users recently viewed/visited Posts, Pages, Custom Types and even Termsin a widget.6 Description: Shows the users recently viewed/visited posts, filtered on types or terms, in a widget. 7 7 Author: Wouter Dijkstra 8 8 Author URI: http://wouterdijkstra.com … … 55 55 private $cookieLifetime = 365; 56 56 private $cookieFormat = 'days'; 57 private $cookieSameSite_default = 'Lax'; 58 private $cookieSecure_default = false; 57 59 private $post_type; 58 60 private $selectedTypesTerms; … … 148 150 $cookieListPhp = ($this->generateCookiesDataObject('php')); 149 151 foreach ($cookieListPhp as $cookie) { 150 setcookie($cookie['name'], $cookie['list'], $cookie['expire'], $cookie['path']); 152 $sameSite = $cookie['sameSite'] ? $cookie['sameSite'] : $this->cookieSameSite_default; 153 $secure = $cookie['secure'] === 'True'; 154 155 if ($cookie['advanced_checked']) { 156 $cookieOptions = array( 157 'expires' => $cookie['expire'], 158 'path' => $cookie['path'], 159 'samesite' => $sameSite, 160 'secure' => $secure 161 ); 162 } else { 163 $cookieOptions = array( 164 'expires' => $cookie['expire'], 165 'path' => $cookie['path'], 166 ); 167 } 168 169 setcookie( $cookie['name'], $cookie['list'], $cookieOptions ); 151 170 } 152 171 } … … 163 182 */ 164 183 function getExpireTime($params){ 165 $ clc = isset($params["cookie_lifetime_checked"]) ? $params["cookie_lifetime_checked"] : false;184 $acsc = isset($params["advanced_cookie_settings_checked"]) ? $params["advanced_cookie_settings_checked"] : false; 166 185 $cl = isset($params["cookie_lifetime"]) ? $params["cookie_lifetime"] : 1; 167 186 $ct = isset($params["cookie_timeformat"]) ? $params["cookie_timeformat"] : 'years'; 168 187 169 return (time() + ($ clc ? $cl * self::time[$ct] : self::time['years']));188 return (time() + ($acsc ? $cl * self::time[$ct] : self::time['years'])); 170 189 } 171 190 … … 353 372 $instance['lastViewed_linkname'] = strip_tags($new_instance['lastViewed_linkname']); 354 373 $instance['lastViewed_showPostTitle'] = (bool)$new_instance['lastViewed_showPostTitle']; 355 $instance['lastViewed_ajaxLoad'] = (bool)$new_instance['lastViewed_ajaxLoad'];356 $instance['lastViewed_cookieByJs'] = (bool)$new_instance['lastViewed_cookieByJs'];357 374 $instance['lastViewed_showThumb'] = (bool)$new_instance['lastViewed_showThumb']; 358 375 $instance['lastViewed_thumbSize'] = strip_tags($new_instance['lastViewed_thumbSize']); … … 370 387 $instance['lastviewed_excl_ids'] = $lastviewed_excl_ids; 371 388 372 $instance[' cookie_lifetime_checked'] = (bool)$new_instance['cookie_lifetime_checked'];373 374 if ($instance[' cookie_lifetime_checked']) {389 $instance['advanced_cookie_settings_checked'] = (bool)$new_instance['advanced_cookie_settings_checked']; 390 391 if ($instance['advanced_cookie_settings_checked']) { 375 392 $instance['cookie_lifetime'] = strip_tags(isset($new_instance['cookie_lifetime']) ? $new_instance['cookie_lifetime'] : $this->cookieLifetime); 376 393 $instance['cookie_timeformat'] = strip_tags($new_instance['cookie_timeformat']); 377 } 378 else { 394 $instance['cookie_samesite'] = strip_tags($new_instance['cookie_samesite']); 395 $instance['cookie_secure'] = (bool)$new_instance['cookie_secure']; 396 } else { 379 397 $instance['cookie_lifetime'] = $this->cookieLifetime; 380 398 $instance['cookie_timeformat'] = $this->cookieFormat; 381 382 } 383 399 $instance['cookie_samesite'] = $this->cookieSameSite_default; 400 $instance['cookie_secure'] = $this->cookieSecure_default; 401 } 402 403 $instance['avoid_widget_caching_checked'] = (bool)$new_instance['avoid_widget_caching_checked']; 404 405 if ($instance['avoid_widget_caching_checked']) { 406 $instance['lastViewed_ajaxLoad'] = (bool)$new_instance['lastViewed_ajaxLoad']; 407 $instance['lastViewed_cookieByJs'] = (bool)$new_instance['lastViewed_cookieByJs']; 408 } else { 409 $instance['lastViewed_ajaxLoad'] = false; 410 $instance['lastViewed_cookieByJs'] = false; 411 } 384 412 return $instance; 385 413 } … … 529 557 $exclude_post = in_array($this->currentPostId, $exclude_ids); //true/false 530 558 559 $advanced_checked = isset($params["advanced_cookie_settings_checked"]) ? $params["advanced_cookie_settings_checked"] : false; 560 $sameSite = isset($params["cookie_samesite"]) ? $params["cookie_samesite"] : $this->cookieSameSite_default; 561 $secure = isset($params["cookie_secure"]) ? $params["cookie_secure"] : $this->cookieSecure_default; 562 531 563 if (!empty($matching_selection) && !$exclude_post) { 532 564 $expire_time = $this->getExpireTime($params); … … 537 569 array_push($newList, $this->currentPostId); 538 570 $newList = implode(",",array_filter( $newList)); 539 $cookie = array('name' => $cookieName, 'list' => $newList, 'expire' => $expire_time, 'path' => "/" ) ;571 $cookie = array('name' => $cookieName, 'list' => $newList, 'expire' => $expire_time, 'path' => "/", 'sameSite' => $sameSite, 'secure' => $secure, 'advanced_checked' => $advanced_checked) ; 540 572 541 573 if ($params['lastViewed_cookieByJs'] == 1) { -
dd-lastviewed/trunk/readme.txt
r2385967 r2397279 2 2 Contributors: Mosterd3d 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5V2C94HQAN63C&lc=US&item_name=Dijkstra%20Design¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted 4 Tags: History, Last Viewed, Recently, visited, customise, woocommerce, posts, custom, posttypes, thumbnail, cookie, widget, recent, visit terms, taxonomies, taxonomy, term, category, template, customise, woo-commerce4 Tags: history, lastviewed, recently, visited, posts viewed recently, customisable, seo, woo-commerce, posts, custom, posttypes, thumbnail, cookie, widget, recent, visit terms, taxonomies, taxonomy, term, category, template, customise, woocommerce 5 5 Requires at least: 3.3 6 6 Tested up to: 5.5.1 7 Stable tag: 5.37 Stable tag: 6.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Shows the visitors recently viewed/visited Posts, Pages, Custom Types and even Termsin a widget.11 Shows the users recently viewed/visited posts, filtered on types or terms, in a widget. 12 12 13 13 == Description == 14 14 15 This plugin contains the lastViewed -widget. This widget shows the users recently viewed/visited Posts, Pages, Custom Types and even Terms in a widget. Very nice to use in combination with Woo-commerce!15 This plugin contains the lastViewed widget. This widget shows the users recently viewed/visited Posts, Pages, Custom Types and even Terms in a widget. Very nice to use in combination with Woo-commerce! 16 16 Using caching plugins? No problem! By 2 easy clicks you can bypass the caching and still get the best performance out of this widget. 17 17 … … 25 25 * Add links to elements 26 26 * Set cookie lifetime 27 * load widget with AJAX 27 * Set cookie same site 28 * Set cookie secure 29 * Set cookie by PHP or JS 30 * load widget with PHP or AJAX 28 31 29 32 … … 51 54 Do you have ideas, questions or issues with LastViewed? Please leave a message in the support forum. 52 55 53 == Screenshots ==54 55 1. screenshot-1.png56 2. screenshot-2.png57 3. screenshot-3.png58 59 56 == Changelog == 57 58 = 6.0 = 59 * Created advanced cookie settings 60 * Extend cookie settings with sameSite options 61 * Extend cookie settings with Secure options 62 * Activate switch if link is activated 63 * Deactivate link if switch is deactivated 64 * Aligned styling "Avoid widget caching" 65 * Fix styling and js on "accessibility mode" 60 66 61 67 = 5.3 =
Note: See TracChangeset
for help on using the changeset viewer.