Nested Pages - Version 1.1.4

Version Description

  • Password/Private functionality added to page quick edit
  • Flat taxonomy support added to page quick edit
  • Quick edit UI enhancements
  • Cross-domain icon font issue addressed
Download this release

Release Info

Developer kylephillips
Plugin Icon 128x128 Nested Pages
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.3 to 1.1.4

assets/css/nestedpages.css CHANGED
@@ -1 +1 @@
1
- body{-webkit-animation-delay:0.1s;-webkit-animation-name:fontfix;-webkit-animation-duration:0.1s;-webkit-animation-iteration-count:1;-webkit-animation-timing-function:linear;}@-webkit-keyframes fontfix{from{opacity:1;}to{opacity:1;}}@font-face{font-family:'nestedpages';src:url('fonts/nestedpages.eot?-cjbqo6');src:url('fonts/nestedpages.eot?#iefix-cjbqo6') format('embedded-opentype'),url('fonts/nestedpages.woff?-cjbqo6') format('woff'),url('fonts/nestedpages.ttf?-cjbqo6') format('truetype'),url('fonts/nestedpages.svg?-cjbqo6#nestedpages') format('svg');font-weight:normal;font-style:normal;}[class^="np-icon-"],[class*=" np-icon-"]{font-family:'nestedpages';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;}.np-icon-no:before{content:"\e601";}.np-icon-yes:before{content:"\e602";}.np-icon-menu:before{content:"\e603";}.np-icon-arrow-down:before{content:"\e604";}.np-icon-arrow-right:before{content:"\e605";}.np-icon-sub-menu:before{content:"\e600";}.np-icon-arrows-alt:before{content:"\f0b2";}.np-icon-pencil:before{content:"\e608";}.np-icon-bubble:before{content:"\e607";}.np-icon-lock:before{content:"\e609";}.np-icon-remove:before{content:"\e60a";}.np-icon-list:before{content:"\e60d";}.np-icon-menu2:before{content:"\e606";}.np-icon-link:before{content:"\e612";}.np-icon-eye:before{content:"\e60b";}.np-icon-eye-blocked:before{content:"\e60c";}.np-icon-mail:before{content:"\e60e";}.np-icon-github:before{content:"\e60f";}.np-icon-wordpress:before{content:"\e610";}.np-icon-linkedin:before{content:"\e611";}.np-btn,.np-toggle-edit{text-decoration:none;color:#555;display:inline-block;background-color:#f7f7f7;border:1px solid #e1e1e1;padding:3px 8px;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0, 0, 0, 0.08);-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.np-btn:hover,.np-toggle-edit:hover{background-color:#0074a2;color:#ffffff;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),0 1px 0 rgba(0, 0, 0, 0.08);border-color:#0074a2;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.np-btn-trash{background-color:#e14d43;border-color:#e14d43;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.3),0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.3),0 1px 0 rgba(0, 0, 0, 0.08);color:#ffffff;}.np-btn-trash:hover{background-color:#ba251e;border-color:#ba251e;}.np-toggle-edit{display:none;float:right;margin-right:10px;}.np-toggle-edit.active{background-color:#0074a2;color:#ffffff;-webkit-box-shadow:none;box-shadow:none;border-color:#0074a2;}@media (max-width: 767px){.np-toggle-edit{display:inline-block;}}.np-quickedit-error{border-left:4px solid #dd3d36;padding:4px 0 4px 8px;margin-bottom:10px;background-color:#f9f9f9;}.modal-open{overflow:hidden;}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;-webkit-overflow-scrolling:touch;outline:0;}.modal.fade .modal-dialog{-webkit-transform:translate(0, -25%);-ms-transform:translate(0, -25%);-o-transform:translate(0, -25%);transform:translate(0, -25%);-webkit-transition:-webkit-transform 0.3s ease-out;-o-transition:-o-transform 0.3s ease-out;transition:transform 0.3s ease-out;}.modal.in .modal-dialog{-webkit-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0);}.modal-open .modal{overflow-x:hidden;overflow-y:auto;}.modal-dialog{position:relative;width:auto;margin:10px auto 0px auto;max-width:500px;}.modal-content{position:relative;background-color:#ffffff;-webkit-box-shadow:0 3px 9px rgba(0, 0, 0, 0.5);box-shadow:0 3px 9px rgba(0, 0, 0, 0.5);-webkit-background-clip:padding-box;background-clip:padding-box;outline:0;}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:0.85;}.modal-header{padding:8px;background-color:#ebebeb;}.modal-header .sr-only{display:none;}.modal-header .close{margin-top:-2px;}.modal-title{margin:0;}.modal-body{position:relative;padding:10px;}.modal-footer{padding:10px;text-align:right;background-color:#404040;zoom:1;}.modal-footer:before,.modal-footer:after{content:" ";display:table;}.modal-footer:after{clear:both;}.modal-footer .modal-close{float:left;}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll;}.nestedpages-toggleall{float:right;margin-top:-30px;}.np-toggle-publish{color:#999999;}.np-toggle-publish.active{color:#333;font-weight:bold;}.np-sync-menu-cont{float:right;margin:-27px 15px 0px 0px;}#nested-loading{display:none;float:right;width:30px;margin:-31px 120px 0 0;}.wppages-top-tools{margin-bottom:20px;padding-top:10px;}.wppages-top-tools a{text-decoration:none;}.wppages-handle-expand{float:left;background-color:#f2f2f2;font-size:18px;width:46px;height:46px;margin-right:5px;text-align:center;border-right:1px solid #e1e1e1;}.wppages-handle-expand div{background-color:#ffffff;border:1px solid #e1e1e1;width:24px;height:24px;line-height:24px;-webkit-border-radius:15px;border-radius:15px;margin-top:9px;cursor:pointer;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.wppages-handle-expand div:hover{background-color:#0074a2;border-color:#0074a2;color:#ffffff;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.nestedpages{clear:both;-webkit-border-radius:4px;border-radius:4px;}.nestedpages .ui-sortable-placeholder{display:block !important;position:relative;min-height:46px;border:0;border:1px dashed #0074a2 !important;background-color:#effaff;margin:0;}.nestedpages .ui-sortable-helper{opacity:0.8;-webkit-box-shadow:2px 2px 3px 0px rgba(0, 0, 0, 0.5);box-shadow:2px 2px 3px 0px rgba(0, 0, 0, 0.5);}.nestedpages ol{list-style-type:none;clear:both;margin:0;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.06);box-shadow:0 1px 1px rgba(0, 0, 0, 0.06);border:1px solid #e5e5e5;-webkit-border-radius:3px;border-radius:3px;}.nestedpages ol a{text-decoration:none;}.nestedpages ol .page-link{line-height:26px;}.nestedpages ol .page-link .edit-indicator{margin-left:10px;display:none;}.nestedpages ol .page-link .edit-indicator i{font-size:12px;margin-right:3px;}.nestedpages ol .page-link:hover .edit-indicator{display:inline-block;}.nestedpages ol .locked{color:#333;margin-left:20px;}.nestedpages ol .locked em{font-style:normal;}.nestedpages ol .status{color:#999999;margin:0px 10px;}.nestedpages ol .np-icon-eye-blocked{color:#999999;}.nestedpages ol .nav-status{color:#b3b3b3;}.nestedpages ol .np-hide{display:none;}.nestedpages ol .np-seo-indicator{display:block;float:right;width:12px;height:12px;-webkit-border-radius:8px;border-radius:8px;background-color:#999999;margin:6px 10px 0 0;}.nestedpages ol .np-seo-indicator.good{background-color:#7ad03a;}.nestedpages ol .np-seo-indicator.ok{background-color:#ffba00;}.nestedpages ol .np-seo-indicator.poor{background-color:#ee7c1b;}.nestedpages ol .np-seo-indicator.bad{background-color:#dd3d36;}.nestedpages ol .np-seo-indicator.warn{background-color:maroon;}.nestedpages ol .np-seo-indicator.wrong{background-color:red;}.nestedpages ol li{margin:0;border-top:1px solid #e1e1e1;background-color:#0074a2;}.nestedpages ol li.first{border:0;}.nestedpages ol li:first-child{border:0;}.nestedpages ol li.no-border{border:0;}.nestedpages ol ol{display:none;-webkit-border-radius:0;border-radius:0;list-style-type:none;border:0;-webkit-box-shadow:none;box-shadow:none;border-top:1px solid #e1e1e1;}.nestedpages .child-toggle{float:left;margin:-10px 10px 0 0;width:46px;height:46px;background-color:#f0f0f0;text-align:center;}.nestedpages .child-toggle a{display:inline-block;margin-top:7px;width:28px;height:28px;background-color:#ffffff;border:1px solid #e1e1e1;-webkit-border-radius:20px;border-radius:20px;font-size:20px;line-height:30px;color:#333;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.nestedpages .child-toggle a i{line-height:26px;}.nestedpages .child-toggle a:hover{background-color:#0074a2;color:#ffffff;border-color:#0074a2;}.nestedpages .handle{display:inline-block;cursor:move;font-size:20px;color:#b3b3b3;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;position:relative;top:3px;}.nestedpages .handle:hover{-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;color:#0074a2;}.nestedpages .np-icon-sub-menu{display:none;color:#999999;position:relative;left:2px;}.nestedpages .handle,.nestedpages .np-icon-sub-menu{width:30px;height:46px;line-height:36px;margin-top:-10px;}.nestedpages li ol .row .np-icon-sub-menu{display:inline-block;}.nestedpages li ol .row .handle{display:none;}.nestedpages li ol .row:hover .np-icon-sub-menu{display:none;}.nestedpages li ol .row:hover .handle{display:inline-block;}.nestedpages .row{background-color:#ffffff;display:block;padding:10px 0px 0px 0px;height:36px;zoom:1;}.nestedpages .row:before,.nestedpages .row:after{content:" ";display:table;}.nestedpages .row:after{clear:both;}.nestedpages .row:hover{background-color:#f0f0f0;}.nestedpages .row.np-updated{background-color:#e9f7df;-webkit-transition:background-color 400ms ease;-o-transition:background-color 400ms ease;transition:background-color 400ms ease;}.nestedpages .row.np-updated-show{background-color:#ffffff;-webkit-transition:background-color 400ms ease;-o-transition:background-color 400ms ease;transition:background-color 400ms ease;}.nestedpages ol li ol .row-inner{padding-left:86px;}.nestedpages ol li ol li ol .row-inner{padding-left:116px;}.nestedpages ol li ol li ol li ol .row-inner{padding-left:156px;}.nestedpages .action-buttons{display:none;float:right;margin:0 10px 0 0;}.nestedpages .action-buttons a{margin:0 0 0 -5px;}.nestedpages .action-buttons a.np-btn-trash{margin-left:4px;}@media (min-width: 768px){.nestedpages .row:hover .action-buttons{display:block;}}@media (max-width: 767px){.nestedpages ol .page-link{line-height:24px;}.nestedpages ol .page-link:hover span{display:none;}.nestedpages ol .locked em{display:none;}.nestedpages .child-toggle{background:transparent;}.nestedpages .row{height:auto;}.nestedpages .action-buttons{display:none;background-color:#0074a2;float:none;margin:0;padding:8px;}.nestedpages .action-buttons a{margin-left:5px;}}.nestedpages .quick-edit{background-color:#ffffff;-webkit-border-radius:0;border-radius:0;}.nestedpages .quick-edit .form-interior{padding:10px;}.nestedpages .quick-edit h3{margin:0 0 8px 0;font-size:14px;}.nestedpages .quick-edit .fields{margin-bottom:10px;background:url('../images/border.png') repeat-y;background-position:center;zoom:1;}.nestedpages .quick-edit .fields:before,.nestedpages .quick-edit .fields:after{content:" ";display:table;}.nestedpages .quick-edit .fields:after{clear:both;}.nestedpages .quick-edit .left{float:left;width:48%;}.nestedpages .quick-edit .right{float:right;width:48%;}.nestedpages .quick-edit label{font-style:oblique;}.nestedpages .quick-edit .buttons{clear:both;zoom:1;background-color:#404040;padding:8px;}.nestedpages .quick-edit .buttons:before,.nestedpages .quick-edit .buttons:after{content:" ";display:table;}.nestedpages .quick-edit .buttons:after{clear:both;}.nestedpages .quick-edit .form-control{clear:both;zoom:1;margin-bottom:5px;}.nestedpages .quick-edit .form-control:before,.nestedpages .quick-edit .form-control:after{content:" ";display:table;}.nestedpages .quick-edit .form-control:after{clear:both;}.nestedpages .quick-edit .form-control input[type='text'],.nestedpages .quick-edit .form-control input[type='password'],.nestedpages .quick-edit .form-control select{float:right;width:75%;}.nestedpages .quick-edit .form-control label{float:left;width:20%;}.nestedpages .quick-edit .comments{float:right;width:75%;margin-bottom:10px;zoom:1;}.nestedpages .quick-edit .comments:before,.nestedpages .quick-edit .comments:after{content:" ";display:table;}.nestedpages .quick-edit .comments:after{clear:both;}.nestedpages .quick-edit .dates{float:right;width:75%;margin-bottom:6px;}.nestedpages .quick-edit .dates select{width:25%;}.nestedpages .quick-edit .dates input{width:12%;}.nestedpages .quick-edit .np-toggle-taxonomies,.nestedpages .quick-edit .np-toggle-menuoptions{clear:both;float:right;width:71%;text-align:center;}.nestedpages .quick-edit .np-taxonomies,.nestedpages .quick-edit .np-menuoptions{display:none;clear:both;background-color:#f9f9f9;padding:8px;zoom:1;margin-top:5px;}.nestedpages .quick-edit .np-taxonomies:before,.nestedpages .quick-edit .np-taxonomies:after,.nestedpages .quick-edit .np-menuoptions:before,.nestedpages .quick-edit .np-menuoptions:after{content:" ";display:table;}.nestedpages .quick-edit .np-taxonomies:after,.nestedpages .quick-edit .np-menuoptions:after{clear:both;}.nestedpages .quick-edit .np-taxonomy{float:left;width:30%;margin-right:3.33%;}.nestedpages .quick-edit .np-taxonomy .title{font-weight:bold;margin-bottom:4px;display:block;}.nestedpages .quick-edit .np-taxonomy li{background-color:#ffffff;border:0;}.nestedpages .quick-edit .np-menuoptions{padding:15px;}.nestedpages .quick-edit .np-menuoptions label,.nestedpages .quick-edit .np-menuoptions input[type="text"]{display:block;float:none;width:100%;}.nestedpages .quick-edit .np-menuoptions .menuoptions-left{float:left;width:47%;}.nestedpages .quick-edit .np-menuoptions .menuoptions-right{float:right;width:47%;padding-top:18px;}.nestedpages .quick-edit .np-menuoptions .menuoptions-right label{margin-bottom:10px;}.np-qe-loading{display:none;float:right;width:25px;height:25px;margin:2px 10px 0 0;background:url('../images/loading-white.gif') no-repeat;}@media (max-width: 767px){.nestedpages .quick-edit .fields{background:transparent;}.nestedpages .quick-edit .left,.nestedpages .quick-edit .right{float:none;width:100%;}.nestedpages .quick-edit .form-control{margin-bottom:10px;}.nestedpages .quick-edit .form-control input[type='text'],.nestedpages .quick-edit .form-control input[type='password'],.nestedpages .quick-edit .form-control select{float:none;width:100%;}.nestedpages .quick-edit .form-control label{display:block;float:none;width:100%;margin-bottom:4px;}.nestedpages .quick-edit .comments{float:none;width:100%;}.nestedpages .quick-edit .dates{float:none;width:100%;margin-bottom:6px;}}.np-modal-form .form-interior{zoom:1;background:url('../images/border.png') repeat-y;background-position:center;padding:5px 0;}.np-modal-form .form-interior:before,.np-modal-form .form-interior:after{content:" ";display:table;}.np-modal-form .form-interior:after{clear:both;}.np-modal-form .form-control{zoom:1;margin-bottom:10px;}.np-modal-form .form-control:before,.np-modal-form .form-control:after{content:" ";display:table;}.np-modal-form .form-control:after{clear:both;}.np-modal-form .checkbox{margin-bottom:10px;}.np-modal-form .left{float:left;width:45%;}.np-modal-form .right{float:right;width:45%;padding-top:18px;}.np-modal-form label{display:block;}.np-modal-form input[type="text"],.np-modal-form select{width:100%;}.np-modal-form .buttons{clear:both;}
1
+ body{-webkit-animation-delay:0.1s;-webkit-animation-name:fontfix;-webkit-animation-duration:0.1s;-webkit-animation-iteration-count:1;-webkit-animation-timing-function:linear;}@-webkit-keyframes fontfix{from{opacity:1;}to{opacity:1;}}@font-face{font-family:'nestedpages';src:url('fonts/nestedpages.eot');}@font-face{font-family:'nestedpages';src:url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjB2gAAAC8AAAAYGNtYXDw7eamAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZrIqLaoAAAF4AAARNGhlYWQCOg/3AAASrAAAADZoaGVhA+IB+QAAEuQAAAAkaG10eCkAA2cAABMIAAAAYGxvY2EhfhzgAAATaAAAADJtYXhwACAA8QAAE5wAAAAgbmFtZXH7qkgAABO8AAABaXBvc3QAAwAAAAAVKAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADwsgHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEAEAAAA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HMAVgBlAHIAcwBpAG8AbgAgADEALgAwAG4AZQBzAHQAZQBkAHAAYQBnAGUAc25lc3RlZHBhZ2VzAG4AZQBzAHQAZQBkAHAAYQBnAGUAcwBSAGUAZwB1AGwAYQByAG4AZQBzAHQAZQBkAHAAYQBnAGUAcwBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==) format('woff');font-weight:normal;font-style:normal;}[class^="np-icon-"],[class*=" np-icon-"]{font-family:'nestedpages';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;}.np-icon-no:before{content:"\e601";}.np-icon-yes:before{content:"\e602";}.np-icon-menu:before{content:"\e603";}.np-icon-arrow-down:before{content:"\e604";}.np-icon-arrow-right:before{content:"\e605";}.np-icon-sub-menu:before{content:"\e600";}.np-icon-arrows-alt:before{content:"\f0b2";}.np-icon-pencil:before{content:"\e608";}.np-icon-bubble:before{content:"\e607";}.np-icon-lock:before{content:"\e609";}.np-icon-remove:before{content:"\e60a";}.np-icon-list:before{content:"\e60d";}.np-icon-menu2:before{content:"\e606";}.np-icon-link:before{content:"\e612";}.np-icon-eye:before{content:"\e60b";}.np-icon-eye-blocked:before{content:"\e60c";}.np-icon-mail:before{content:"\e60e";}.np-icon-github:before{content:"\e60f";}.np-icon-wordpress:before{content:"\e610";}.np-icon-linkedin:before{content:"\e611";}.np-btn,.np-toggle-edit{text-decoration:none;color:#555;display:inline-block;background-color:#f7f7f7;border:1px solid #e1e1e1;padding:3px 8px;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0, 0, 0, 0.08);-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.np-btn:hover,.np-toggle-edit:hover{background-color:#0074a2;color:#ffffff;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),0 1px 0 rgba(0, 0, 0, 0.08);border-color:#0074a2;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.np-btn-half{float:left;width:47%;padding:3px 0px;text-align:center;}.np-btn-half.btn-right{float:right;}.np-btn-trash{background-color:#e14d43;border-color:#e14d43;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.3),0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.3),0 1px 0 rgba(0, 0, 0, 0.08);color:#ffffff;}.np-btn-trash:hover{background-color:#ba251e;border-color:#ba251e;}.np-toggle-edit{display:none;float:right;margin-right:10px;}.np-toggle-edit.active{background-color:#0074a2;color:#ffffff;-webkit-box-shadow:none;box-shadow:none;border-color:#0074a2;}@media (max-width: 767px){.np-toggle-edit{display:inline-block;}}.np-quickedit-error{border-left:4px solid #dd3d36;padding:4px 0 4px 8px;margin-bottom:10px;background-color:#f9f9f9;}.modal-open{overflow:hidden;}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;-webkit-overflow-scrolling:touch;outline:0;}.modal.fade .modal-dialog{-webkit-transform:translate(0, -25%);-ms-transform:translate(0, -25%);-o-transform:translate(0, -25%);transform:translate(0, -25%);-webkit-transition:-webkit-transform 0.3s ease-out;-o-transition:-o-transform 0.3s ease-out;transition:transform 0.3s ease-out;}.modal.in .modal-dialog{-webkit-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0);}.modal-open .modal{overflow-x:hidden;overflow-y:auto;}.modal-dialog{position:relative;width:auto;margin:10px auto 0px auto;max-width:500px;}.modal-content{position:relative;background-color:#ffffff;-webkit-box-shadow:0 3px 9px rgba(0, 0, 0, 0.5);box-shadow:0 3px 9px rgba(0, 0, 0, 0.5);-webkit-background-clip:padding-box;background-clip:padding-box;outline:0;}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:0.85;}.modal-header{padding:8px;background-color:#ebebeb;}.modal-header .sr-only{display:none;}.modal-header .close{margin-top:-2px;}.modal-title{margin:0;}.modal-body{position:relative;padding:10px;}.modal-footer{padding:10px;text-align:right;background-color:#404040;zoom:1;}.modal-footer:before,.modal-footer:after{content:" ";display:table;}.modal-footer:after{clear:both;}.modal-footer .modal-close{float:left;}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll;}.nestedpages-toggleall{float:right;margin-top:-30px;}.np-toggle-publish{color:#999999;}.np-toggle-publish.active{color:#333;font-weight:bold;}.np-sync-menu-cont{float:right;margin:-27px 15px 0px 0px;}#nested-loading{display:none;float:right;width:30px;margin:-31px 120px 0 0;}.wppages-top-tools{margin-bottom:20px;padding-top:10px;}.wppages-top-tools a{text-decoration:none;}.wppages-handle-expand{float:left;background-color:#f2f2f2;font-size:18px;width:46px;height:46px;margin-right:5px;text-align:center;border-right:1px solid #e1e1e1;}.wppages-handle-expand div{background-color:#ffffff;border:1px solid #e1e1e1;width:24px;height:24px;line-height:24px;-webkit-border-radius:15px;border-radius:15px;margin-top:9px;cursor:pointer;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.wppages-handle-expand div:hover{background-color:#0074a2;border-color:#0074a2;color:#ffffff;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.nestedpages{clear:both;-webkit-border-radius:4px;border-radius:4px;}.nestedpages .ui-sortable-placeholder{display:block !important;position:relative;min-height:46px;border:0;border:1px dashed #0074a2 !important;background-color:#effaff;margin:0;}.nestedpages .ui-sortable-helper{opacity:0.8;-webkit-box-shadow:2px 2px 3px 0px rgba(0, 0, 0, 0.5);box-shadow:2px 2px 3px 0px rgba(0, 0, 0, 0.5);}.nestedpages ol{list-style-type:none;clear:both;margin:0;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.06);box-shadow:0 1px 1px rgba(0, 0, 0, 0.06);border:1px solid #e5e5e5;-webkit-border-radius:3px;border-radius:3px;}.nestedpages ol a{text-decoration:none;}.nestedpages ol .page-link{line-height:26px;}.nestedpages ol .page-link .edit-indicator{margin-left:10px;display:none;}.nestedpages ol .page-link .edit-indicator i{font-size:12px;margin-right:3px;}.nestedpages ol .page-link:hover .edit-indicator{display:inline-block;}.nestedpages ol .locked{color:#333;margin-left:20px;}.nestedpages ol .locked em{font-style:normal;}.nestedpages ol .status{color:#999999;margin:0px 10px;}.nestedpages ol .np-icon-eye-blocked{color:#999999;}.nestedpages ol .nav-status{color:#b3b3b3;}.nestedpages ol .np-hide{display:none;}.nestedpages ol .np-seo-indicator{display:block;float:right;width:12px;height:12px;-webkit-border-radius:8px;border-radius:8px;background-color:#999999;margin:6px 10px 0 0;}.nestedpages ol .np-seo-indicator.good{background-color:#7ad03a;}.nestedpages ol .np-seo-indicator.ok{background-color:#ffba00;}.nestedpages ol .np-seo-indicator.poor{background-color:#ee7c1b;}.nestedpages ol .np-seo-indicator.bad{background-color:#dd3d36;}.nestedpages ol .np-seo-indicator.warn{background-color:maroon;}.nestedpages ol .np-seo-indicator.wrong{background-color:red;}.nestedpages ol li{margin:0;border-top:1px solid #e1e1e1;background-color:#0074a2;}.nestedpages ol li.first{border:0;}.nestedpages ol li:first-child{border:0;}.nestedpages ol li.no-border{border:0;}.nestedpages ol ol{display:none;-webkit-border-radius:0;border-radius:0;list-style-type:none;border:0;-webkit-box-shadow:none;box-shadow:none;border-top:1px solid #e1e1e1;}.nestedpages .child-toggle{float:left;margin:-10px 10px 0 0;width:46px;height:46px;background-color:#f0f0f0;text-align:center;}.nestedpages .child-toggle a{display:inline-block;margin-top:7px;width:28px;height:28px;background-color:#ffffff;border:1px solid #e1e1e1;-webkit-border-radius:20px;border-radius:20px;font-size:20px;line-height:30px;color:#333;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.nestedpages .child-toggle a i{line-height:26px;}.nestedpages .child-toggle a:hover{background-color:#0074a2;color:#ffffff;border-color:#0074a2;}.nestedpages .handle{display:inline-block;cursor:move;font-size:20px;color:#b3b3b3;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;position:relative;top:3px;}.nestedpages .handle:hover{-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;color:#0074a2;}.nestedpages .np-icon-sub-menu{display:none;color:#999999;position:relative;left:2px;}.nestedpages .handle,.nestedpages .np-icon-sub-menu{width:30px;height:46px;line-height:36px;margin-top:-10px;}.nestedpages li ol .row .np-icon-sub-menu{display:inline-block;}.nestedpages li ol .row .handle{display:none;}.nestedpages li ol .row:hover .np-icon-sub-menu{display:none;}.nestedpages li ol .row:hover .handle{display:inline-block;}.nestedpages .row{background-color:#ffffff;display:block;padding:10px 0px 0px 0px;height:36px;zoom:1;}.nestedpages .row:before,.nestedpages .row:after{content:" ";display:table;}.nestedpages .row:after{clear:both;}.nestedpages .row:hover{background-color:#f0f0f0;}.nestedpages .row.np-updated{background-color:#e9f7df;-webkit-transition:background-color 400ms ease;-o-transition:background-color 400ms ease;transition:background-color 400ms ease;}.nestedpages .row.np-updated-show{background-color:#ffffff;-webkit-transition:background-color 400ms ease;-o-transition:background-color 400ms ease;transition:background-color 400ms ease;}.nestedpages ol li ol .row-inner{padding-left:86px;}.nestedpages ol li ol li ol .row-inner{padding-left:116px;}.nestedpages ol li ol li ol li ol .row-inner{padding-left:156px;}.nestedpages .action-buttons{display:none;float:right;margin:0 10px 0 0;}.nestedpages .action-buttons a{margin:0 0 0 -5px;}.nestedpages .action-buttons a.np-btn-trash{margin-left:4px;}@media (min-width: 768px){.nestedpages .row:hover .action-buttons{display:block;}}@media (max-width: 767px){.nestedpages ol .page-link{line-height:24px;}.nestedpages ol .page-link:hover span{display:none;}.nestedpages ol .locked em{display:none;}.nestedpages .child-toggle{background:transparent;}.nestedpages .row{height:auto;}.nestedpages .action-buttons{display:none;background-color:#0074a2;float:none;margin:0;padding:8px;}.nestedpages .action-buttons a{margin-left:5px;}}.np-quick-edit-overlay{position:fixed;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);z-index:998;top:0;right:0;bottom:0;left:0;opacity:0;-webkit-transition:opacity 200ms ease;-o-transition:opacity 200ms ease;transition:opacity 200ms ease;}.np-quick-edit-overlay.active{opacity:1;-webkit-transition:opacity 200ms ease;-o-transition:opacity 200ms ease;transition:opacity 200ms ease;}.nestedpages .quick-edit{position:relative;z-index:999;background-color:#ffffff;-webkit-border-radius:0;border-radius:0;-webkit-box-shadow:0px 0px 4px 0px rgba(0, 0, 0, 0.5);box-shadow:0px 0px 4px 0px rgba(0, 0, 0, 0.5);}.nestedpages .quick-edit .form-interior{padding:10px;}.nestedpages .quick-edit h3{margin:0 0 8px 0;font-size:14px;}.nestedpages .quick-edit .fields{margin-bottom:10px;background:url('../images/border.png') repeat-y;background-position:center;zoom:1;}.nestedpages .quick-edit .fields:before,.nestedpages .quick-edit .fields:after{content:" ";display:table;}.nestedpages .quick-edit .fields:after{clear:both;}.nestedpages .quick-edit .left{float:left;width:48%;}.nestedpages .quick-edit .right{float:right;width:48%;}.nestedpages .quick-edit label{font-style:oblique;}.nestedpages .quick-edit .buttons{clear:both;zoom:1;background-color:#404040;padding:8px;}.nestedpages .quick-edit .buttons:before,.nestedpages .quick-edit .buttons:after{content:" ";display:table;}.nestedpages .quick-edit .buttons:after{clear:both;}.nestedpages .quick-edit .form-control{clear:both;zoom:1;margin-bottom:5px;}.nestedpages .quick-edit .form-control:before,.nestedpages .quick-edit .form-control:after{content:" ";display:table;}.nestedpages .quick-edit .form-control:after{clear:both;}.nestedpages .quick-edit .form-control input[type='text'],.nestedpages .quick-edit .form-control input[type='password'],.nestedpages .quick-edit .form-control select{float:right;width:75%;}.nestedpages .quick-edit .form-control label{float:left;width:20%;}.nestedpages .quick-edit .form-control.password label{width:25%;}.nestedpages .quick-edit .form-control.password input[type="text"]{float:left;width:35%;}.nestedpages .quick-edit .form-control.password .private{float:right;width:35%;margin-top:4px;}.nestedpages .quick-edit .form-control.password .private label{width:auto;float:none;}.nestedpages .quick-edit .comments{float:right;width:75%;margin-bottom:10px;zoom:1;}.nestedpages .quick-edit .comments:before,.nestedpages .quick-edit .comments:after{content:" ";display:table;}.nestedpages .quick-edit .comments:after{clear:both;}.nestedpages .quick-edit .dates{float:right;width:75%;margin-bottom:6px;}.nestedpages .quick-edit .dates select{width:25%;}.nestedpages .quick-edit .dates input{width:12%;}.nestedpages .quick-edit .np-toggle-options{background-color:#f2f2f2;padding:5px;}.nestedpages .quick-edit .np-taxonomies,.nestedpages .quick-edit .np-menuoptions{display:none;clear:both;background-color:#f9f9f9;padding:8px;zoom:1;margin-top:5px;}.nestedpages .quick-edit .np-taxonomies:before,.nestedpages .quick-edit .np-taxonomies:after,.nestedpages .quick-edit .np-menuoptions:before,.nestedpages .quick-edit .np-menuoptions:after{content:" ";display:table;}.nestedpages .quick-edit .np-taxonomies:after,.nestedpages .quick-edit .np-menuoptions:after{clear:both;}.nestedpages .quick-edit .np-taxonomy{float:left;width:30%;margin-right:3.33%;}.nestedpages .quick-edit .np-taxonomy .title{font-weight:bold;margin-bottom:4px;display:block;}.nestedpages .quick-edit .np-taxonomy li{background-color:#ffffff;border:0;}.nestedpages .quick-edit .np-taxonomy textarea{width:100%;height:6.5em;}.nestedpages .quick-edit .np-menuoptions{padding:15px;}.nestedpages .quick-edit .np-menuoptions label,.nestedpages .quick-edit .np-menuoptions input[type="text"]{display:block;float:none;width:100%;}.nestedpages .quick-edit .np-menuoptions .menuoptions-left{float:left;width:47%;}.nestedpages .quick-edit .np-menuoptions .menuoptions-right{float:right;width:47%;padding-top:18px;}.nestedpages .quick-edit .np-menuoptions .menuoptions-right label{margin-bottom:10px;}.nestedpages .quick-edit .np-hide-options{display:none;background-color:#f0f0f0;-webkit-border-radius:3px;border-radius:3px;clear:both;padding:6px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}.nestedpages .quick-edit .np-hide-options p{margin:0;}.nestedpages .quick-edit .np-hide-options label{display:block;margin-top:4px;font-style:normal;}.np-qe-loading{display:none;float:right;width:25px;height:25px;margin:2px 10px 0 0;background:url('../images/loading-white.gif') no-repeat;}@media (max-width: 767px){.nestedpages .quick-edit .fields{background:transparent;}.nestedpages .quick-edit .left,.nestedpages .quick-edit .right{float:none;width:100%;}.nestedpages .quick-edit .form-control{margin-bottom:10px;}.nestedpages .quick-edit .form-control input[type='text'],.nestedpages .quick-edit .form-control input[type='password'],.nestedpages .quick-edit .form-control select{float:none;width:100%;}.nestedpages .quick-edit .form-control label{display:block;float:none;width:100%;margin-bottom:4px;}.nestedpages .quick-edit .comments{float:none;width:100%;}.nestedpages .quick-edit .dates{float:none;width:100%;margin-bottom:6px;}}.np-modal-form .form-interior{zoom:1;background:url('../images/border.png') repeat-y;background-position:center;padding:5px 0;}.np-modal-form .form-interior:before,.np-modal-form .form-interior:after{content:" ";display:table;}.np-modal-form .form-interior:after{clear:both;}.np-modal-form .form-control{zoom:1;margin-bottom:10px;}.np-modal-form .form-control:before,.np-modal-form .form-control:after{content:" ";display:table;}.np-modal-form .form-control:after{clear:both;}.np-modal-form .checkbox{margin-bottom:10px;}.np-modal-form .left{float:left;width:45%;}.np-modal-form .right{float:right;width:45%;padding-top:18px;}.np-modal-form label{display:block;}.np-modal-form input[type="text"],.np-modal-form select{width:100%;}.np-modal-form .buttons{clear:both;}
assets/js/lib/nestedpages.js CHANGED
@@ -258,7 +258,7 @@ jQuery(function($){
258
  });
259
 
260
  /**
261
- * Checkbox Toggle
262
  */
263
  $('.np-sync-menu').on('change', function(){
264
  var setting = ( $(this).is(':checked') ) ? 'sync' : 'nosync';
@@ -302,6 +302,11 @@ jQuery(function($){
302
  set_quick_edit_data($(this));
303
  });
304
 
 
 
 
 
 
305
  // Cancel the form
306
  $(document).on('click', '.np-cancel-quickedit', function(e){
307
  var row = $(this).parents('.page-row');
@@ -322,13 +327,24 @@ jQuery(function($){
322
  // Toggle the Taxonomies
323
  $(document).on('click', '.np-toggle-taxonomies', function(e){
324
  $(this).parents('form').find('.np-taxonomies').toggle();
 
325
  });
326
 
327
  // Toggle the Menu Options
328
  $(document).on('click', '.np-toggle-menuoptions', function(e){
 
329
  $(this).parents('form').find('.np-menuoptions').toggle();
330
  });
331
 
 
 
 
 
 
 
 
 
 
332
 
333
  /**
334
  * Set Quick Edit data
@@ -353,16 +369,21 @@ jQuery(function($){
353
  navtitle : $(item).attr('data-navtitle'),
354
  navtitleattr : $(item).attr('data-navtitleattr'),
355
  navcss : $(item).attr('data-navcss'),
356
- linktarget : $(item).attr('data-linktarget')
 
357
  };
358
  var parent_li = $(item).closest('.row').parent('li');
359
 
360
  // Add Array of Taxonomies to the data object
361
- data.taxonomies = [];
 
362
  var classes = $(parent_li).attr('class').split(/\s+/);
363
  for ( i = 0; i < classes.length; i++ ){
364
  if ( classes[i].substring(0, 3) === 'in-'){
365
- data.taxonomies.push(classes[i]);
 
 
 
366
  }
367
  }
368
 
@@ -380,7 +401,7 @@ jQuery(function($){
380
 
381
 
382
  /**
383
- * Populate the Quick Edit Form
384
  */
385
  function populate_quick_edit(form, data)
386
  {
@@ -393,8 +414,14 @@ jQuery(function($){
393
  $(form).find('.np_nav_title').val(data.navtitle);
394
  $(form).find('.np_title_attribute').val(data.navtitleattr);
395
  $(form).find('.np_nav_css_classes').val(data.navcss);
 
396
  if ( data.cs === 'open' ) $(form).find('.np_cs').prop('checked', 'checked');
397
 
 
 
 
 
 
398
  if ( data.npstatus === 'hide' ){
399
  $(form).find('.np_status').prop('checked', 'checked');
400
  } else {
@@ -412,6 +439,10 @@ jQuery(function($){
412
  } else {
413
  $(form).find('.link_target').removeAttr('checked');
414
  }
 
 
 
 
415
 
416
  // Date Fields
417
  $(form).find('select[name="mm"]').val(data.month);
@@ -420,16 +451,103 @@ jQuery(function($){
420
  $(form).find('input[name="hh"]').val(data.hour);
421
  $(form).find('input[name="mn"]').val(data.minute);
422
 
423
- // Populate Taxonomy Checkboxes
424
- if ( data.hasOwnProperty('taxonomies') ){
425
- var taxonomies = data.taxonomies;
426
  for ( i = 0; i < taxonomies.length; i++ ){
427
  var tax = '#' + taxonomies[i];
428
  $(form).find(tax).prop('checked', 'checked');
429
  }
430
  }
431
 
 
 
432
  $(form).show();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
433
  }
434
 
435
 
@@ -439,10 +557,30 @@ jQuery(function($){
439
  function revert_quick_edit()
440
  {
441
  $('.np-quickedit-error').hide();
 
442
  $('.sortable .quick-edit').remove();
443
  $('.row').show();
444
  }
445
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
446
 
447
  /**
448
  * Submit the Quick Edit Form
@@ -458,6 +596,7 @@ jQuery(function($){
458
  datatype: 'json',
459
  data: $(form).serialize() + '&action=npquickedit&nonce=' + nestedpages.np_nonce + '&syncmenu=' + syncmenu,
460
  success: function(data){
 
461
  if (data.status === 'error'){
462
  np_remove_qe_loading(form);
463
  $(form).find('.np-quickedit-error').text(data.message).show();
@@ -482,10 +621,19 @@ jQuery(function($){
482
  var status = $(row).find('.status');
483
  if ( (data._status !== 'publish') && (data._status !== 'future') ){
484
  $(status).text('(' + data._status + ')');
 
 
485
  } else {
486
  $(status).text('');
487
  }
488
 
 
 
 
 
 
 
 
489
  // Hide / Show in Nav
490
  var nav_status = $(row).find('.nav-status');
491
  if ( (data.nav_status == 'hide') ){
@@ -512,8 +660,15 @@ jQuery(function($){
512
  $(button).attr('data-slug', data.post_name);
513
  $(button).attr('data-commentstatus', data.comment_status);
514
  $(button).attr('data-status', data._status);
 
 
 
 
 
 
515
  $(button).attr('data-author', data.post_author);
516
  $(button).attr('data-np-status', data.np_status);
 
517
 
518
  $(button).attr('data-navstatus', data.nav_status);
519
  $(button).attr('data-navtitle', data.np_nav_title);
@@ -529,7 +684,8 @@ jQuery(function($){
529
 
530
  np_remove_taxonomy_classes(li);
531
  np_add_category_classes(li, data);
532
- np_add_taxonomy_classes(li, data);
 
533
 
534
  }
535
 
@@ -545,6 +701,9 @@ jQuery(function($){
545
  if ( classes[i].substring(0, 3) === 'in-'){
546
  $(row).removeClass(classes[i]);
547
  }
 
 
 
548
  }
549
  }
550
 
@@ -565,9 +724,9 @@ jQuery(function($){
565
 
566
 
567
  /**
568
- * Add Taxonomy Classes to the row
569
  */
570
- function np_add_taxonomy_classes(row, data)
571
  {
572
  if ( data.hasOwnProperty('tax_input') )
573
  {
@@ -583,6 +742,25 @@ jQuery(function($){
583
  }
584
 
585
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
586
  /**
587
  * Remove loading state from Quick Edit form
588
  */
@@ -601,6 +779,7 @@ jQuery(function($){
601
  $(row).addClass('np-updated');
602
  $(row).show();
603
  $(form).parent('.quick-edit').remove();
 
604
  np_set_borders();
605
  setTimeout(function(){
606
  $(row).addClass('np-updated-show');
@@ -697,6 +876,8 @@ jQuery(function($){
697
  $(form).find('.link_target').removeAttr('checked');
698
  }
699
 
 
 
700
  $(form).show();
701
  }
702
 
258
  });
259
 
260
  /**
261
+ * Sync Menu Checkbox Toggle
262
  */
263
  $('.np-sync-menu').on('change', function(){
264
  var setting = ( $(this).is(':checked') ) ? 'sync' : 'nosync';
302
  set_quick_edit_data($(this));
303
  });
304
 
305
+ // Hide the form when clicking modal overlay
306
+ $(document).on('click', '.np-quick-edit-overlay', function(e){
307
+ revert_quick_edit();
308
+ });
309
+
310
  // Cancel the form
311
  $(document).on('click', '.np-cancel-quickedit', function(e){
312
  var row = $(this).parents('.page-row');
327
  // Toggle the Taxonomies
328
  $(document).on('click', '.np-toggle-taxonomies', function(e){
329
  $(this).parents('form').find('.np-taxonomies').toggle();
330
+ e.preventDefault();
331
  });
332
 
333
  // Toggle the Menu Options
334
  $(document).on('click', '.np-toggle-menuoptions', function(e){
335
+ e.preventDefault();
336
  $(this).parents('form').find('.np-menuoptions').toggle();
337
  });
338
 
339
+ // Toggle password/private
340
+ $(document).on('change', '.keep_private', function(){
341
+ if ( this.checked ){
342
+ $('.post_password').val('').prop('readonly', true);
343
+ } else {
344
+ $('.post_password').prop('readonly', false);
345
+ }
346
+ });
347
+
348
 
349
  /**
350
  * Set Quick Edit data
369
  navtitle : $(item).attr('data-navtitle'),
370
  navtitleattr : $(item).attr('data-navtitleattr'),
371
  navcss : $(item).attr('data-navcss'),
372
+ linktarget : $(item).attr('data-linktarget'),
373
+ password : $(item).attr('data-password')
374
  };
375
  var parent_li = $(item).closest('.row').parent('li');
376
 
377
  // Add Array of Taxonomies to the data object
378
+ data.h_taxonomies = [];
379
+ data.f_taxonomies = [];
380
  var classes = $(parent_li).attr('class').split(/\s+/);
381
  for ( i = 0; i < classes.length; i++ ){
382
  if ( classes[i].substring(0, 3) === 'in-'){
383
+ data.h_taxonomies.push(classes[i]);
384
+ }
385
+ if ( classes[i].substring(0, 4) === 'inf-' ){
386
+ data.f_taxonomies.push(classes[i]);
387
  }
388
  }
389
 
401
 
402
 
403
  /**
404
+ * Populate the Quick Edit Form and show it
405
  */
406
  function populate_quick_edit(form, data)
407
  {
414
  $(form).find('.np_nav_title').val(data.navtitle);
415
  $(form).find('.np_title_attribute').val(data.navtitleattr);
416
  $(form).find('.np_nav_css_classes').val(data.navcss);
417
+ $(form).find('.post_password').val(data.password);
418
  if ( data.cs === 'open' ) $(form).find('.np_cs').prop('checked', 'checked');
419
 
420
+ if ( data.status === 'private' ){
421
+ $(form).find('.post_password').prop('readonly', true);
422
+ $(form).find('.keep_private').prop('checked', true);
423
+ }
424
+
425
  if ( data.npstatus === 'hide' ){
426
  $(form).find('.np_status').prop('checked', 'checked');
427
  } else {
439
  } else {
440
  $(form).find('.link_target').removeAttr('checked');
441
  }
442
+
443
+ if ( data.status === "private" ) {
444
+ $(form).find('.np_status').val('publish');
445
+ }
446
 
447
  // Date Fields
448
  $(form).find('select[name="mm"]').val(data.month);
451
  $(form).find('input[name="hh"]').val(data.hour);
452
  $(form).find('input[name="mn"]').val(data.minute);
453
 
454
+ // Populate Hierarchical Taxonomy Checkboxes
455
+ if ( data.hasOwnProperty('h_taxonomies') ){
456
+ var taxonomies = data.h_taxonomies;
457
  for ( i = 0; i < taxonomies.length; i++ ){
458
  var tax = '#' + taxonomies[i];
459
  $(form).find(tax).prop('checked', 'checked');
460
  }
461
  }
462
 
463
+ show_quick_edit_overlay();
464
+
465
  $(form).show();
466
+
467
+ // Populate Flat Taxonomies (makes ajax request, so do this after showing form)
468
+ if ( data.hasOwnProperty('f_taxonomies') ){
469
+ create_taxonomy_object(data.f_taxonomies);
470
+ set_wp_suggest(form);
471
+ }
472
+ }
473
+
474
+
475
+ /**
476
+ * Create object of flat taxonomies out of class names
477
+ */
478
+ function create_taxonomy_object(taxonomies)
479
+ {
480
+ var out = "";
481
+ var terms = {};
482
+ for ( i = 0; i < taxonomies.length; i++ ){
483
+ // Get the term
484
+ var tax_array = taxonomies[i].split('-'); // split the string into an array
485
+ var splitter = tax_array.indexOf('nps'); // find the index of the name splitter
486
+ var term = tax_array.splice(splitter + 1); // Splice off the name
487
+ term = term.join('-'); // Join the name back into a string
488
+
489
+ // Get the taxonomy
490
+ var tax = taxonomies[i].split('-').splice(0, splitter);
491
+ tax.shift('inf');
492
+ var taxonomy = tax.join('-');
493
+
494
+ // Add taxonomy array to object
495
+ if ( !(taxonomy in terms) ){
496
+ terms[taxonomy] = [];
497
+ }
498
+ // push term to taxonomy array
499
+ var term_array = terms[taxonomy];
500
+ term_array.push(term);
501
+ }
502
+ get_taxonomy_names(terms);
503
+ }
504
+
505
+
506
+
507
+ /**
508
+ * Get Taxonomy Names
509
+ * @param array of term slugs
510
+ */
511
+ function get_taxonomy_names(taxonomies)
512
+ {
513
+ $.ajax({
514
+ url: ajaxurl,
515
+ type: 'post',
516
+ datatype: 'json',
517
+ data : {
518
+ action : 'gettax',
519
+ nonce : nestedpages.np_nonce,
520
+ terms : taxonomies
521
+ },
522
+ success: function(data){
523
+ populate_flat_taxonomies(data.terms);
524
+ }
525
+ });
526
+ }
527
+
528
+ /**
529
+ * Populate flat taxonomy textareas
530
+ * @param object
531
+ */
532
+ function populate_flat_taxonomies(terms)
533
+ {
534
+ $.each(terms, function(i, v){
535
+ var textarea = $('#' + i);
536
+ $(textarea).val(v.join(','));
537
+ });
538
+ }
539
+
540
+
541
+ /**
542
+ * Set WP Taxonomy Suggest (Flat taxonomies)
543
+ */
544
+ function set_wp_suggest(form)
545
+ {
546
+ var tagfields = $(form).find('[data-autotag]');
547
+ $.each(tagfields, function(i, v){
548
+ var taxonomy = $(this).attr('data-taxonomy');
549
+ $(this).suggest(ajaxurl + '?action=ajax-tag-search&tax=' + taxonomy , {multiple:true, multipleSep: ","});
550
+ });
551
  }
552
 
553
 
557
  function revert_quick_edit()
558
  {
559
  $('.np-quickedit-error').hide();
560
+ remove_quick_edit_overlay();
561
  $('.sortable .quick-edit').remove();
562
  $('.row').show();
563
  }
564
 
565
+ /**
566
+ * Show the Quick edit overlay
567
+ */
568
+ function show_quick_edit_overlay()
569
+ {
570
+ $('body').append('<div class="np-quick-edit-overlay"></div>');
571
+ setTimeout(function(){
572
+ $('.np-quick-edit-overlay').addClass('active');
573
+ }, 50);
574
+ }
575
+
576
+ /**
577
+ * Remove the Quick edit overlay
578
+ */
579
+ function remove_quick_edit_overlay()
580
+ {
581
+ $('.np-quick-edit-overlay').removeClass('active').remove();
582
+ }
583
+
584
 
585
  /**
586
  * Submit the Quick Edit Form
596
  datatype: 'json',
597
  data: $(form).serialize() + '&action=npquickedit&nonce=' + nestedpages.np_nonce + '&syncmenu=' + syncmenu,
598
  success: function(data){
599
+ console.log(data);
600
  if (data.status === 'error'){
601
  np_remove_qe_loading(form);
602
  $(form).find('.np-quickedit-error').text(data.message).show();
621
  var status = $(row).find('.status');
622
  if ( (data._status !== 'publish') && (data._status !== 'future') ){
623
  $(status).text('(' + data._status + ')');
624
+ } else if (data.keep_private === 'private') {
625
+ $(status).text('(' + data.keep_private + ')');
626
  } else {
627
  $(status).text('');
628
  }
629
 
630
+ // Password Lock Icon
631
+ if ( data.post_password !== "" ){
632
+ var statustext = $(status).text();
633
+ statustext += ' <i class="np-icon-lock"></i>';
634
+ $(status).html(statustext);
635
+ }
636
+
637
  // Hide / Show in Nav
638
  var nav_status = $(row).find('.nav-status');
639
  if ( (data.nav_status == 'hide') ){
660
  $(button).attr('data-slug', data.post_name);
661
  $(button).attr('data-commentstatus', data.comment_status);
662
  $(button).attr('data-status', data._status);
663
+
664
+ // Private Status
665
+ if ( data.keep_private === 'private' ) {
666
+ $(button).attr('data-status', 'private');
667
+ }
668
+
669
  $(button).attr('data-author', data.post_author);
670
  $(button).attr('data-np-status', data.np_status);
671
+ $(button).attr('data-password', data.post_password);
672
 
673
  $(button).attr('data-navstatus', data.nav_status);
674
  $(button).attr('data-navtitle', data.np_nav_title);
684
 
685
  np_remove_taxonomy_classes(li);
686
  np_add_category_classes(li, data);
687
+ np_add_h_taxonomy_classes(li, data);
688
+ np_add_f_taxonomy_classes(li, data);
689
 
690
  }
691
 
701
  if ( classes[i].substring(0, 3) === 'in-'){
702
  $(row).removeClass(classes[i]);
703
  }
704
+ if ( classes[i].substring(0, 4) === 'inf-'){
705
+ $(row).removeClass(classes[i]);
706
+ }
707
  }
708
  }
709
 
724
 
725
 
726
  /**
727
+ * Add Hierarchical Taxonomy Classes to the row
728
  */
729
+ function np_add_h_taxonomy_classes(row, data)
730
  {
731
  if ( data.hasOwnProperty('tax_input') )
732
  {
742
  }
743
 
744
 
745
+ /**
746
+ * Add Flat Taxonomy Classes to the row
747
+ */
748
+ function np_add_f_taxonomy_classes(row, data)
749
+ {
750
+ if ( data.hasOwnProperty('flat_tax') )
751
+ {
752
+ var taxonomies = data.flat_tax;
753
+ $.each(taxonomies, function(tax, terms){
754
+ for (i = 0; i < terms.length; i++){
755
+ var taxclass = 'inf-' + tax + '-nps-' + terms[i];
756
+ $(row).addClass(taxclass);
757
+ }
758
+ });
759
+
760
+ }
761
+ }
762
+
763
+
764
  /**
765
  * Remove loading state from Quick Edit form
766
  */
779
  $(row).addClass('np-updated');
780
  $(row).show();
781
  $(form).parent('.quick-edit').remove();
782
+ remove_quick_edit_overlay();
783
  np_set_borders();
784
  setTimeout(function(){
785
  $(row).addClass('np-updated-show');
876
  $(form).find('.link_target').removeAttr('checked');
877
  }
878
 
879
+ show_quick_edit_overlay();
880
+
881
  $(form).show();
882
  }
883
 
assets/js/nestedpages.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(t){function a(){var a=t(".nplist");t(".page-row").removeClass("no-border"),t.each(a,function(){t(this).find(".page-row:visible:first").addClass("no-border")})}function e(a){var e=t(a.placeholder).parents("ol").length,s=t(".sortable").width(),i=40*e-40,r=s-i;t(a.placeholder).width(r).css("margin-left",i+"px"),n(a)}function n(a){var e=t(a.placeholder).parent("ol");t(e).is(":visible")||t(e).show()}function s(){t(".child-toggle").each(function(){var a=t(this).parent(".row").parent("li");if(t(a).children("ol").length>0){var e=t(a).children("ol:visible").length>0?"np-icon-arrow-down":"np-icon-arrow-right";t(this).html('<a href="#"><i class="'+e+'"></i></a>')}else t(this).empty()})}function r(){t("#np-error").hide(),t("#nested-loading").show();var a=t(".np-sync-menu").is(":checked")?"sync":"nosync";list=t("ol.sortable").nestedSortable("toHierarchy",{startDepthCount:0}),t.ajax({url:ajaxurl,type:"post",datatype:"json",data:{action:"npsort",nonce:nestedpages.np_nonce,list:list,syncmenu:a},success:function(a){"error"===a.status?(t("#np-error").text(a.message).show(),t("#nested-loading").hide()):t("#nested-loading").hide()}})}function o(a){t.ajax({url:ajaxurl,type:"post",datatype:"json",data:{action:"npsyncmenu",nonce:nestedpages.np_nonce,syncmenu:a},success:function(t){"error"===t.status&&alert("There was an error saving the sync setting.")}})}function d(a){var e={id:t(a).attr("data-id"),title:t(a).attr("data-title"),slug:t(a).attr("data-slug"),author:t(a).attr("data-author"),cs:t(a).attr("data-commentstatus"),status:t(a).attr("data-status"),template:t(a).attr("data-template"),month:t(a).attr("data-month"),day:t(a).attr("data-day"),year:t(a).attr("data-year"),hour:t(a).attr("data-hour"),minute:t(a).attr("data-minute"),navstatus:t(a).attr("data-navstatus"),npstatus:t(a).attr("data-np-status"),navtitle:t(a).attr("data-navtitle"),navtitleattr:t(a).attr("data-navtitleattr"),navcss:t(a).attr("data-navcss"),linktarget:t(a).attr("data-linktarget")},n=t(a).closest(".row").parent("li");e.taxonomies=[];var s=t(n).attr("class").split(/\s+/);for(i=0;i<s.length;i++)"in-"===s[i].substring(0,3)&&e.taxonomies.push(s[i]);if(t(n).children("ol").length>0)var r=t(n).children("ol"),o=t(".quick-edit-form").clone().insertBefore(r);else var o=t(".quick-edit-form").clone().appendTo(n);t(o).siblings(".row").hide();l(o,e)}function l(a,e){if(t(a).find(".np_id").val(e.id),t(a).find(".np_title").val(e.title),t(a).find(".np_slug").val(e.slug),t(a).find(".np_author select").val(e.author),t(a).find(".np_template").val(e.template),t(a).find(".np_status").val(e.status),t(a).find(".np_nav_title").val(e.navtitle),t(a).find(".np_title_attribute").val(e.navtitleattr),t(a).find(".np_nav_css_classes").val(e.navcss),"open"===e.cs&&t(a).find(".np_cs").prop("checked","checked"),"hide"===e.npstatus?t(a).find(".np_status").prop("checked","checked"):t(a).find(".np_status").removeAttr("checked"),"hide"===e.navstatus?t(a).find(".np_nav_status").prop("checked","checked"):t(a).find(".np_nav_status").removeAttr("checked"),"_blank"===e.linktarget?t(a).find(".link_target").prop("checked","checked"):t(a).find(".link_target").removeAttr("checked"),t(a).find('select[name="mm"]').val(e.month),t(a).find('input[name="jj"]').val(e.day),t(a).find('input[name="aa"]').val(e.year),t(a).find('input[name="hh"]').val(e.hour),t(a).find('input[name="mn"]').val(e.minute),e.hasOwnProperty("taxonomies")){var n=e.taxonomies;for(i=0;i<n.length;i++){var s="#"+n[i];t(a).find(s).prop("checked","checked")}}t(a).show()}function c(){t(".np-quickedit-error").hide(),t(".sortable .quick-edit").remove(),t(".row").show()}function p(a){t(".np-quickedit-error").hide();var e=t(".np-sync-menu").is(":checked")?"sync":"nosync";t.ajax({url:ajaxurl,type:"post",datatype:"json",data:t(a).serialize()+"&action=npquickedit&nonce="+nestedpages.np_nonce+"&syncmenu="+e,success:function(e){"error"===e.status?(g(a),t(a).find(".np-quickedit-error").text(e.message).show()):(g(a),u(a,e.post_data),m(a))}})}function u(a,e){var n=t(a).parent(".quick-edit").siblings(".row");t(n).find(".title").text(e.post_title);var s=t(n).find(".status");t(s).text("publish"!==e._status&&"future"!==e._status?"("+e._status+")":"");var i=t(n).find(".nav-status");t(i).text("hide"==e.nav_status?"(Hidden)":"");var r=t(n).parent("li");"hide"==e.np_status?(t(r).addClass("np-hide"),t(n).find(".status").after('<i class="np-icon-eye-blocked"></i>')):(t(r).removeClass("np-hide"),t(n).find(".np-icon-eye-blocked").remove());var o=t(n).find(".np-quick-edit");t(o).attr("data-id",e.post_id),t(o).attr("data-template",e.page_template),t(o).attr("data-title",e.post_title),t(o).attr("data-slug",e.post_name),t(o).attr("data-commentstatus",e.comment_status),t(o).attr("data-status",e._status),t(o).attr("data-author",e.post_author),t(o).attr("data-np-status",e.np_status),t(o).attr("data-navstatus",e.nav_status),t(o).attr("data-navtitle",e.np_nav_title),t(o).attr("data-linktarget",e.link_target),t(o).attr("data-navtitleattr",e.np_title_attribute),t(o).attr("data-navcss",e.np_nav_css_classes),t(o).attr("data-month",e.mm),t(o).attr("data-day",e.jj),t(o).attr("data-year",e.aa),t(o).attr("data-hour",e.hh),t(o).attr("data-minute",e.mn),h(r),v(r,e),f(r,e)}function h(a){taxonomies=[];var e=t(a).attr("class").split(/\s+/);for(i=0;i<e.length;i++)"in-"===e[i].substring(0,3)&&t(a).removeClass(e[i])}function v(a,e){if(e.hasOwnProperty("post_category")){var n=e.post_category;for(i=0;i<n.length;i++){var s="in-category-"+n[i];t(a).addClass(s)}}}function f(a,e){if(e.hasOwnProperty("tax_input")){var n=e.tax_input;t.each(n,function(e,n){for(i=0;i<n.length;i++){var s="in-"+e+"-"+n[i];t(a).addClass(s)}})}}function g(a){t(a).find(".np-save-quickedit, .np-save-quickedit-redirect").removeAttr("disabled"),t(a).find(".np-qe-loading").hide()}function m(e){var n=t(e).parent(".quick-edit").siblings(".row");t(n).addClass("np-updated"),t(n).show(),t(e).parent(".quick-edit").remove(),a(),setTimeout(function(){t(n).addClass("np-updated-show")},1500)}function _(a){var e={id:t(a).attr("data-id"),url:t(a).attr("data-url"),title:t(a).attr("data-title"),status:t(a).attr("data-status"),navstatus:t(a).attr("data-navstatus"),npstatus:t(a).attr("data-np-status"),linktarget:t(a).attr("data-linktarget"),parentid:t(a).attr("data-parentid"),navtitleattr:t(a).attr("data-navtitleattr"),navcss:t(a).attr("data-navcss")},n=t(a).closest(".row").parent("li");if(t(n).children("ol").length>0)var s=t(n).children("ol"),i=t(".quick-edit-form-redirect").clone().insertBefore(s);else var i=t(".quick-edit-form-redirect").clone().appendTo(n);t(i).siblings(".row").hide();t(i).show(),k(i,e)}function k(a,e){t(a).find(".np_id").val(e.id),t(a).find(".np_title").val(e.title),t(a).find(".np_author select").val(e.author),t(a).find(".np_status").val(e.status),t(a).find(".np_content").val(e.url),t(a).find(".np_parent_id").val(e.parentid),t(a).find(".np_title_attribute").val(e.navtitleattr),t(a).find(".np_nav_css_classes").val(e.navcss),"hide"===e.npstatus?t(a).find(".np_status").prop("checked","checked"):t(a).find(".np_status").removeAttr("checked"),"hide"===e.navstatus?t(a).find(".np_nav_status").prop("checked","checked"):t(a).find(".np_nav_status").removeAttr("checked"),"_blank"===e.linktarget?t(a).find(".link_target").prop("checked","checked"):t(a).find(".link_target").removeAttr("checked"),t(a).show()}function w(a){t(".np-quickedit-error").hide();var e=t(".np-sync-menu").is(":checked")?"sync":"nosync";t.ajax({url:ajaxurl,type:"post",datatype:"json",data:t(a).serialize()+"&action=npquickeditredirect&nonce="+nestedpages.np_nonce+"&syncmenu="+e,success:function(e){console.log(e),"error"===e.status?(g(a),t(a).find(".np-quickedit-error").text(e.message).show()):(g(a),y(a,e.post_data),m(a))},error:function(){g(a),t(a).find(".np-quickedit-error").text("The form could not be saved at this time.").show()}})}function y(a,e){var n=t(a).parent(".quick-edit").siblings(".row");t(n).find(".title").html(e.post_title+' <i class="np-icon-link"></i>');var s=t(n).find(".status");t(s).text("publish"!==e._status&&"future"!==e._status?"("+e._status+")":"");var i=t(n).find(".nav-status");t(i).text("hide"==e.nav_status?"(Hidden)":"");var r=t(n).parent("li");"hide"==e.np_status?(t(r).addClass("np-hide"),t(n).find(".status").after('<i class="np-icon-eye-blocked"></i>')):(t(r).removeClass("np-hide"),t(n).find(".np-icon-eye-blocked").remove());var o=t(n).find(".np-quick-edit-redirect");t(o).attr("data-id",e.post_id),t(o).attr("data-title",e.post_title),t(o).attr("data-url",e.post_content),t(o).attr("data-status",e._status),t(o).attr("data-navstatus",e.nav_status),t(o).attr("data-np-status",e.np_status),t(o).attr("data-linktarget",e.link_target),t(o).attr("data-navtitleattr",e.np_title_attribute),t(o).attr("data-navcss",e.np_nav_css_classes)}function b(){t(".np-link-loading").hide(),t(".np-save-link").removeAttr("disabled")}function x(){t(".np-new-link-error").hide();var a=t(".np-new-link-form").serialize(),e=t(".np-sync-menu").is(":checked")?"sync":"nosync";t.ajax({url:ajaxurl,type:"post",datatype:"json",data:a+"&action=npnewredirect&nonce="+nestedpages.np_nonce+"&syncmenu="+e,success:function(a){console.log(a),"error"===a.status?(b(),t(".np-new-link-error").text(a.message).show()):(b(),C(a.post_data))}})}function C(a){var e='<li id="menuItem_'+a.id+'" class="page-row';"publish"===a._status&&(e+=" published"),e+='">',e+='<div class="row"><div class="child-toggle"></div><div class="row-inner"><i class="np-icon-sub-menu"></i><i class="handle np-icon-menu"></i><a href="'+a.np_link_content+'" class="page-link page-title" target="_blank"><span class="title">'+a.np_link_title+' <i class="np-icon-link"></i></span>',e+="publish"!==a._status?'<span class="status">'+a._status+"</span>":'<span class="status"></span>',"hide"===a.np_status&&(e+='<i class="np-icon-eye-blocked"></i>'),e+="hide"===a.nav_status?'<span class="nav-status">(Hidden)</span>':'<span class="nav-status"></span>',e+='</a><a href="#" class="np-toggle-edit"><i class="np-icon-pencil"></i></a><div class="action-buttons"><a href="#" class="np-btn np-quick-edit-redirect" ',e+='data-id="'+a.id+'"',e+='data-parentid="'+a.parent_id+'"',e+='data-title="'+a.np_link_title+'" ',e+='data-url="'+a.np_link_content+'" ',e+='data-status="'+a._status+'" ',e+='data-np-status="'+a.np_status+'" ',e+='data-navstatus="'+a.nav_status+'" ',e+='data-linktarget="'+a.link_target+'">',e+="Quick Edit</a>",e+="</div></div></div></li>","0"===a.parent_id?t(".nplist:first li:first").after(e):q(e,a),t("#np-link-modal").modal("hide");var n=t("#menuItem_"+a.id).find(".row");j(n)}function q(a,e){var n=t("#menuItem_"+e.parent_id);0===t(n).children("ol").length?(a='<ol class="sortable nplist" style="display:block;">'+a+"</ol>",t(n).append(a)):t(n).find("ol:first").prepend(a),s(),T()}function j(e){t(e).addClass("np-updated"),a(),setTimeout(function(){t(e).addClass("np-updated-show")},1500)}function D(){var a=[],e=t(".page-row:visible");return t.each(e,function(){var e=t(this).attr("id");a.push(e.replace("menuItem_",""))}),a}function T(){var a=D();t.ajax({url:ajaxurl,type:"post",datatype:"json",data:{action:"npnesttoggle",nonce:nestedpages.np_nonce,ids:a},success:function(t){"success"!==t.status&&console.log("There was an error saving toggled pages.")}})}t(document).ready(function(){s(),a()}),t(document).on("click",".child-toggle a",function(e){e.preventDefault();var n=t(this).parent(".child-toggle").parent(".row").siblings("ol");t(this).find("i").toggleClass("np-icon-arrow-down").toggleClass("np-icon-arrow-right"),t(n).toggle(),a(),T()}),t(document).on("click",".nestedpages-toggleall a",function(e){e.preventDefault(),"closed"==t(this).attr("data-toggle")?(t(".nestedpages ol li ol").show(),t(this).attr("data-toggle","opened"),t(this).text(nestedpages.collapse_text),t(".child-toggle i").removeClass("np-icon-arrow-right").addClass("np-icon-arrow-down"),c(),a()):(t(".nestedpages ol li ol").hide(),t(this).attr("data-toggle","closed"),t(this).text(nestedpages.expand_text),t(".child-toggle i").removeClass("np-icon-arrow-down").addClass("np-icon-arrow-right"),c(),a()),T()}),t(document).on("click",".np-toggle-hidden",function(e){e.preventDefault();var n=t(this).attr("href");"show"===n?(t(this).attr("href","hide"),t(this).text(nestedpages.show_hidden),t(".np-hide").removeClass("shown").hide(),a()):(t(this).attr("href","show"),t(this).text(nestedpages.hide_hidden),t(".np-hide").addClass("shown").show(),a())}),t(document).on("click",".np-toggle-publish",function(a){a.preventDefault();var e=t(this).attr("href");t(".np-toggle-publish").removeClass("active"),t(this).addClass("active"),"#published"==e?(t(".nplist .page-row").hide(),t(".nplist .published").show()):t(".nplist .page-row").show()}),t(document).on("click",".np-toggle-edit",function(a){a.preventDefault();var e=t(this).siblings(".action-buttons");t(e).is(":visible")?(t(this).removeClass("active"),t(e).hide()):(t(this).addClass("active"),t(e).show())});var A=function(){var t=0;return function(a,e){clearTimeout(t),t=setTimeout(a,e)}}();t(window).resize(function(){A(function(){t(".action-buttons").removeAttr("style"),t(".np-toggle-edit").removeClass("active")},500)}),t(document).ready(function(){t(".sortable").not(".no-sort").nestedSortable({items:"li",toleranceElement:"> .row",handle:".handle",placeholder:"ui-sortable-placeholder",start:function(t,a){a.placeholder.height(a.item.height())},sort:function(t,a){e(a)},stop:function(){setTimeout(function(){s(),a()},100),r()},update:function(){}})}),t(document).ready(function(){"1"===nestedpages.syncmenu&&o("sync")}),t(".np-sync-menu").on("change",function(){var a=t(this).is(":checked")?"sync":"nosync";o(a)}),t(document).on("click",".np-quick-edit",function(a){a.preventDefault(),c(),d(t(this))}),t(document).on("click",".np-cancel-quickedit",function(a){var e=t(this).parents(".page-row");c(e),a.preventDefault()}),t(document).on("click",".np-save-quickedit",function(a){a.preventDefault(),t(".row").removeClass("np-updated").removeClass("np-updated-show");var e=t(this).parents("form");t(this).attr("disabled","disabled"),t(e).find(".np-qe-loading").show(),p(e)}),t(document).on("click",".np-toggle-taxonomies",function(){t(this).parents("form").find(".np-taxonomies").toggle()}),t(document).on("click",".np-toggle-menuoptions",function(){t(this).parents("form").find(".np-menuoptions").toggle()}),t(document).on("click",".np-quick-edit-redirect",function(a){a.preventDefault(),c(),_(t(this))}),t(document).on("click",".np-save-quickedit-redirect",function(a){a.preventDefault(),t(".row").removeClass("np-updated").removeClass("np-updated-show");var e=t(this).parents("form");t(this).attr("disabled","disabled"),t(e).find(".np-qe-loading").show(),w(e)}),t(document).on("click",".open-redirect-modal",function(a){a.preventDefault();var e=t(this).attr("data-parentid");t(".np-modal-form").find("input").val(""),t(".np-modal-form").find(".parent_id").val(e),t("#np-add-link-title").text("0"===e?nestedpages.add_link:nestedpages.add_child_link),t("#np-link-modal").modal("show")}),t(document).on("click",".np-save-link",function(a){a.preventDefault(),t(".np-new-link-error").hide(),t(".np-link-loading").show(),t(this).attr("disabled","disabled"),x()})});
1
+ jQuery(function(t){function a(){var a=t(".nplist");t(".page-row").removeClass("no-border"),t.each(a,function(){t(this).find(".page-row:visible:first").addClass("no-border")})}function e(a){var e=t(a.placeholder).parents("ol").length,s=t(".sortable").width(),i=40*e-40,o=s-i;t(a.placeholder).width(o).css("margin-left",i+"px"),n(a)}function n(a){var e=t(a.placeholder).parent("ol");t(e).is(":visible")||t(e).show()}function s(){t(".child-toggle").each(function(){var a=t(this).parent(".row").parent("li");if(t(a).children("ol").length>0){var e=t(a).children("ol:visible").length>0?"np-icon-arrow-down":"np-icon-arrow-right";t(this).html('<a href="#"><i class="'+e+'"></i></a>')}else t(this).empty()})}function o(){t("#np-error").hide(),t("#nested-loading").show();var a=t(".np-sync-menu").is(":checked")?"sync":"nosync";list=t("ol.sortable").nestedSortable("toHierarchy",{startDepthCount:0}),t.ajax({url:ajaxurl,type:"post",datatype:"json",data:{action:"npsort",nonce:nestedpages.np_nonce,list:list,syncmenu:a},success:function(a){"error"===a.status?(t("#np-error").text(a.message).show(),t("#nested-loading").hide()):t("#nested-loading").hide()}})}function r(a){t.ajax({url:ajaxurl,type:"post",datatype:"json",data:{action:"npsyncmenu",nonce:nestedpages.np_nonce,syncmenu:a},success:function(t){"error"===t.status&&alert("There was an error saving the sync setting.")}})}function d(a){var e={id:t(a).attr("data-id"),title:t(a).attr("data-title"),slug:t(a).attr("data-slug"),author:t(a).attr("data-author"),cs:t(a).attr("data-commentstatus"),status:t(a).attr("data-status"),template:t(a).attr("data-template"),month:t(a).attr("data-month"),day:t(a).attr("data-day"),year:t(a).attr("data-year"),hour:t(a).attr("data-hour"),minute:t(a).attr("data-minute"),navstatus:t(a).attr("data-navstatus"),npstatus:t(a).attr("data-np-status"),navtitle:t(a).attr("data-navtitle"),navtitleattr:t(a).attr("data-navtitleattr"),navcss:t(a).attr("data-navcss"),linktarget:t(a).attr("data-linktarget"),password:t(a).attr("data-password")},n=t(a).closest(".row").parent("li");e.h_taxonomies=[],e.f_taxonomies=[];var s=t(n).attr("class").split(/\s+/);for(i=0;i<s.length;i++)"in-"===s[i].substring(0,3)&&e.h_taxonomies.push(s[i]),"inf-"===s[i].substring(0,4)&&e.f_taxonomies.push(s[i]);if(t(n).children("ol").length>0)var o=t(n).children("ol"),r=t(".quick-edit-form").clone().insertBefore(o);else var r=t(".quick-edit-form").clone().appendTo(n);t(r).siblings(".row").hide();l(r,e)}function l(a,e){if(t(a).find(".np_id").val(e.id),t(a).find(".np_title").val(e.title),t(a).find(".np_slug").val(e.slug),t(a).find(".np_author select").val(e.author),t(a).find(".np_template").val(e.template),t(a).find(".np_status").val(e.status),t(a).find(".np_nav_title").val(e.navtitle),t(a).find(".np_title_attribute").val(e.navtitleattr),t(a).find(".np_nav_css_classes").val(e.navcss),t(a).find(".post_password").val(e.password),"open"===e.cs&&t(a).find(".np_cs").prop("checked","checked"),"private"===e.status&&(t(a).find(".post_password").prop("readonly",!0),t(a).find(".keep_private").prop("checked",!0)),"hide"===e.npstatus?t(a).find(".np_status").prop("checked","checked"):t(a).find(".np_status").removeAttr("checked"),"hide"===e.navstatus?t(a).find(".np_nav_status").prop("checked","checked"):t(a).find(".np_nav_status").removeAttr("checked"),"_blank"===e.linktarget?t(a).find(".link_target").prop("checked","checked"):t(a).find(".link_target").removeAttr("checked"),"private"===e.status&&t(a).find(".np_status").val("publish"),t(a).find('select[name="mm"]').val(e.month),t(a).find('input[name="jj"]').val(e.day),t(a).find('input[name="aa"]').val(e.year),t(a).find('input[name="hh"]').val(e.hour),t(a).find('input[name="mn"]').val(e.minute),e.hasOwnProperty("h_taxonomies")){var n=e.h_taxonomies;for(i=0;i<n.length;i++){var s="#"+n[i];t(a).find(s).prop("checked","checked")}}f(),t(a).show(),e.hasOwnProperty("f_taxonomies")&&(c(e.f_taxonomies),h(a))}function c(t){var a={};for(i=0;i<t.length;i++){var e=t[i].split("-"),n=e.indexOf("nps"),s=e.splice(n+1);s=s.join("-");var o=t[i].split("-").splice(0,n);o.shift("inf");var r=o.join("-");r in a||(a[r]=[]);var d=a[r];d.push(s)}p(a)}function p(a){t.ajax({url:ajaxurl,type:"post",datatype:"json",data:{action:"gettax",nonce:nestedpages.np_nonce,terms:a},success:function(t){u(t.terms)}})}function u(a){t.each(a,function(a,e){var n=t("#"+a);t(n).val(e.join(","))})}function h(a){var e=t(a).find("[data-autotag]");t.each(e,function(){var a=t(this).attr("data-taxonomy");t(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+a,{multiple:!0,multipleSep:","})})}function v(){t(".np-quickedit-error").hide(),g(),t(".sortable .quick-edit").remove(),t(".row").show()}function f(){t("body").append('<div class="np-quick-edit-overlay"></div>'),setTimeout(function(){t(".np-quick-edit-overlay").addClass("active")},50)}function g(){t(".np-quick-edit-overlay").removeClass("active").remove()}function m(a){t(".np-quickedit-error").hide();var e=t(".np-sync-menu").is(":checked")?"sync":"nosync";t.ajax({url:ajaxurl,type:"post",datatype:"json",data:t(a).serialize()+"&action=npquickedit&nonce="+nestedpages.np_nonce+"&syncmenu="+e,success:function(e){console.log(e),"error"===e.status?(x(a),t(a).find(".np-quickedit-error").text(e.message).show()):(x(a),_(a,e.post_data),C(a))}})}function _(a,e){var n=t(a).parent(".quick-edit").siblings(".row");t(n).find(".title").text(e.post_title);var s=t(n).find(".status");if(t(s).text("publish"!==e._status&&"future"!==e._status?"("+e._status+")":"private"===e.keep_private?"("+e.keep_private+")":""),""!==e.post_password){var i=t(s).text();i+=' <i class="np-icon-lock"></i>',t(s).html(i)}var o=t(n).find(".nav-status");t(o).text("hide"==e.nav_status?"(Hidden)":"");var r=t(n).parent("li");"hide"==e.np_status?(t(r).addClass("np-hide"),t(n).find(".status").after('<i class="np-icon-eye-blocked"></i>')):(t(r).removeClass("np-hide"),t(n).find(".np-icon-eye-blocked").remove());var d=t(n).find(".np-quick-edit");t(d).attr("data-id",e.post_id),t(d).attr("data-template",e.page_template),t(d).attr("data-title",e.post_title),t(d).attr("data-slug",e.post_name),t(d).attr("data-commentstatus",e.comment_status),t(d).attr("data-status",e._status),"private"===e.keep_private&&t(d).attr("data-status","private"),t(d).attr("data-author",e.post_author),t(d).attr("data-np-status",e.np_status),t(d).attr("data-password",e.post_password),t(d).attr("data-navstatus",e.nav_status),t(d).attr("data-navtitle",e.np_nav_title),t(d).attr("data-linktarget",e.link_target),t(d).attr("data-navtitleattr",e.np_title_attribute),t(d).attr("data-navcss",e.np_nav_css_classes),t(d).attr("data-month",e.mm),t(d).attr("data-day",e.jj),t(d).attr("data-year",e.aa),t(d).attr("data-hour",e.hh),t(d).attr("data-minute",e.mn),k(r),w(r,e),y(r,e),b(r,e)}function k(a){taxonomies=[];var e=t(a).attr("class").split(/\s+/);for(i=0;i<e.length;i++)"in-"===e[i].substring(0,3)&&t(a).removeClass(e[i]),"inf-"===e[i].substring(0,4)&&t(a).removeClass(e[i])}function w(a,e){if(e.hasOwnProperty("post_category")){var n=e.post_category;for(i=0;i<n.length;i++){var s="in-category-"+n[i];t(a).addClass(s)}}}function y(a,e){if(e.hasOwnProperty("tax_input")){var n=e.tax_input;t.each(n,function(e,n){for(i=0;i<n.length;i++){var s="in-"+e+"-"+n[i];t(a).addClass(s)}})}}function b(a,e){if(e.hasOwnProperty("flat_tax")){var n=e.flat_tax;t.each(n,function(e,n){for(i=0;i<n.length;i++){var s="inf-"+e+"-nps-"+n[i];t(a).addClass(s)}})}}function x(a){t(a).find(".np-save-quickedit, .np-save-quickedit-redirect").removeAttr("disabled"),t(a).find(".np-qe-loading").hide()}function C(e){var n=t(e).parent(".quick-edit").siblings(".row");t(n).addClass("np-updated"),t(n).show(),t(e).parent(".quick-edit").remove(),g(),a(),setTimeout(function(){t(n).addClass("np-updated-show")},1500)}function q(a){var e={id:t(a).attr("data-id"),url:t(a).attr("data-url"),title:t(a).attr("data-title"),status:t(a).attr("data-status"),navstatus:t(a).attr("data-navstatus"),npstatus:t(a).attr("data-np-status"),linktarget:t(a).attr("data-linktarget"),parentid:t(a).attr("data-parentid"),navtitleattr:t(a).attr("data-navtitleattr"),navcss:t(a).attr("data-navcss")},n=t(a).closest(".row").parent("li");if(t(n).children("ol").length>0)var s=t(n).children("ol"),i=t(".quick-edit-form-redirect").clone().insertBefore(s);else var i=t(".quick-edit-form-redirect").clone().appendTo(n);t(i).siblings(".row").hide();t(i).show(),j(i,e)}function j(a,e){t(a).find(".np_id").val(e.id),t(a).find(".np_title").val(e.title),t(a).find(".np_author select").val(e.author),t(a).find(".np_status").val(e.status),t(a).find(".np_content").val(e.url),t(a).find(".np_parent_id").val(e.parentid),t(a).find(".np_title_attribute").val(e.navtitleattr),t(a).find(".np_nav_css_classes").val(e.navcss),"hide"===e.npstatus?t(a).find(".np_status").prop("checked","checked"):t(a).find(".np_status").removeAttr("checked"),"hide"===e.navstatus?t(a).find(".np_nav_status").prop("checked","checked"):t(a).find(".np_nav_status").removeAttr("checked"),"_blank"===e.linktarget?t(a).find(".link_target").prop("checked","checked"):t(a).find(".link_target").removeAttr("checked"),f(),t(a).show()}function D(a){t(".np-quickedit-error").hide();var e=t(".np-sync-menu").is(":checked")?"sync":"nosync";t.ajax({url:ajaxurl,type:"post",datatype:"json",data:t(a).serialize()+"&action=npquickeditredirect&nonce="+nestedpages.np_nonce+"&syncmenu="+e,success:function(e){console.log(e),"error"===e.status?(x(a),t(a).find(".np-quickedit-error").text(e.message).show()):(x(a),T(a,e.post_data),C(a))},error:function(){x(a),t(a).find(".np-quickedit-error").text("The form could not be saved at this time.").show()}})}function T(a,e){var n=t(a).parent(".quick-edit").siblings(".row");t(n).find(".title").html(e.post_title+' <i class="np-icon-link"></i>');var s=t(n).find(".status");t(s).text("publish"!==e._status&&"future"!==e._status?"("+e._status+")":"");var i=t(n).find(".nav-status");t(i).text("hide"==e.nav_status?"(Hidden)":"");var o=t(n).parent("li");"hide"==e.np_status?(t(o).addClass("np-hide"),t(n).find(".status").after('<i class="np-icon-eye-blocked"></i>')):(t(o).removeClass("np-hide"),t(n).find(".np-icon-eye-blocked").remove());var r=t(n).find(".np-quick-edit-redirect");t(r).attr("data-id",e.post_id),t(r).attr("data-title",e.post_title),t(r).attr("data-url",e.post_content),t(r).attr("data-status",e._status),t(r).attr("data-navstatus",e.nav_status),t(r).attr("data-np-status",e.np_status),t(r).attr("data-linktarget",e.link_target),t(r).attr("data-navtitleattr",e.np_title_attribute),t(r).attr("data-navcss",e.np_nav_css_classes)}function A(){t(".np-link-loading").hide(),t(".np-save-link").removeAttr("disabled")}function O(){t(".np-new-link-error").hide();var a=t(".np-new-link-form").serialize(),e=t(".np-sync-menu").is(":checked")?"sync":"nosync";t.ajax({url:ajaxurl,type:"post",datatype:"json",data:a+"&action=npnewredirect&nonce="+nestedpages.np_nonce+"&syncmenu="+e,success:function(a){console.log(a),"error"===a.status?(A(),t(".np-new-link-error").text(a.message).show()):(A(),P(a.post_data))}})}function P(a){var e='<li id="menuItem_'+a.id+'" class="page-row';"publish"===a._status&&(e+=" published"),e+='">',e+='<div class="row"><div class="child-toggle"></div><div class="row-inner"><i class="np-icon-sub-menu"></i><i class="handle np-icon-menu"></i><a href="'+a.np_link_content+'" class="page-link page-title" target="_blank"><span class="title">'+a.np_link_title+' <i class="np-icon-link"></i></span>',e+="publish"!==a._status?'<span class="status">'+a._status+"</span>":'<span class="status"></span>',"hide"===a.np_status&&(e+='<i class="np-icon-eye-blocked"></i>'),e+="hide"===a.nav_status?'<span class="nav-status">(Hidden)</span>':'<span class="nav-status"></span>',e+='</a><a href="#" class="np-toggle-edit"><i class="np-icon-pencil"></i></a><div class="action-buttons"><a href="#" class="np-btn np-quick-edit-redirect" ',e+='data-id="'+a.id+'"',e+='data-parentid="'+a.parent_id+'"',e+='data-title="'+a.np_link_title+'" ',e+='data-url="'+a.np_link_content+'" ',e+='data-status="'+a._status+'" ',e+='data-np-status="'+a.np_status+'" ',e+='data-navstatus="'+a.nav_status+'" ',e+='data-linktarget="'+a.link_target+'">',e+="Quick Edit</a>",e+="</div></div></div></li>","0"===a.parent_id?t(".nplist:first li:first").after(e):z(e,a),t("#np-link-modal").modal("hide");var n=t("#menuItem_"+a.id).find(".row");H(n)}function z(a,e){var n=t("#menuItem_"+e.parent_id);0===t(n).children("ol").length?(a='<ol class="sortable nplist" style="display:block;">'+a+"</ol>",t(n).append(a)):t(n).find("ol:first").prepend(a),s(),S()}function H(e){t(e).addClass("np-updated"),a(),setTimeout(function(){t(e).addClass("np-updated-show")},1500)}function I(){var a=[],e=t(".page-row:visible");return t.each(e,function(){var e=t(this).attr("id");a.push(e.replace("menuItem_",""))}),a}function S(){var a=I();t.ajax({url:ajaxurl,type:"post",datatype:"json",data:{action:"npnesttoggle",nonce:nestedpages.np_nonce,ids:a},success:function(t){"success"!==t.status&&console.log("There was an error saving toggled pages.")}})}t(document).ready(function(){s(),a()}),t(document).on("click",".child-toggle a",function(e){e.preventDefault();var n=t(this).parent(".child-toggle").parent(".row").siblings("ol");t(this).find("i").toggleClass("np-icon-arrow-down").toggleClass("np-icon-arrow-right"),t(n).toggle(),a(),S()}),t(document).on("click",".nestedpages-toggleall a",function(e){e.preventDefault(),"closed"==t(this).attr("data-toggle")?(t(".nestedpages ol li ol").show(),t(this).attr("data-toggle","opened"),t(this).text(nestedpages.collapse_text),t(".child-toggle i").removeClass("np-icon-arrow-right").addClass("np-icon-arrow-down"),v(),a()):(t(".nestedpages ol li ol").hide(),t(this).attr("data-toggle","closed"),t(this).text(nestedpages.expand_text),t(".child-toggle i").removeClass("np-icon-arrow-down").addClass("np-icon-arrow-right"),v(),a()),S()}),t(document).on("click",".np-toggle-hidden",function(e){e.preventDefault();var n=t(this).attr("href");"show"===n?(t(this).attr("href","hide"),t(this).text(nestedpages.show_hidden),t(".np-hide").removeClass("shown").hide(),a()):(t(this).attr("href","show"),t(this).text(nestedpages.hide_hidden),t(".np-hide").addClass("shown").show(),a())}),t(document).on("click",".np-toggle-publish",function(a){a.preventDefault();var e=t(this).attr("href");t(".np-toggle-publish").removeClass("active"),t(this).addClass("active"),"#published"==e?(t(".nplist .page-row").hide(),t(".nplist .published").show()):t(".nplist .page-row").show()}),t(document).on("click",".np-toggle-edit",function(a){a.preventDefault();var e=t(this).siblings(".action-buttons");t(e).is(":visible")?(t(this).removeClass("active"),t(e).hide()):(t(this).addClass("active"),t(e).show())});var B=function(){var t=0;return function(a,e){clearTimeout(t),t=setTimeout(a,e)}}();t(window).resize(function(){B(function(){t(".action-buttons").removeAttr("style"),t(".np-toggle-edit").removeClass("active")},500)}),t(document).ready(function(){t(".sortable").not(".no-sort").nestedSortable({items:"li",toleranceElement:"> .row",handle:".handle",placeholder:"ui-sortable-placeholder",start:function(t,a){a.placeholder.height(a.item.height())},sort:function(t,a){e(a)},stop:function(){setTimeout(function(){s(),a()},100),o()},update:function(){}})}),t(document).ready(function(){"1"===nestedpages.syncmenu&&r("sync")}),t(".np-sync-menu").on("change",function(){var a=t(this).is(":checked")?"sync":"nosync";r(a)}),t(document).on("click",".np-quick-edit",function(a){a.preventDefault(),v(),d(t(this))}),t(document).on("click",".np-quick-edit-overlay",function(){v()}),t(document).on("click",".np-cancel-quickedit",function(a){var e=t(this).parents(".page-row");v(e),a.preventDefault()}),t(document).on("click",".np-save-quickedit",function(a){a.preventDefault(),t(".row").removeClass("np-updated").removeClass("np-updated-show");var e=t(this).parents("form");t(this).attr("disabled","disabled"),t(e).find(".np-qe-loading").show(),m(e)}),t(document).on("click",".np-toggle-taxonomies",function(a){t(this).parents("form").find(".np-taxonomies").toggle(),a.preventDefault()}),t(document).on("click",".np-toggle-menuoptions",function(a){a.preventDefault(),t(this).parents("form").find(".np-menuoptions").toggle()}),t(document).on("change",".keep_private",function(){this.checked?t(".post_password").val("").prop("readonly",!0):t(".post_password").prop("readonly",!1)}),t(document).on("click",".np-quick-edit-redirect",function(a){a.preventDefault(),v(),q(t(this))}),t(document).on("click",".np-save-quickedit-redirect",function(a){a.preventDefault(),t(".row").removeClass("np-updated").removeClass("np-updated-show");var e=t(this).parents("form");t(this).attr("disabled","disabled"),t(e).find(".np-qe-loading").show(),D(e)}),t(document).on("click",".open-redirect-modal",function(a){a.preventDefault();var e=t(this).attr("data-parentid");t(".np-modal-form").find("input").val(""),t(".np-modal-form").find(".parent_id").val(e),t("#np-add-link-title").text("0"===e?nestedpages.add_link:nestedpages.add_child_link),t("#np-link-modal").modal("show")}),t(document).on("click",".np-save-link",function(a){a.preventDefault(),t(".np-new-link-error").hide(),t(".np-link-loading").show(),t(this).attr("disabled","disabled"),O()})});
assets/scss/_buttons.scss CHANGED
@@ -20,6 +20,16 @@
20
  }
21
  }
22
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  .np-btn-trash {
25
  background-color: $red;
20
  }
21
  }
22
 
23
+ .np-btn-half {
24
+ float: left;
25
+ width: 47%;
26
+ padding: 3px 0px;
27
+ text-align: center;
28
+ &.btn-right {
29
+ float: right;
30
+ }
31
+ }
32
+
33
 
34
  .np-btn-trash {
35
  background-color: $red;
assets/scss/_icons.scss CHANGED
@@ -1,10 +1,11 @@
1
  @font-face {
2
  font-family: 'nestedpages';
3
- src:url('fonts/nestedpages.eot?-cjbqo6');
4
- src:url('fonts/nestedpages.eot?#iefix-cjbqo6') format('embedded-opentype'),
5
- url('fonts/nestedpages.woff?-cjbqo6') format('woff'),
6
- url('fonts/nestedpages.ttf?-cjbqo6') format('truetype'),
7
- url('fonts/nestedpages.svg?-cjbqo6#nestedpages') format('svg');
 
8
  font-weight: normal;
9
  font-style: normal;
10
  }
1
  @font-face {
2
  font-family: 'nestedpages';
3
+ src: url('fonts/nestedpages.eot');
4
+ }
5
+ @font-face {
6
+ font-family: 'nestedpages';
7
+ src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjB2gAAAC8AAAAYGNtYXDw7eamAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZrIqLaoAAAF4AAARNGhlYWQCOg/3AAASrAAAADZoaGVhA+IB+QAAEuQAAAAkaG10eCkAA2cAABMIAAAAYGxvY2EhfhzgAAATaAAAADJtYXhwACAA8QAAE5wAAAAgbmFtZXH7qkgAABO8AAABaXBvc3QAAwAAAAAVKAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADwsgHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEAEAAAAAMAAgAAgAEAAEAIOYS8LL//f//AAAAAAAg5gDwsv/9//8AAf/jGgQPZQADAAEAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABADMARgHNAXoACQAANzM1Fwc1ITUzFWbngID+5j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iAHkAIABJAGMAbwBNAG8AbwBuAC4AAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==) format('woff');
9
  font-weight: normal;
10
  font-style: normal;
11
  }
assets/scss/_quick-edit.scss CHANGED
@@ -1,9 +1,29 @@
1
  //
2
  // Quick Edit Form
3
  // --------------------------------------------------
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  .nestedpages .quick-edit {
 
 
5
  background-color: $white;
6
  border-radius: 0;
 
7
  .form-interior {
8
  padding: 10px;
9
  }
@@ -48,6 +68,24 @@
48
  float: left;
49
  width: 20%;
50
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  }
52
  .comments {
53
  float: right;
@@ -67,13 +105,12 @@
67
  }
68
  }
69
 
70
- // Taxonomies
71
- .np-toggle-taxonomies, .np-toggle-menuoptions {
72
- clear: both;
73
- float: right;
74
- width: 71%;
75
- text-align: center;
76
  }
 
77
  .np-taxonomies, .np-menuoptions {
78
  display: none;
79
  clear: both;
@@ -95,6 +132,10 @@
95
  background-color: $white;
96
  border: 0;
97
  }
 
 
 
 
98
  } // .np-taxonomy
99
 
100
  // Menu Items
@@ -118,6 +159,24 @@
118
  }
119
  }
120
  } // .np-menuoptions
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  }
122
 
123
  .np-qe-loading {
1
  //
2
  // Quick Edit Form
3
  // --------------------------------------------------
4
+ .np-quick-edit-overlay {
5
+ position: fixed;
6
+ width: 100%;
7
+ height: 100%;
8
+ background-color: rgba(0,0,0,.4);
9
+ z-index: 998;
10
+ top: 0;
11
+ right: 0;
12
+ bottom: 0;
13
+ left: 0;
14
+ opacity: 0;
15
+ transition: opacity 200ms ease;
16
+ &.active {
17
+ opacity: 1;
18
+ transition: opacity 200ms ease;
19
+ }
20
+ }
21
  .nestedpages .quick-edit {
22
+ position: relative;
23
+ z-index: 999;
24
  background-color: $white;
25
  border-radius: 0;
26
+ box-shadow: 0px 0px 4px 0px rgba(0,0,0,.5);
27
  .form-interior {
28
  padding: 10px;
29
  }
68
  float: left;
69
  width: 20%;
70
  }
71
+ &.password {
72
+ label {
73
+ width: 25%;
74
+ }
75
+ input[type="text"]{
76
+ float: left;
77
+ width: 35%;
78
+ }
79
+ .private {
80
+ float: right;
81
+ width: 35%;
82
+ margin-top: 4px;
83
+ label {
84
+ width: auto;
85
+ float: none;
86
+ }
87
+ }
88
+ }
89
  }
90
  .comments {
91
  float: right;
105
  }
106
  }
107
 
108
+ // Toggle Buttons
109
+ .np-toggle-options {
110
+ background-color: darken($white, 5%);
111
+ padding: 5px;
 
 
112
  }
113
+
114
  .np-taxonomies, .np-menuoptions {
115
  display: none;
116
  clear: both;
132
  background-color: $white;
133
  border: 0;
134
  }
135
+ textarea {
136
+ width: 100%;
137
+ height: 6.5em;
138
+ }
139
  } // .np-taxonomy
140
 
141
  // Menu Items
159
  }
160
  }
161
  } // .np-menuoptions
162
+
163
+ // Hide Options (Hide from specific groups)
164
+ .np-hide-options {
165
+ display: none;
166
+ background-color: darken($white, 6%);
167
+ border-radius: 3px;
168
+ clear: both;
169
+ padding: 6px;
170
+ box-sizing: border-box;
171
+ p {
172
+ margin: 0;
173
+ }
174
+ label {
175
+ display: block;
176
+ margin-top: 4px;
177
+ font-style: normal;
178
+ }
179
+ }
180
  }
181
 
182
  .np-qe-loading {
includes/class-nestedpages.php CHANGED
@@ -18,6 +18,7 @@ require_once('class-np-redirects.php');
18
  require_once('class-np-posttypes.php');
19
  require_once('class-np-settings.php');
20
  require_once('class-np-updates.php');
 
21
 
22
  /**
23
  * Primary Plugin Class
@@ -62,6 +63,7 @@ class NestedPages {
62
  add_action( 'wp_ajax_npnesttoggle', 'nestedpages_nesttoggle_handler' );
63
  add_action( 'wp_ajax_npquickeditredirect', 'nestedpages_quickedit_redirect_handler' );
64
  add_action( 'wp_ajax_npnewredirect', 'nestedpages_new_redirect');
 
65
  }
66
  }
67
 
18
  require_once('class-np-posttypes.php');
19
  require_once('class-np-settings.php');
20
  require_once('class-np-updates.php');
21
+ require_once('class-np-handler-gettax.php');
22
 
23
  /**
24
  * Primary Plugin Class
63
  add_action( 'wp_ajax_npnesttoggle', 'nestedpages_nesttoggle_handler' );
64
  add_action( 'wp_ajax_npquickeditredirect', 'nestedpages_quickedit_redirect_handler' );
65
  add_action( 'wp_ajax_npnewredirect', 'nestedpages_new_redirect');
66
+ add_action( 'wp_ajax_gettax', 'nestedpages_get_tax' );
67
  }
68
  }
69
 
includes/class-np-activate.php CHANGED
@@ -14,7 +14,7 @@ class NP_Activate {
14
  public function __construct()
15
  {
16
  register_activation_hook( dirname( dirname(__FILE__) ) . '/nestedpages.php', array($this, 'install') );
17
- $this->version = '1.1.2';
18
  $this->setVersion();
19
  $this->addMenu();
20
  }
14
  public function __construct()
15
  {
16
  register_activation_hook( dirname( dirname(__FILE__) ) . '/nestedpages.php', array($this, 'install') );
17
+ $this->version = '1.1.4';
18
  $this->setVersion();
19
  $this->addMenu();
20
  }
includes/class-np-dependencies.php CHANGED
@@ -26,7 +26,7 @@ class NP_Dependencies {
26
  'nestedpages',
27
  $this->plugin_dir . '/assets/css/nestedpages.css',
28
  array(),
29
- '1.1'
30
  );
31
  }
32
 
@@ -39,7 +39,7 @@ class NP_Dependencies {
39
  {
40
  $screen = get_current_screen();
41
  if ( strpos( $screen->id, 'nestedpages' ) ) :
42
- wp_enqueue_script('thickbox');
43
  wp_enqueue_script('jquery-ui-core');
44
 
45
  wp_enqueue_script('jquery-ui-sortable');
@@ -69,7 +69,7 @@ class NP_Dependencies {
69
  'nestedpages',
70
  $this->plugin_dir . '/assets/js/nestedpages.min.js',
71
  array('jquery'),
72
- '1.0'
73
  );
74
 
75
  $localized_data = array(
26
  'nestedpages',
27
  $this->plugin_dir . '/assets/css/nestedpages.css',
28
  array(),
29
+ '1.1.4'
30
  );
31
  }
32
 
39
  {
40
  $screen = get_current_screen();
41
  if ( strpos( $screen->id, 'nestedpages' ) ) :
42
+ wp_enqueue_script('suggest');
43
  wp_enqueue_script('jquery-ui-core');
44
 
45
  wp_enqueue_script('jquery-ui-sortable');
69
  'nestedpages',
70
  $this->plugin_dir . '/assets/js/nestedpages.min.js',
71
  array('jquery'),
72
+ '1.1.4'
73
  );
74
 
75
  $localized_data = array(
includes/class-np-handler-gettax.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function nestedpages_get_tax()
3
+ {
4
+ new NP_GetTax;
5
+ }
6
+
7
+ require_once('class-np-handler-base.php');
8
+ require_once('class-np-helpers.php');
9
+
10
+ /**
11
+ * Gets term names
12
+ * @return json response
13
+ */
14
+ class NP_GetTax extends NP_BaseHandler {
15
+
16
+ /**
17
+ * Terms to return
18
+ * @var object
19
+ */
20
+ private $terms;
21
+
22
+
23
+ public function __construct()
24
+ {
25
+ parent::__construct();
26
+ $this->loopTaxonomies();
27
+ $this->setResponse();
28
+ $this->sendResponse();
29
+ }
30
+
31
+
32
+ /**
33
+ * Loop through the taxonomies
34
+ */
35
+ private function loopTaxonomies()
36
+ {
37
+ $terms = $this->data['terms'];
38
+ foreach ($terms as $taxonomy => $tax_terms){
39
+ $this->setTermNames($taxonomy, $tax_terms);
40
+ }
41
+ }
42
+
43
+
44
+ /**
45
+ * Get the Term names for each taxonomy
46
+ */
47
+ private function setTermNames($taxonomy, $terms)
48
+ {
49
+ foreach ( $terms as $key => $term )
50
+ {
51
+ $single_term = get_term_by('id', $term, $taxonomy);
52
+ $term_name = $single_term->name;
53
+ $this->terms[$taxonomy][$key] = $term_name;
54
+ }
55
+ }
56
+
57
+ /**
58
+ * Prepare Response
59
+ */
60
+ private function setResponse()
61
+ {
62
+ $this->response = array('status'=>'success', 'terms'=>$this->terms);
63
+ }
64
+ }
includes/class-np-handler-quickedit.php CHANGED
@@ -31,6 +31,7 @@ class NP_QuickEdit_Handler extends NP_BaseHandler {
31
  {
32
  $updated = $this->post_repo->updatePost($this->data);
33
  if ( !$updated ) $this->sendErrorResponse();
 
34
  $this->addData();
35
  $this->response = array(
36
  'status' => 'success',
@@ -40,6 +41,28 @@ class NP_QuickEdit_Handler extends NP_BaseHandler {
40
  }
41
 
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  /**
44
  * Add additional data to the response object
45
  */
@@ -48,6 +71,8 @@ class NP_QuickEdit_Handler extends NP_BaseHandler {
48
  $this->data['nav_status'] = ( isset($this->data['nav_status']) ) ? 'hide' : 'show';
49
  $this->data['np_status'] = ( isset($this->data['nested_pages_status']) ) ? 'hide' : 'show';
50
  $this->data['link_target'] = ( isset($this->data['link_target']) ) ? '_blank' : 'none';
 
 
51
  if ( !isset($_POST['comment_status']) ) $this->data['comment_status'] = 'closed';
52
  }
53
 
31
  {
32
  $updated = $this->post_repo->updatePost($this->data);
33
  if ( !$updated ) $this->sendErrorResponse();
34
+ if ( isset($this->data['tax_input']) ) $this->addFlatTaxonomies();
35
  $this->addData();
36
  $this->response = array(
37
  'status' => 'success',
41
  }
42
 
43
 
44
+ /**
45
+ * Add Flat Taxonomy IDs
46
+ */
47
+ private function addFlatTaxonomies()
48
+ {
49
+ $taxonomies = $this->data['tax_input'];
50
+ foreach($taxonomies as $key => $tax_terms){
51
+ $tax = get_taxonomy($key);
52
+ if ( (!is_taxonomy_hierarchical($tax->name)) && !empty($tax_terms) ){
53
+ unset($this->data['tax_input'][$key]); // remove taxonomy from returned tax input
54
+ $terms = explode(',', $tax_terms);
55
+ foreach ( $terms as $i => $term ){
56
+ if ( $term !== "" ){
57
+ $term_obj = get_term_by('name', $term, $tax->name);
58
+ $this->data['flat_tax'][$key][$i] = $term_obj->term_id; // add the new flat_tax returned object
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+
66
  /**
67
  * Add additional data to the response object
68
  */
71
  $this->data['nav_status'] = ( isset($this->data['nav_status']) ) ? 'hide' : 'show';
72
  $this->data['np_status'] = ( isset($this->data['nested_pages_status']) ) ? 'hide' : 'show';
73
  $this->data['link_target'] = ( isset($this->data['link_target']) ) ? '_blank' : 'none';
74
+ $this->data['keep_private'] = ( isset($this->data['keep_private']) ) ? 'private' : 'public';
75
+ $this->data['_status'] = ( isset($this->data['_status']) ) ? $this->data['_status'] : 'publish';
76
  if ( !isset($_POST['comment_status']) ) $this->data['comment_status'] = 'closed';
77
  }
78
 
includes/class-np-navmenu.php CHANGED
@@ -20,6 +20,12 @@ class NP_NavMenu {
20
  */
21
  private $menu_name;
22
 
 
 
 
 
 
 
23
 
24
  public function __construct()
25
  {
@@ -76,15 +82,22 @@ class NP_NavMenu {
76
 
77
 
78
  /**
79
- * Verify URL Format
80
- * @param string - URL to check
81
- * @return string - formatted URL
82
  */
83
- private function check_url($url)
84
  {
85
- $parsed = parse_url($url);
86
- if (empty($parsed['scheme'])) $url = 'http://' . ltrim($url, '/');
87
- return $url;
 
 
 
 
 
 
 
88
  }
89
 
90
 
@@ -102,63 +115,56 @@ class NP_NavMenu {
102
  'post_parent' => $parent
103
  ));
104
  if ( $page_q->have_posts() ) : while ( $page_q->have_posts() ) : $page_q->the_post();
105
-
106
- // Nav Status
107
- $ns = get_post_meta( get_the_id(), 'np_nav_status', true);
108
-
109
- // Nested Pages Visibility
110
- $np_status = get_post_meta( get_the_id(), 'nested_pages_status', true );
111
-
112
- // Link Target
113
- $link_target = get_post_meta( get_the_id(), 'np_link_target', true );
114
-
115
- // Title Attribue
116
- $title_attribute = get_post_meta( get_the_id(), 'np_title_attribute', true );
117
-
118
- // CSS Classes
119
- $css_classes = get_post_meta( get_the_id(), 'np_nav_css_classes', true );
120
-
121
- // Nav Title
122
- $nav_title = get_post_meta( get_the_id(), 'np_nav_title', true );
123
- $nav_title = ( $nav_title !== "" ) ? $nav_title : get_the_title();
124
-
125
- if ( ($ns == 'show') || ($ns == '') ) {
126
- if ( $np_status !== 'hide' ){
127
-
128
- if ( get_post_type() == 'page' ){
129
- $menu = wp_update_nav_menu_item($this->id, 0, array(
130
- 'menu-item-title' => $nav_title,
131
- 'menu-item-url' => get_the_permalink(),
132
- 'menu-item-attr-title' => $title_attribute,
133
- 'menu-item-status' => 'publish',
134
- 'menu-item-classes' => $css_classes,
135
- 'menu-item-type' => 'post_type',
136
- 'menu-item-object' => 'page',
137
- 'menu-item-object-id' => get_the_id(),
138
- 'menu-item-parent-id' => $menu_parent,
139
- 'menu-item-target' => $link_target
140
- ));
141
- } else { // redirect
142
- $menu = wp_update_nav_menu_item($this->id, 0, array(
143
- 'menu-item-title' => $nav_title,
144
- 'menu-item-url' => NP_Helpers::check_url(get_the_content()),
145
- 'menu-item-attr-title' => $title_attribute,
146
- 'menu-item-status' => 'publish',
147
- 'menu-item-classes' => $css_classes,
148
- 'menu-item-type' => 'custom',
149
- 'menu-item-object' => 'page',
150
- 'menu-item-object-id' => get_the_id(),
151
- 'menu-item-parent-id' => $menu_parent,
152
- 'menu-item-target' => $link_target
153
- ));
154
- }
155
-
156
  $this->sync( get_the_id(), $menu );
157
- }
158
  }
159
-
160
  endwhile; endif; wp_reset_postdata();
161
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  }
163
 
164
 
20
  */
21
  private $menu_name;
22
 
23
+ /**
24
+ * Individual Post
25
+ * @var array
26
+ */
27
+ private $post;
28
+
29
 
30
  public function __construct()
31
  {
82
 
83
 
84
  /**
85
+ * Set the post settings
86
+ * @param object - post object
87
+ * @since 1.1.4
88
  */
89
+ private function set_post($post)
90
  {
91
+ $this->post['ID'] = $post->ID;
92
+ $this->post['show_in_nav'] = get_post_meta( $post->ID, 'np_nav_status', true);
93
+ $this->post['nested_pages_visible'] = get_post_meta( $post->ID, 'nested_pages_status', true );
94
+ $this->post['link_target'] = get_post_meta( $post->ID, 'np_link_target', true );
95
+ $this->post['title_attribute'] = get_post_meta( $post->ID, 'np_title_attribute', true );
96
+ $this->post['css_classes'] = get_post_meta( $post->ID, 'np_nav_css_classes', true );
97
+ $this->post['permalink'] = get_the_permalink($post->ID);
98
+
99
+ $nav_title = get_post_meta( $post->ID, 'np_nav_title', true );
100
+ $this->post['nav_title'] = ( $nav_title !== "" ) ? $nav_title : $post->post_title;
101
  }
102
 
103
 
115
  'post_parent' => $parent
116
  ));
117
  if ( $page_q->have_posts() ) : while ( $page_q->have_posts() ) : $page_q->the_post();
118
+ global $post;
119
+ $this->set_post($post);
120
+ if ( ($this->post['show_in_nav'] == 'show') || ($this->post['show_in_nav'] == '') ) {
121
+ $menu = ( get_post_type() == 'page' ) ? $this->syncPageItem($menu_parent) : $this->syncLinkItem($menu_parent);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  $this->sync( get_the_id(), $menu );
 
123
  }
 
124
  endwhile; endif; wp_reset_postdata();
125
+ }
126
+
127
+
128
+ /**
129
+ * Sync Page Menu Item
130
+ * @since 1.1.4
131
+ */
132
+ private function syncPageItem($menu_parent)
133
+ {
134
+ $menu = wp_update_nav_menu_item($this->id, 0, array(
135
+ 'menu-item-title' => $this->post['nav_title'],
136
+ 'menu-item-url' => $this->post['permalink'],
137
+ 'menu-item-attr-title' => $this->post['title_attribute'],
138
+ 'menu-item-status' => 'publish',
139
+ 'menu-item-classes' => $this->post['css_classes'],
140
+ 'menu-item-type' => 'post_type',
141
+ 'menu-item-object' => 'page',
142
+ 'menu-item-object-id' => $this->post['ID'],
143
+ 'menu-item-parent-id' => $menu_parent,
144
+ 'menu-item-target' => $this->post['link_target']
145
+ ));
146
+ return $menu;
147
+ }
148
+
149
+
150
+ /**
151
+ * Sync Link Menu Item
152
+ * @since 1.1.4
153
+ */
154
+ private function syncLinkItem($menu_parent)
155
+ {
156
+ $menu = wp_update_nav_menu_item($this->id, 0, array(
157
+ 'menu-item-title' => $this->post['nav_title'],
158
+ 'menu-item-url' => NP_Helpers::check_url(get_the_content($this->post['ID'])),
159
+ 'menu-item-attr-title' => $this->post['title_attribute'],
160
+ 'menu-item-status' => 'publish',
161
+ 'menu-item-classes' => $this->post['css_classes'],
162
+ 'menu-item-type' => 'custom',
163
+ 'menu-item-object' => 'page',
164
+ 'menu-item-object-id' => $this->post['ID'],
165
+ 'menu-item-parent-id' => $menu_parent,
166
+ 'menu-item-target' => $this->post['link_target']
167
+ ));
168
  }
169
 
170
 
includes/class-np-pagelisting.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php
2
  require_once('class-np-confirmation.php');
3
  require_once('class-np-helpers.php');
 
4
  /**
5
  * Primary Listing Class
6
  * Initiates Page Listing screen (overwriting default), and displays primary plugin view.
@@ -35,8 +36,15 @@ class NP_PageListing {
35
  private $post_data;
36
 
37
 
 
 
 
 
 
 
38
  public function __construct()
39
  {
 
40
  $this->post_type = get_post_type_object('page');
41
  add_action( 'admin_menu', array($this, 'adminMenu') );
42
  add_action( 'admin_menu', array($this, 'submenu') );
@@ -114,15 +122,6 @@ class NP_PageListing {
114
  include( NP_Helpers::view('pages') );
115
  }
116
 
117
- /**
118
- * Get Trash Count (pages)
119
- */
120
- private function trashCount()
121
- {
122
- $trashed = new WP_Query(array('post_type'=>'page','post_status'=>'trash','posts_per_page'=>-1));
123
- return $trashed->found_posts;
124
- }
125
-
126
 
127
  /**
128
  * Set the Taxonomies for Pages
@@ -148,7 +147,7 @@ class NP_PageListing {
148
 
149
 
150
  /**
151
- * Get a Posts Taxonomies
152
  */
153
  private function hierarchicalTaxonomies($page_id)
154
  {
@@ -161,7 +160,24 @@ class NP_PageListing {
161
  }
162
  }
163
  }
164
- if ( $out !== '' ) $out .= ' has-tax ';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  return $out;
166
  }
167
 
@@ -234,6 +250,9 @@ class NP_PageListing {
234
  // Nav CSS Classes
235
  $this->post_data['nav_css'] = get_post_meta(get_the_id(), 'np_nav_css_classes', true);
236
 
 
 
 
237
  // Yoast Score
238
  if ( function_exists('wpseo_translate_score') ) {
239
  $yoast_score = get_post_meta(get_the_id(), '_yoast_wpseo_linkdex', true);
@@ -301,6 +320,7 @@ class NP_PageListing {
301
 
302
  // Taxonomies
303
  echo ' ' . $this->hierarchicalTaxonomies( get_the_id() );
 
304
 
305
  echo '">';
306
 
1
  <?php
2
  require_once('class-np-confirmation.php');
3
  require_once('class-np-helpers.php');
4
+ require_once('class-np-repository-post.php');
5
  /**
6
  * Primary Listing Class
7
  * Initiates Page Listing screen (overwriting default), and displays primary plugin view.
36
  private $post_data;
37
 
38
 
39
+ /**
40
+ * Post Repository
41
+ */
42
+ private $post_repo;
43
+
44
+
45
  public function __construct()
46
  {
47
+ $this->post_repo = new NP_PostRepository;
48
  $this->post_type = get_post_type_object('page');
49
  add_action( 'admin_menu', array($this, 'adminMenu') );
50
  add_action( 'admin_menu', array($this, 'submenu') );
122
  include( NP_Helpers::view('pages') );
123
  }
124
 
 
 
 
 
 
 
 
 
 
125
 
126
  /**
127
  * Set the Taxonomies for Pages
147
 
148
 
149
  /**
150
+ * Get Post Hierarchical Taxonomies
151
  */
152
  private function hierarchicalTaxonomies($page_id)
153
  {
160
  }
161
  }
162
  }
163
+ return $out;
164
+ }
165
+
166
+
167
+ /**
168
+ * Get Post Flat Taxonomies
169
+ */
170
+ private function flatTaxonomies($page_id)
171
+ {
172
+ $out = '';
173
+ if ( count($this->f_taxonomies) > 0 ) {
174
+ foreach ( $this->f_taxonomies as $taxonomy ){
175
+ $terms = wp_get_post_terms($page_id, $taxonomy->name);
176
+ foreach ( $terms as $term ){
177
+ $out .= 'inf-' . $taxonomy->name . '-nps-' . $term->term_id . ' ';
178
+ }
179
+ }
180
+ }
181
  return $out;
182
  }
183
 
250
  // Nav CSS Classes
251
  $this->post_data['nav_css'] = get_post_meta(get_the_id(), 'np_nav_css_classes', true);
252
 
253
+ // Post Password
254
+ $this->post_data['password'] = $post->post_password;
255
+
256
  // Yoast Score
257
  if ( function_exists('wpseo_translate_score') ) {
258
  $yoast_score = get_post_meta(get_the_id(), '_yoast_wpseo_linkdex', true);
320
 
321
  // Taxonomies
322
  echo ' ' . $this->hierarchicalTaxonomies( get_the_id() );
323
+ echo ' ' . $this->flatTaxonomies( get_the_id() );
324
 
325
  echo '">';
326
 
includes/class-np-pagemeta.php DELETED
@@ -1,72 +0,0 @@
1
- <?php
2
-
3
- class NP_PageMeta {
4
-
5
- function __construct()
6
- {
7
- add_action( 'add_meta_boxes', array( $this, 'metaBox' ));
8
- add_action( 'save_post', array($this, 'saveMeta' ));
9
- }
10
-
11
-
12
- /**
13
- * Register the Meta Box
14
- */
15
- public function metaBox()
16
- {
17
- add_meta_box(
18
- 'nestedpages',
19
- 'Nested Pages',
20
- array($this, 'metaFields'),
21
- 'page',
22
- 'side',
23
- 'low'
24
- );
25
- }
26
-
27
-
28
- /**
29
- * Meta Boxes for Output
30
- */
31
- public function metaFields($post)
32
- {
33
- wp_nonce_field( 'nestedpages_meta_box_nonce', 'np_meta_box_nonce' );
34
- $np_nav_status = get_post_meta($post->ID, 'np_nav_status', true);
35
- $np_nav_title = get_post_meta($post->ID, 'np_nav_title', true);
36
- $nested_pages_status = get_post_meta($post->ID, 'nested_pages_status', true);
37
- include( dirname( dirname(__FILE__) ) . '/views/page-meta.php');
38
- }
39
-
40
-
41
- /**
42
- * Save the custom post meta
43
- */
44
- public function saveMeta( $post_id )
45
- {
46
- if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;
47
-
48
- // Verify the nonce & permissions.
49
- if( !isset( $_POST['np_meta_box_nonce'] ) || !wp_verify_nonce( $_POST['np_meta_box_nonce'], 'nestedpages_meta_box_nonce' ) ) return;
50
- //if( !current_user_can( 'edit_post' ) ) return;
51
-
52
- // Save the Nav Status
53
- if( isset( $_POST['np_nav_status'] ) ) {
54
- update_post_meta( $post_id, 'np_nav_status', 'hide' );
55
- } else {
56
- update_post_meta( $post_id, 'np_nav_status', 'show' );
57
- }
58
-
59
- // Save the Nav Title
60
- if( isset( $_POST['np_nav_title'] ) )
61
- update_post_meta( $post_id, 'np_nav_title', esc_attr( $_POST['np_nav_title'] ) );
62
-
63
- // Save the NP Status
64
- if ( isset( $_POST['nested_pages_status'] ) ){
65
- update_post_meta( $post_id, 'nested_pages_status', 'hide' );
66
- } else {
67
- update_post_meta( $post_id, 'nested_pages_status', 'show' );
68
- }
69
-
70
- }
71
-
72
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/class-np-posttypes.php CHANGED
@@ -41,7 +41,7 @@ class NP_PostTypes {
41
 
42
 
43
  /**
44
- * Trash hook - unset parent pages
45
  */
46
  public function trashHook($post_id)
47
  {
41
 
42
 
43
  /**
44
+ * Trash hook - make sure child pages of trashed page are visible
45
  */
46
  public function trashHook($post_id)
47
  {
includes/class-np-repository-post.php CHANGED
@@ -10,11 +10,13 @@ class NP_PostRepository {
10
  */
11
  protected $validation;
12
 
 
13
  /**
14
  * New Post ID
15
  */
16
  protected $new_id;
17
 
 
18
  public function __construct()
19
  {
20
  $this->validation = new NP_Validation;
@@ -33,7 +35,7 @@ class NP_PostRepository {
33
  foreach( $posts as $key => $post )
34
  {
35
  wp_update_post(array(
36
- 'ID' => $post['id'],
37
  'menu_order' => $key,
38
  'post_parent' => $parent
39
  ));
@@ -57,6 +59,12 @@ class NP_PostRepository {
57
  $date = $this->validation->validateDate($data);
58
  if ( !isset($_POST['comment_status']) ) $data['comment_status'] = 'closed';
59
 
 
 
 
 
 
 
60
  $updated_post = array(
61
  'ID' => sanitize_text_field($data['post_id']),
62
  'post_title' => sanitize_text_field($data['post_title']),
@@ -64,7 +72,8 @@ class NP_PostRepository {
64
  'post_name' => sanitize_text_field($data['post_name']),
65
  'post_date' => $date,
66
  'comment_status' => sanitize_text_field($data['comment_status']),
67
- 'post_status' => sanitize_text_field($data['_status'])
 
68
  );
69
  wp_update_post($updated_post);
70
 
@@ -73,7 +82,7 @@ class NP_PostRepository {
73
 
74
  // Taxonomies
75
  $this->updateCategories($data);
76
- $this->updateHierarchicalTaxonomies($data);
77
 
78
  // Menu Options
79
  $this->updateNavStatus($data);
@@ -214,21 +223,54 @@ class NP_PostRepository {
214
  * @since 1.0
215
  * @param array data
216
  */
217
- private function updateHierarchicalTaxonomies($data)
218
  {
219
  if ( isset($data['tax_input']) ) {
220
  foreach ( $data['tax_input'] as $taxonomy => $term_ids ){
221
- $this->validation->validateIntegerArray($term_ids);
222
- $terms = array();
223
- foreach ( $term_ids as $term ){
224
- if ( $term !== 0 ) $terms[] = (int) $term;
 
 
225
  }
226
- wp_set_post_terms($data['post_id'], $terms, $taxonomy);
227
  }
228
  }
229
  }
230
 
231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  /**
233
  * Update Link Target for Redirects
234
  * @since 1.1
@@ -296,4 +338,44 @@ class NP_PostRepository {
296
  return $this->new_id;
297
  }
298
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  }
10
  */
11
  protected $validation;
12
 
13
+
14
  /**
15
  * New Post ID
16
  */
17
  protected $new_id;
18
 
19
+
20
  public function __construct()
21
  {
22
  $this->validation = new NP_Validation;
35
  foreach( $posts as $key => $post )
36
  {
37
  wp_update_post(array(
38
+ 'ID' => sanitize_text_field($post['id']),
39
  'menu_order' => $key,
40
  'post_parent' => $parent
41
  ));
59
  $date = $this->validation->validateDate($data);
60
  if ( !isset($_POST['comment_status']) ) $data['comment_status'] = 'closed';
61
 
62
+ if ( isset($_POST['keep_private']) && $_POST['keep_private'] == 'private' ){
63
+ $status = 'private';
64
+ } else {
65
+ $status = ( isset($data['_status']) ) ? sanitize_text_field($data['_status']) : 'publish';
66
+ }
67
+
68
  $updated_post = array(
69
  'ID' => sanitize_text_field($data['post_id']),
70
  'post_title' => sanitize_text_field($data['post_title']),
72
  'post_name' => sanitize_text_field($data['post_name']),
73
  'post_date' => $date,
74
  'comment_status' => sanitize_text_field($data['comment_status']),
75
+ 'post_status' => $status,
76
+ 'post_password' => sanitize_text_field($data['post_password'])
77
  );
78
  wp_update_post($updated_post);
79
 
82
 
83
  // Taxonomies
84
  $this->updateCategories($data);
85
+ $this->updateTaxonomies($data);
86
 
87
  // Menu Options
88
  $this->updateNavStatus($data);
223
  * @since 1.0
224
  * @param array data
225
  */
226
+ private function updateTaxonomies($data)
227
  {
228
  if ( isset($data['tax_input']) ) {
229
  foreach ( $data['tax_input'] as $taxonomy => $term_ids ){
230
+ $tax = get_taxonomy($taxonomy);
231
+ if ( $tax->hierarchical ){
232
+ $this->validation->validateIntegerArray($term_ids);
233
+ $this->updateHierarchicalTaxonomies($data, $taxonomy, $term_ids);
234
+ } else {
235
+ $this->updateFlatTaxonomy($data, $taxonomy, $term_ids);
236
  }
 
237
  }
238
  }
239
  }
240
 
241
 
242
+ /**
243
+ * Update Hierarchical Taxonomy Terms
244
+ * @since 1.1.4
245
+ * @param array data
246
+ */
247
+ private function updateHierarchicalTaxonomies($data, $taxonomy, $term_ids)
248
+ {
249
+ $terms = array();
250
+ foreach ( $term_ids as $term ){
251
+ if ( $term !== 0 ) $terms[] = (int) $term;
252
+ }
253
+ wp_set_post_terms($data['post_id'], $terms, $taxonomy);
254
+ }
255
+
256
+
257
+ /**
258
+ * Update Flat Taxonomy Terms
259
+ * @since 1.1.4
260
+ * @param array data
261
+ */
262
+ private function updateFlatTaxonomy($data, $taxonomy, $terms)
263
+ {
264
+ $terms = explode(',', sanitize_text_field($terms));
265
+ $new_terms = array();
266
+ foreach($terms as $term)
267
+ {
268
+ if ( $term !== "" ) array_push($new_terms, $term);
269
+ }
270
+ wp_set_post_terms($data['post_id'], $new_terms, $taxonomy);
271
+ }
272
+
273
+
274
  /**
275
  * Update Link Target for Redirects
276
  * @since 1.1
338
  return $this->new_id;
339
  }
340
 
341
+
342
+ /**
343
+ * Get count of hidden pages
344
+ * @since 1.1.4
345
+ */
346
+ public function getHiddenCount()
347
+ {
348
+ $hidden = new WP_Query(array(
349
+ 'post_type' => array('page', 'np-redirect'),
350
+ 'meta_key' => 'nested_pages_status',
351
+ 'meta_value' => 'hide',
352
+ 'perm' => 'readable'));
353
+ return $hidden->found_posts;
354
+ }
355
+
356
+
357
+ /**
358
+ * Get Trash Count (pages)
359
+ * @since 1.1.4
360
+ */
361
+ public function trashedPagesCount()
362
+ {
363
+ $trashed = new WP_Query(array('post_type'=>'page','post_status'=>'trash','posts_per_page'=>-1));
364
+ return $trashed->found_posts;
365
+ }
366
+
367
+
368
+ /**
369
+ * Get count of published posts
370
+ * @param object $pages
371
+ */
372
+ public function publishCount($pages)
373
+ {
374
+ $publish_count = 1;
375
+ foreach ( $pages->posts as $p ){
376
+ if ( $p->post_status !== 'trash' ) $publish_count++;
377
+ }
378
+ return $publish_count;
379
+ }
380
+
381
  }
nestedpages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Nested Pages
4
  Plugin URI: http://nestedpages.com
5
  Description: Provides an intuitive drag and drop interface for managing pages in the Wordpress admin, while maintaining quick edit functionality.
6
- Version: 1.1.3
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  License: GPLv2 or later.
3
  Plugin Name: Nested Pages
4
  Plugin URI: http://nestedpages.com
5
  Description: Provides an intuitive drag and drop interface for managing pages in the Wordpress admin, while maintaining quick edit functionality.
6
+ Version: 1.1.4
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  License: GPLv2 or later.
readme.txt CHANGED
@@ -4,7 +4,8 @@ Donate link: http://nestedpages.com/
4
  Tags: pages, admin, nested, tree view, page tree, sort, quick edit
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
- Stable tag: 1.1.2
 
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -51,8 +52,6 @@ Custom columns are not currently supported by Nested Pages. To view custom colum
51
  = What are those dots in my page rows? =
52
  If you have Wordpress SEO by Yoast installed, your page score indicators are shown along with the pages.
53
 
54
- = Does quick edit support taxonomies? =
55
- Hierarchical taxonomies are currently supported
56
 
57
  == Screenshots ==
58
 
@@ -66,6 +65,12 @@ Hierarchical taxonomies are currently supported
66
 
67
  == Changelog ==
68
 
 
 
 
 
 
 
69
  = 1.1.3 =
70
  * Option to customize the generated nav menu added
71
 
@@ -85,6 +90,9 @@ Hierarchical taxonomies are currently supported
85
 
86
  == Upgrade Notice ==
87
 
 
 
 
88
  = 1.1.3 =
89
  Added option to rename the generated nav menu.
90
 
4
  Tags: pages, admin, nested, tree view, page tree, sort, quick edit
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
+ Stable tag: 1.1.3
8
+
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
52
  = What are those dots in my page rows? =
53
  If you have Wordpress SEO by Yoast installed, your page score indicators are shown along with the pages.
54
 
 
 
55
 
56
  == Screenshots ==
57
 
65
 
66
  == Changelog ==
67
 
68
+ = 1.1.4 =
69
+ * Password/Private functionality added to page quick edit
70
+ * Flat taxonomy support added to page quick edit
71
+ * Quick edit UI enhancements
72
+ * Cross-domain icon font issue addressed
73
+
74
  = 1.1.3 =
75
  * Option to customize the generated nav menu added
76
 
90
 
91
  == Upgrade Notice ==
92
 
93
+ = 1.1.4 =
94
+ Added additional quick edit functionality along with UI enhancements.
95
+
96
  = 1.1.3 =
97
  Added option to rename the generated nav menu.
98
 
views/pages.php CHANGED
@@ -27,11 +27,11 @@
27
  <ul class="subsubsub">
28
  <li><a href="#all" class="np-toggle-publish active"><?php _e('All'); ?></a> | </li>
29
  <li><a href="#published" class="np-toggle-publish"><?php _e('Published'); ?></a> | </li>
30
- <li><a href="#show" class="np-toggle-hidden"><?php _e('Show Hidden'); ?></a> | </li>
 
31
  <?php if ( current_user_can('delete_pages') ) : ?>
32
- <li><a href="edit.php?post_status=trash&post_type=page">
33
- <?php _e('Trash'); ?> (<?php echo $this->trashCount(); ?>)
34
- </a></li> | </li>
35
  <?php endif; ?>
36
  <li><a href="<?php echo $this->defaultPagesLink(); ?>"><?php _e('Default'); ?> <?php echo $this->post_type->labels->name; ?></a></li>
37
  </ul>
27
  <ul class="subsubsub">
28
  <li><a href="#all" class="np-toggle-publish active"><?php _e('All'); ?></a> | </li>
29
  <li><a href="#published" class="np-toggle-publish"><?php _e('Published'); ?></a> | </li>
30
+ <li><a href="#show" class="np-toggle-hidden"><?php _e('Show Hidden'); ?> </a>
31
+ <span class="count">(<?php echo $this->post_repo->getHiddenCount(); ?>)</span> | </li>
32
  <?php if ( current_user_can('delete_pages') ) : ?>
33
+ <li><a href="edit.php?post_status=trash&post_type=page"><?php _e('Trash'); ?> </a>
34
+ <span class="count">(<?php echo $this->post_repo->trashedPagesCount(); ?>)</span> | </li>
 
35
  <?php endif; ?>
36
  <li><a href="<?php echo $this->defaultPagesLink(); ?>"><?php _e('Default'); ?> <?php echo $this->post_type->labels->name; ?></a></li>
37
  </ul>
views/quickedit.php CHANGED
@@ -30,6 +30,9 @@
30
  </div>
31
 
32
  <?php
 
 
 
33
  $authors_dropdown = '';
34
  if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) :
35
  $users_opt = array(
@@ -73,6 +76,21 @@
73
  <?php page_template_dropdown() ?>
74
  </select>
75
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  <div class="comments">
77
  <label>
78
  <input type="checkbox" name="comment_status" class="np_cs" value="open" />
@@ -86,18 +104,16 @@
86
  <input type="checkbox" name="nested_pages_status" class="np_status" value="hide" />
87
  <span class="checkbox-title"><?php _e( 'Hide in Nested Pages' ); ?></span>
88
  </label>
89
- </div>
90
  <?php endif; // Edit theme options?>
91
 
92
- <?php if ( current_user_can('edit_theme_options') ) : // Menu Options Button ?>
93
- <div class="form-control">
94
- <a href="#" class="np-btn np-toggle-menuoptions"><?php _e('Menu Options', 'nestedpages'); ?></a>
95
- </div>
96
- <?php endif; ?>
97
 
98
- <?php if ( !empty($this->h_taxonomies) ) : ?>
99
- <div class="form-control">
100
- <a href="#" class="np-btn np-toggle-taxonomies"><?php _e('Edit Taxonomies', 'nestedpages'); ?></a>
 
 
 
101
  </div>
102
  <?php endif; ?>
103
 
@@ -114,6 +130,13 @@
114
  </ul>
115
  </div><!-- .np-taxonomy -->
116
  <?php endforeach; ?>
 
 
 
 
 
 
 
117
  </div><!-- .taxonomies -->
118
  <?php endif; // if taxonomies ?>
119
 
30
  </div>
31
 
32
  <?php
33
+ /*
34
+ * Authors Dropdown
35
+ */
36
  $authors_dropdown = '';
37
  if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) :
38
  $users_opt = array(
76
  <?php page_template_dropdown() ?>
77
  </select>
78
  </div>
79
+
80
+ <?php if ( $can_publish ) : ?>
81
+ <div class="form-control password">
82
+ <label><?php _e( 'Password' ); ?></label>
83
+ <input type="text" class="post_password" name="post_password" value="" />
84
+ <div class="private">
85
+ <em style="margin:2px 8px 0 0" class="alignleft"><?php _e( '&ndash;OR&ndash;' ); ?></em>
86
+ <label>
87
+ <input type="checkbox" class="keep_private" name="keep_private" value="private" />
88
+ <?php echo __( 'Private' ); ?>
89
+ </label>
90
+ </div>
91
+ </div>
92
+ <?php endif; ?>
93
+
94
  <div class="comments">
95
  <label>
96
  <input type="checkbox" name="comment_status" class="np_cs" value="open" />
104
  <input type="checkbox" name="nested_pages_status" class="np_status" value="hide" />
105
  <span class="checkbox-title"><?php _e( 'Hide in Nested Pages' ); ?></span>
106
  </label>
107
+ </div>
108
  <?php endif; // Edit theme options?>
109
 
 
 
 
 
 
110
 
111
+ <?php if ( current_user_can('edit_theme_options') ) : // Menu Options Button ?>
112
+ <div class="form-control np-toggle-options">
113
+ <a href="#" class="np-btn np-btn-half np-toggle-menuoptions"><?php _e('Menu Options', 'nestedpages'); ?></a>
114
+ <?php if ( !empty($this->h_taxonomies) ) : ?>
115
+ <a href="#" class="np-btn np-btn-half btn-right np-toggle-taxonomies"><?php _e('Taxonomies', 'nestedpages'); ?></a>
116
+ <?php endif; ?>
117
  </div>
118
  <?php endif; ?>
119
 
130
  </ul>
131
  </div><!-- .np-taxonomy -->
132
  <?php endforeach; ?>
133
+
134
+ <?php foreach ( $this->f_taxonomies as $taxonomy ) : ?>
135
+ <div class="np-taxonomy">
136
+ <span class="title"><?php echo esc_html( $taxonomy->labels->name ) ?></span>
137
+ <textarea id="<?php echo esc_attr($taxonomy->name); ?>" cols="22" rows="1" name="tax_input[<?php echo esc_attr( $taxonomy->name )?>]" class="tax_input_<?php echo esc_attr( $taxonomy->name )?>" data-autotag data-taxonomy="<?php echo esc_attr($taxonomy->name); ?>"></textarea>
138
+ </div><!-- .np-taxonomy -->
139
+ <?php endforeach; ?>
140
  </div><!-- .taxonomies -->
141
  <?php endif; // if taxonomies ?>
142
 
views/row.php CHANGED
@@ -19,11 +19,10 @@
19
  }
20
 
21
  // Post Status
22
- if ( $post->post_status !== 'publish' ){
23
- echo '<span class="status">(' . $post->post_status . ')</span>';
24
- } else {
25
- echo '<span class="status"></span>';
26
- }
27
 
28
  // Nested Pages Status
29
  if ( $this->post_data['np_status'] == 'hide' )
@@ -84,6 +83,9 @@
84
  data-linktarget="<?php echo $this->post_data['link_target']; ?>"
85
  data-navtitle="<?php echo $this->post_data['nav_title']; ?>"
86
  data-author="<?php echo $post->post_author; ?>"
 
 
 
87
  data-month="<?php echo $this->post_data['month']; ?>"
88
  data-day="<?php echo $this->post_data['d']; ?>"
89
  data-year="<?php echo $this->post_data['y']; ?>"
19
  }
20
 
21
  // Post Status
22
+ echo '<span class="status">';
23
+ if ( $post->post_status !== 'publish' ) echo '(' . $post->post_status . ')';
24
+ if ( post_password_required($post->ID) ) echo ' <i class="np-icon-lock"></i>';
25
+ echo '</span>';
 
26
 
27
  // Nested Pages Status
28
  if ( $this->post_data['np_status'] == 'hide' )
83
  data-linktarget="<?php echo $this->post_data['link_target']; ?>"
84
  data-navtitle="<?php echo $this->post_data['nav_title']; ?>"
85
  data-author="<?php echo $post->post_author; ?>"
86
+ <?php if ( current_user_can('publish_pages') ) : ?>
87
+ data-password="<?php echo $post->post_password; ?>"
88
+ <?php endif; ?>
89
  data-month="<?php echo $this->post_data['month']; ?>"
90
  data-day="<?php echo $this->post_data['d']; ?>"
91
  data-year="<?php echo $this->post_data['y']; ?>"
views/settings.php CHANGED
@@ -4,6 +4,10 @@
4
  <form method="post" enctype="multipart/form-data" action="options.php">
5
  <table class="form-table">
6
  <?php settings_fields( 'nestedpages-general' ); ?>
 
 
 
 
7
  <tr valign="top">
8
  <th scope="row"><?php _e('Menu Name', 'nestedpages'); ?></th>
9
  <td>
4
  <form method="post" enctype="multipart/form-data" action="options.php">
5
  <table class="form-table">
6
  <?php settings_fields( 'nestedpages-general' ); ?>
7
+ <tr valign="top">
8
+ <th scope="row"><?php _e('Nested Pages Version', 'nestedpages'); ?></th>
9
+ <td><strong><?php echo get_option('nestedpages_version'); ?></strong></td>
10
+ </tr>
11
  <tr valign="top">
12
  <th scope="row"><?php _e('Menu Name', 'nestedpages'); ?></th>
13
  <td>