Nested Pages - Version 1.1.8

Version Description

  • New Child Pages Interface - Add child pages more efficiently with the new add child pages dialog. Add a single child page without leaving the Nested Pages view, or add multiple pages with one click. Reorder multiple child pages before saving with the drag and drop interface you're accustomed to.
  • Tested for 4.1 compatibility
  • Page ID indicator added to Quick Edit dialog
  • Taxonomies & other custom menu items now visible in pages admin menu
Download this release

Release Info

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

Code changes from version 1.1.7 to 1.1.8

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');}@font-face{font-family:'nestedpages';src:url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjB2gAAAC8AAAAYGNtYXDw7eamAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZrIqLaoAAAF4AAARNGhlYWQCOg/3AAASrAAAADZoaGVhA+IB+QAAEuQAAAAkaG10eCkAA2cAABMIAAAAYGxvY2EhfhzgAAATaAAAADJtYXhwACAA8QAAE5wAAAAgbmFtZXH7qkgAABO8AAABaXBvc3QAAwAAAAAVKAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADwsgHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEAEAAAAAMAAgAAgAEAAEAIOYS8LL//f//AAAAAAAg5gDwsv/9//8AAf/jGgQPZQADAAEAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAI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HAAYQBnAGUAcwBWAGUAcgBzAGkAbwBuACAAMQAuADAAbgBlAHMAdABlAGQAcABhAGcAZQBzbmVzdGVkcGFnZXMAbgBlAHMAdABlAGQAcABhAGcAZQBzAFIAZQBnAHUAbABhAHIAbgBlAHMAdABlAGQAcABhAGcAZQBzAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('truetype'),url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABWUAAsAAAAAFUgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgCCMHaGNtYXAAAAFoAAAAVAAAAFTw7eamZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAETQAABE0siotqmhlYWQAABL4AAAANgAAADYCOg/3aGhlYQAAEzAAAAAkAAAAJAPiAflobXR4AAATVAAAAGAAAABgKQADZ2xvY2EAABO0AAAAMgAAADIhfhzgbWF4cAAAE+gAAAAgAAAAIAAgAPFuYW1lAAAUCAAAAWkAAAFpcfuqSHBvc3QAABV0AAAAIAAAACAAAwAAAAMCAAGQAAUAAAFMAWYAAABHAUwBZgAAAPUAGQCEAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8LIB4P/g/+AB4AAgAAAAAQAAAAAAAAAAAAAAIAAAAAAAAgAAAAMAAAAUAAMAAQAAABQABABAAAAADAAIAAIABAABACDmEvCy//3//wAAAAAAIOYA8LL//f//AAH/4xoED2UAAwABAAAAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAzAEYBzQF6AAkAADczNRcHNSE1MxVm54CA/uYzxk1mZ03ntAAAAAEAbQBNAZMBdAALAAAlBycHJzcnNxc3FwcBjjh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wBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==) 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-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:0.85;}.modal-open{overflow:hidden;}.np-modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;-webkit-overflow-scrolling:touch;outline:0;}.np-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;}.np-modal.in .modal-dialog{-webkit-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0);}.np-modal .modal-open .modal{overflow-x:hidden;overflow-y:auto;}.np-modal .modal-dialog{position:relative;width:auto;margin:10px auto 0px auto;max-width:500px;}.np-modal .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;}.np-modal .modal-header{padding:8px;background-color:#ebebeb;}.np-modal .modal-header .sr-only{display:none;}.np-modal .modal-header .close{margin-top:-2px;}.np-modal .modal-title{margin:0;}.np-modal .modal-body{position:relative;padding:10px;}.np-modal .modal-footer{padding:10px;text-align:right;background-color:#404040;zoom:1;}.np-modal .modal-footer:before,.np-modal .modal-footer:after{content:" ";display:table;}.np-modal .modal-footer:after{clear:both;}.np-modal .modal-footer .modal-close{float:left;}.np-modal .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;}.np-tabs{background-color:#ebebeb;padding:0px;}.np-tabs ul{text-align:left;list-style-type:none;margin:0;padding:0;}.np-tabs ul li{display:inline-block;margin:0;}.np-tabs ul li a{display:block;text-decoration:none;padding:5px 10px;}.np-tabs ul li a.active{position:relative;color:#333;background-color:#ffffff;}.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;}
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/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEAEAAAAAMAAgAAgAEAAEAIOYS8LL//f//AAAAAAAg5gDwsv/9//8AAf/jGgQPZQADAAEAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABADMARgHNAXoACQAANzM1Fwc1ITUzFWbngID+5jPGTWZnTee0AAAAAQBtAE0BkwF0AAsAACUHJwcnNyc3FzcXBwGOOFhdNF1YOFhdNF2BNF1YOFhdNV1XOFgAAAEAmgB8AZMBUwAGAAABFwcjJzcXAXAjiiJNIjwBUxi/ZyAwAAMATQBgAbMBYAAEAAkADgAAATUhFSEVNSEVIRU1IRUhAbP+mgFm/poBZv6aAWYBLTMzZzQ0ZjMzAAAAAAEAswB6AYABEwADAAABByczAYBnZs0BE5mZAAABAM0AegFmAUYAAwAAExcHNc2ZmQFGZ2XMAAAAAwAgACAB4AGAAAMABwALAAATIRUhFSEVIRUhFSEgAcD+QAHA/kABwP5AAYBgI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AAgAAAAAAAAABAAAB4P/gAAACAAAAAAACAAABAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAEAAAACAAAzAgAAbQIAAJoCAABNAgAAswIAAM0CAAAgAgAAAAIAAAACAAAAAgAAQAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAAAAAAACgAUAB4AMgBMAF4AfACKAJgAsgD6ATgBsAI+Au4DxARIBKAF/Ab6B4AILAiaAAAAAQAAABgA7wAHAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABABYAAAABAAAAAAACAA4AYwABAAAAAAADABYALAABAAAAAAAEABYAcQABAAAAAAAFABYAFgABAAAAAAAGAAsAQgABAAAAAAAKADQAhwADAAEECQABABYAAAADAAEECQACAA4AYwADAAEECQADABYALAADAAEECQAEABYAcQADAAEECQAFABYAFgADAAEECQAGABYATQADAAEECQAKADQAhwBuAGUAcwB0AGUAZABwAGEAZwBlAHMAVgBlAHIAcwBpAG8AbgAgADEALgAwAG4AZQBzAHQAZQBkAHAAYQBnAGUAc25lc3RlZHBhZ2VzAG4AZQBzAHQAZQBkAHAAYQBnAGUAcwBSAGUAZwB1AGwAYQByAG4AZQBzAHQAZQBkAHAAYQBnAGUAcwBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==) 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-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:0.85;}.modal-open{overflow:hidden;}.np-modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;-webkit-overflow-scrolling:touch;outline:0;}.np-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;}.np-modal.in .modal-dialog{-webkit-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0);}.np-modal .modal-open .modal{overflow-x:hidden;overflow-y:auto;}.np-modal .modal-dialog{position:relative;width:auto;margin:10px auto 0px auto;max-width:500px;}.np-modal .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;}.np-modal .modal-header{padding:8px;background-color:#ebebeb;}.np-modal .modal-header .sr-only{display:none;}.np-modal .modal-header .close{margin-top:-2px;}.np-modal .modal-title{margin:0;}.np-modal .modal-body{position:relative;padding:10px;}.np-modal .modal-footer{padding:10px;text-align:right;background-color:#404040;zoom:1;}.np-modal .modal-footer:before,.np-modal .modal-footer:after{content:" ";display:table;}.np-modal .modal-footer:after{clear:both;}.np-modal .modal-footer .modal-close{float:left;}.np-modal .modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll;}.np-inline-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-inline-overlay.active{opacity:1;-webkit-transition:opacity 200ms ease;-o-transition:opacity 200ms ease;transition:opacity 200ms ease;}.np-inline-modal{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-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;}.np-tabs{background-color:#ebebeb;padding:0px;}.np-tabs ul{text-align:left;list-style-type:none;margin:0;padding:0;}.np-tabs ul li{display:inline-block;margin:0;}.np-tabs ul li a{display:block;text-decoration:none;padding:5px 10px;}.np-tabs ul li a.active{position:relative;color:#333;background-color:#ffffff;}.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;}.nestedpages-tools{zoom:1;clear:both;margin-bottom:10px;}.nestedpages-tools:before,.nestedpages-tools:after{content:" ";display:table;}.nestedpages-tools:after{clear:both;}.nestedpages-tools .subsubsub{margin:0;}.np-search{float:right;}@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 .form-interior,.nestedpages .new-child .form-interior{padding:10px;}.nestedpages .quick-edit h3,.nestedpages .new-child h3{margin:0 0 8px 0;font-size:14px;}.nestedpages .quick-edit h3 span,.nestedpages .new-child h3 span{float:right;font-size:12px;}.nestedpages .quick-edit h3 span em,.nestedpages .new-child h3 span em{font-weight:normal;font-style:normal;color:#808080;}.nestedpages .quick-edit .fields,.nestedpages .new-child .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,.nestedpages .new-child .fields:before,.nestedpages .new-child .fields:after{content:" ";display:table;}.nestedpages .quick-edit .fields:after,.nestedpages .new-child .fields:after{clear:both;}.nestedpages .quick-edit .left,.nestedpages .new-child .left{float:left;width:48%;}.nestedpages .quick-edit .right,.nestedpages .new-child .right{float:right;width:48%;}.nestedpages .quick-edit label,.nestedpages .new-child label{font-style:oblique;}.nestedpages .quick-edit .buttons,.nestedpages .new-child .buttons{clear:both;zoom:1;background-color:#404040;padding:8px;}.nestedpages .quick-edit .buttons:before,.nestedpages .quick-edit .buttons:after,.nestedpages .new-child .buttons:before,.nestedpages .new-child .buttons:after{content:" ";display:table;}.nestedpages .quick-edit .buttons:after,.nestedpages .new-child .buttons:after{clear:both;}.nestedpages .quick-edit .form-control,.nestedpages .new-child .form-control{clear:both;zoom:1;margin-bottom:5px;}.nestedpages .quick-edit .form-control:before,.nestedpages .quick-edit .form-control:after,.nestedpages .new-child .form-control:before,.nestedpages .new-child .form-control:after{content:" ";display:table;}.nestedpages .quick-edit .form-control:after,.nestedpages .new-child .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,.nestedpages .new-child .form-control input[type='text'],.nestedpages .new-child .form-control input[type='password'],.nestedpages .new-child .form-control select{float:right;width:75%;}.nestedpages .quick-edit .form-control label,.nestedpages .new-child .form-control label{float:left;width:20%;}.nestedpages .quick-edit .form-control.password label,.nestedpages .new-child .form-control.password label{width:25%;}.nestedpages .quick-edit .form-control.password input[type="text"],.nestedpages .new-child .form-control.password input[type="text"]{float:left;width:35%;}.nestedpages .quick-edit .form-control.password .private,.nestedpages .new-child .form-control.password .private{float:right;width:35%;margin-top:4px;}.nestedpages .quick-edit .form-control.password .private label,.nestedpages .new-child .form-control.password .private label{width:auto;float:none;}.nestedpages .quick-edit .comments,.nestedpages .new-child .comments{float:right;width:75%;margin-bottom:10px;zoom:1;}.nestedpages .quick-edit .comments:before,.nestedpages .quick-edit .comments:after,.nestedpages .new-child .comments:before,.nestedpages .new-child .comments:after{content:" ";display:table;}.nestedpages .quick-edit .comments:after,.nestedpages .new-child .comments:after{clear:both;}.nestedpages .quick-edit .dates,.nestedpages .new-child .dates{float:right;width:75%;margin-bottom:6px;}.nestedpages .quick-edit .dates select,.nestedpages .new-child .dates select{width:25%;}.nestedpages .quick-edit .dates input,.nestedpages .new-child .dates input{width:12%;}.nestedpages .quick-edit .np-toggle-options,.nestedpages .new-child .np-toggle-options{background-color:#f2f2f2;padding:5px;}.nestedpages .quick-edit .np-taxonomies,.nestedpages .quick-edit .np-menuoptions,.nestedpages .new-child .np-taxonomies,.nestedpages .new-child .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,.nestedpages .new-child .np-taxonomies:before,.nestedpages .new-child .np-taxonomies:after,.nestedpages .new-child .np-menuoptions:before,.nestedpages .new-child .np-menuoptions:after{content:" ";display:table;}.nestedpages .quick-edit .np-taxonomies:after,.nestedpages .quick-edit .np-menuoptions:after,.nestedpages .new-child .np-taxonomies:after,.nestedpages .new-child .np-menuoptions:after{clear:both;}.nestedpages .quick-edit .np-taxonomy,.nestedpages .new-child .np-taxonomy{float:left;width:30%;margin-right:3.33%;}.nestedpages .quick-edit .np-taxonomy .title,.nestedpages .new-child .np-taxonomy .title{font-weight:bold;margin-bottom:4px;display:block;}.nestedpages .quick-edit .np-taxonomy li,.nestedpages .new-child .np-taxonomy li{background-color:#ffffff;border:0;}.nestedpages .quick-edit .np-taxonomy textarea,.nestedpages .new-child .np-taxonomy textarea{width:100%;height:6.5em;}.nestedpages .quick-edit .np-menuoptions,.nestedpages .new-child .np-menuoptions{padding:15px;}.nestedpages .quick-edit .np-menuoptions label,.nestedpages .quick-edit .np-menuoptions input[type="text"],.nestedpages .new-child .np-menuoptions label,.nestedpages .new-child .np-menuoptions input[type="text"]{display:block;float:none;width:100%;}.nestedpages .quick-edit .np-menuoptions .menuoptions-left,.nestedpages .new-child .np-menuoptions .menuoptions-left{float:left;width:47%;}.nestedpages .quick-edit .np-menuoptions .menuoptions-right,.nestedpages .new-child .np-menuoptions .menuoptions-right{float:right;width:47%;padding-top:18px;}.nestedpages .quick-edit .np-menuoptions .menuoptions-right label,.nestedpages .new-child .np-menuoptions .menuoptions-right label{margin-bottom:10px;}.nestedpages .quick-edit .np-hide-options,.nestedpages .new-child .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,.nestedpages .new-child .np-hide-options p{margin:0;}.nestedpages .quick-edit .np-hide-options label,.nestedpages .new-child .np-hide-options label{display:block;margin-top:4px;font-style:normal;}.nestedpages .quick-edit .new-page-titles,.nestedpages .new-child .new-page-titles{display:block;border:0;}.nestedpages .quick-edit .new-page-titles li,.nestedpages .new-child .new-page-titles li{background:transparent;border:0;padding:4px;zoom:1;}.nestedpages .quick-edit .new-page-titles li:before,.nestedpages .quick-edit .new-page-titles li:after,.nestedpages .new-child .new-page-titles li:before,.nestedpages .new-child .new-page-titles li:after{content:" ";display:table;}.nestedpages .quick-edit .new-page-titles li:after,.nestedpages .new-child .new-page-titles li:after{clear:both;}.nestedpages .quick-edit .new-page-titles li:nth-child(even),.nestedpages .new-child .new-page-titles li:nth-child(even){background-color:#f0f0f0;}.nestedpages .quick-edit .new-page-titles li label,.nestedpages .new-child .new-page-titles li label{margin-top:7px;}.nestedpages .quick-edit .new-page-titles .form-control,.nestedpages .new-child .new-page-titles .form-control{float:right;width:90%;clear:none;}.nestedpages .quick-edit .new-page-titles .np-icon-menu,.nestedpages .new-child .new-page-titles .np-icon-menu{float:left;margin-top:0px;height:auto;line-height:26px;}.nestedpages .quick-edit .new-page-titles .new-child-row div,.nestedpages .new-child .new-page-titles .new-child-row div{float:right;width:75%;margin:2px;zoom:1;}.nestedpages .quick-edit .new-page-titles .new-child-row div:before,.nestedpages .quick-edit .new-page-titles .new-child-row div:after,.nestedpages .new-child .new-page-titles .new-child-row div:before,.nestedpages .new-child .new-page-titles .new-child-row div:after{content:" ";display:table;}.nestedpages .quick-edit .new-page-titles .new-child-row div:after,.nestedpages .new-child .new-page-titles .new-child-row div:after{clear:both;}.nestedpages .quick-edit .new-page-titles .new-child-row div input[type='text'],.nestedpages .new-child .new-page-titles .new-child-row div input[type='text']{float:left;width:80%;}.nestedpages .quick-edit .new-page-titles .new-child-row div a,.nestedpages .new-child .new-page-titles .new-child-row div a{float:right;}.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
@@ -316,8 +316,9 @@ jQuery(function($){
316
  });
317
 
318
  // Hide the form when clicking modal overlay
319
- $(document).on('click', '.np-quick-edit-overlay', function(e){
320
  revert_quick_edit();
 
321
  });
322
 
323
  // Cancel the form
@@ -418,6 +419,7 @@ jQuery(function($){
418
  */
419
  function populate_quick_edit(form, data)
420
  {
 
421
  $(form).find('.np_id').val(data.id);
422
  $(form).find('.np_title').val(data.title);
423
  $(form).find('.np_slug').val(data.slug);
@@ -580,9 +582,9 @@ jQuery(function($){
580
  */
581
  function show_quick_edit_overlay()
582
  {
583
- $('body').append('<div class="np-quick-edit-overlay"></div>');
584
  setTimeout(function(){
585
- $('.np-quick-edit-overlay').addClass('active');
586
  }, 50);
587
  }
588
 
@@ -591,7 +593,7 @@ jQuery(function($){
591
  */
592
  function remove_quick_edit_overlay()
593
  {
594
- $('.np-quick-edit-overlay').removeClass('active').remove();
595
  }
596
 
597
 
@@ -609,7 +611,6 @@ jQuery(function($){
609
  datatype: 'json',
610
  data: $(form).serialize() + '&action=npquickedit&nonce=' + nestedpages.np_nonce + '&syncmenu=' + syncmenu,
611
  success: function(data){
612
- console.log(data);
613
  if (data.status === 'error'){
614
  np_remove_qe_loading(form);
615
  $(form).find('.np-quickedit-error').text(data.message).show();
@@ -779,7 +780,7 @@ jQuery(function($){
779
  */
780
  function np_remove_qe_loading(form)
781
  {
782
- $(form).find('.np-save-quickedit, .np-save-quickedit-redirect').removeAttr('disabled');
783
  $(form).find('.np-qe-loading').hide();
784
  }
785
 
@@ -788,10 +789,10 @@ jQuery(function($){
788
  */
789
  function np_qe_update_animate(form)
790
  {
791
- var row = $(form).parent('.quick-edit').siblings('.row');
792
  $(row).addClass('np-updated');
793
  $(row).show();
794
- $(form).parent('.quick-edit').remove();
795
  remove_quick_edit_overlay();
796
  np_set_borders();
797
  setTimeout(function(){
@@ -908,7 +909,6 @@ jQuery(function($){
908
  datatype: 'json',
909
  data: $(form).serialize() + '&action=npquickeditredirect&nonce=' + nestedpages.np_nonce + '&syncmenu=' + syncmenu,
910
  success: function(data){
911
- console.log(data);
912
  if (data.status === 'error'){
913
  np_remove_qe_loading(form);
914
  $(form).find('.np-quickedit-error').text(data.message).show();
@@ -1026,7 +1026,6 @@ jQuery(function($){
1026
  datatype: 'json',
1027
  data: data + '&action=npnewredirect&nonce=' + nestedpages.np_nonce + '&syncmenu=' + syncmenu,
1028
  success: function(data){
1029
- console.log(data);
1030
  if (data.status === 'error'){
1031
  np_remove_link_loading();
1032
  $('.np-new-link-error').text(data.message).show();
@@ -1175,4 +1174,224 @@ jQuery(function($){
1175
 
1176
 
1177
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1178
  }); //$
316
  });
317
 
318
  // Hide the form when clicking modal overlay
319
+ $(document).on('click', '.np-inline-overlay', function(e){
320
  revert_quick_edit();
321
+ revert_new_child();
322
  });
323
 
324
  // Cancel the form
419
  */
420
  function populate_quick_edit(form, data)
421
  {
422
+ $(form).find('.page_id').html('<em>Page ID:</em> ' + data.id);
423
  $(form).find('.np_id').val(data.id);
424
  $(form).find('.np_title').val(data.title);
425
  $(form).find('.np_slug').val(data.slug);
582
  */
583
  function show_quick_edit_overlay()
584
  {
585
+ $('body').append('<div class="np-inline-overlay"></div>');
586
  setTimeout(function(){
587
+ $('.np-inline-overlay').addClass('active');
588
  }, 50);
589
  }
590
 
593
  */
594
  function remove_quick_edit_overlay()
595
  {
596
+ $('.np-inline-overlay').removeClass('active').remove();
597
  }
598
 
599
 
611
  datatype: 'json',
612
  data: $(form).serialize() + '&action=npquickedit&nonce=' + nestedpages.np_nonce + '&syncmenu=' + syncmenu,
613
  success: function(data){
 
614
  if (data.status === 'error'){
615
  np_remove_qe_loading(form);
616
  $(form).find('.np-quickedit-error').text(data.message).show();
780
  */
781
  function np_remove_qe_loading(form)
782
  {
783
+ $(form).find('.np-save-quickedit, .np-save-quickedit-redirect, .np-save-newchild').removeAttr('disabled');
784
  $(form).find('.np-qe-loading').hide();
785
  }
786
 
789
  */
790
  function np_qe_update_animate(form)
791
  {
792
+ var row = $(form).parent('.quick-edit, .new-child').siblings('.row');
793
  $(row).addClass('np-updated');
794
  $(row).show();
795
+ $(form).parent('.quick-edit, .new-child').remove();
796
  remove_quick_edit_overlay();
797
  np_set_borders();
798
  setTimeout(function(){
909
  datatype: 'json',
910
  data: $(form).serialize() + '&action=npquickeditredirect&nonce=' + nestedpages.np_nonce + '&syncmenu=' + syncmenu,
911
  success: function(data){
 
912
  if (data.status === 'error'){
913
  np_remove_qe_loading(form);
914
  $(form).find('.np-quickedit-error').text(data.message).show();
1026
  datatype: 'json',
1027
  data: data + '&action=npnewredirect&nonce=' + nestedpages.np_nonce + '&syncmenu=' + syncmenu,
1028
  success: function(data){
 
1029
  if (data.status === 'error'){
1030
  np_remove_link_loading();
1031
  $('.np-new-link-error').text(data.message).show();
1174
 
1175
 
1176
 
1177
+
1178
+
1179
+ /**
1180
+ * ------------------------------------------------------------------------
1181
+ * New Child Page(s)
1182
+ * ------------------------------------------------------------------------
1183
+ **/
1184
+
1185
+ /**
1186
+ * Remove the new page form and restore the row
1187
+ */
1188
+ function revert_new_child()
1189
+ {
1190
+ $('.np-newchild-error').hide();
1191
+ remove_quick_edit_overlay();
1192
+ $('.sortable .new-child').remove();
1193
+ $('.row').show();
1194
+ }
1195
+
1196
+ $(document).on('click', '.np-cancel-newchild', function(e){
1197
+ e.preventDefault();
1198
+ revert_new_child();
1199
+ });
1200
+
1201
+ /**
1202
+ * Show the New Page Form
1203
+ */
1204
+ $(document).on('click', '.add-new-child', function(e){
1205
+ e.preventDefault();
1206
+ populate_new_child($(this));
1207
+ });
1208
+
1209
+
1210
+ /**
1211
+ * Set the Form Data for adding new child & Show it
1212
+ */
1213
+ function populate_new_child(item)
1214
+ {
1215
+ var parent_li = $(item).closest('.row').parent('li');
1216
+
1217
+ // Append the form to the list item
1218
+ if ( $(parent_li).children('ol').length > 0 ){
1219
+ var child_ol = $(parent_li).children('ol');
1220
+ var newform = $('.new-child-form').clone().insertBefore(child_ol);
1221
+ } else {
1222
+ var newform = $('.new-child-form').clone().appendTo(parent_li);
1223
+ }
1224
+
1225
+ var row = $(newform).siblings('.row').hide();
1226
+
1227
+ show_quick_edit_overlay();
1228
+
1229
+ $(newform).find('.parent_name').html('<em>Parent:</em> ' + $(item).attr('data-parentname'));
1230
+ $(newform).find('.page_parent_id').val($(item).attr('data-id'));
1231
+ $(newform).show();
1232
+ }
1233
+
1234
+
1235
+ /**
1236
+ * Add a Page Title Field
1237
+ */
1238
+ $(document).on('click', '.add-new-child-row', function(e){
1239
+ e.preventDefault();
1240
+ add_new_title_field($(this));
1241
+ var form = $(this).parents('form');
1242
+ update_pages_text(form);
1243
+ });
1244
+
1245
+ /**
1246
+ * Add a new title field
1247
+ */
1248
+ function add_new_title_field(item)
1249
+ {
1250
+ var html = '<li><i class="handle np-icon-menu"></i><div class="form-control new-child-row"><label>' + nestedpages.title + '</label><div><input type="text" name="post_title[]" class="np_title" placeholder="' + nestedpages.page_title + '" value="" /><a href="#" class="button-secondary np-remove-child">-</a></div></div></li>';
1251
+ var container = $(item).siblings('.new-page-titles').append(html);
1252
+ // Make sortable
1253
+ $('.new-page-titles').sortable({
1254
+ items : 'li',
1255
+ handle: '.handle',
1256
+ });
1257
+ }
1258
+
1259
+ /**
1260
+ * Update Pages Text
1261
+ * Toggle between singular and plural text for adding new page(s)
1262
+ */
1263
+ function update_pages_text(form)
1264
+ {
1265
+ var count = $(form).find($('.new-child-row')).length;
1266
+ if ( count > 1 ){
1267
+ $(form).find('h3 strong').text(nestedpages.add_child_pages);
1268
+ $(form).find('.np-save-newchild').text(nestedpages.add_pages + ' (' + count + ')');
1269
+ } else {
1270
+ $(form).find('h3 strong').text(nestedpages.add_child);
1271
+ $(form).find('.np-save-newchild').text(nestedpages.add_page);
1272
+ }
1273
+ }
1274
+
1275
+ /**
1276
+ * Remove New Child Page Field
1277
+ */
1278
+ $(document).on('click', '.np-remove-child', function(e){
1279
+ e.preventDefault();
1280
+ var form = $(this).parents('form');
1281
+ $(this).parents('.new-child-row').parent('li').remove();
1282
+ update_pages_text(form);
1283
+ });
1284
+
1285
+
1286
+ /**
1287
+ * Submit the new child page form
1288
+ */
1289
+ $(document).on('click', '.np-save-newchild', function(e){
1290
+ e.preventDefault();
1291
+ $(this).prop('disabled', 'disabled');
1292
+ var form = $(this).parents('form');
1293
+ $(form).find('.np-qe-loading').show();
1294
+ submit_new_child_form(form);
1295
+ });
1296
+
1297
+
1298
+ /**
1299
+ * Process New Child Form
1300
+ */
1301
+ function submit_new_child_form(form)
1302
+ {
1303
+ $('.np-quickedit-error').hide();
1304
+ var syncmenu = ( $('.np-sync-menu').is(':checked') ) ? 'sync' : 'nosync';
1305
+ $.ajax({
1306
+ url: ajaxurl,
1307
+ type: 'post',
1308
+ datatype: 'json',
1309
+ data: $(form).serialize() + '&action=npnewchild&nonce=' + nestedpages.np_nonce + '&syncmenu=' + syncmenu,
1310
+ success: function(data){
1311
+ if (data.status === 'error'){
1312
+ np_remove_qe_loading(form);
1313
+ $(form).find('.np-quickedit-error').text(data.message).show();
1314
+ } else {
1315
+ np_remove_qe_loading(form);
1316
+ add_new_child_pages(form, data);
1317
+ }
1318
+ },
1319
+ error: function(){
1320
+ np_remove_qe_loading(form);
1321
+ $(form).find('.np-quickedit-error').text('The form could not be saved at this time.').show();
1322
+ }
1323
+ });
1324
+ }
1325
+
1326
+
1327
+ /**
1328
+ * Add the Child New Pages
1329
+ */
1330
+ function add_new_child_pages(form, data)
1331
+ {
1332
+ var pages = data.new_pages;
1333
+ var parent_li = $(form).parent('.new-child').parent('.page-row');
1334
+
1335
+ // If parent li doesn't have a child ol, add one
1336
+ if ( $(parent_li).children('ol').length === 0 ){
1337
+ $(parent_li).append('<ol class="nplist"></ol>');
1338
+ }
1339
+ var appendto = $(parent_li).children('ol');
1340
+
1341
+ for (i = 0; i < pages.length; i++){
1342
+ append_new_child_row(appendto, pages[i]);
1343
+ }
1344
+
1345
+ // Show the child page list and reset submenu toggles
1346
+ $(appendto).show();
1347
+ add_remove_submenu_toggles();
1348
+ np_qe_update_animate(form);
1349
+ }
1350
+
1351
+
1352
+ /**
1353
+ * Append the Row to the View
1354
+ */
1355
+ function append_new_child_row(appendto, page)
1356
+ {
1357
+ var html = '<li id="menuItem_' + page.id + '" class="page-row';
1358
+ if ( page.status === 'publish' ) html += ' published';
1359
+ html += '">';
1360
+ html += '<div class="row">';
1361
+ html += '<div class="child-toggle"></div>';
1362
+ html += '<div class="row-inner">';
1363
+ html += '<i class="np-icon-sub-menu"></i><i class="handle np-icon-menu"></i>';
1364
+ html += '<a href="' + page.edit_link + '" class="page-link page-title">';
1365
+ html += '<span class="title">' + page.title + '</span>';
1366
+
1367
+ // Status
1368
+ if ( page.status !== 'Publish' ){
1369
+ html += '<span class="status">(' + page.status + ')</span>';
1370
+ } else {
1371
+ html += '<span class="status"></span>';
1372
+ }
1373
+
1374
+ html += '<span class="nav-status"></span><span class="edit-indicator"><i class="np-icon-pencil"></i>Edit</span>';
1375
+ html += '</a>';
1376
+
1377
+ // Action Buttons
1378
+ html += '<div class="action-buttons">';
1379
+ html += '<a href="#" class="np-btn open-redirect-modal" data-parentid="' + page.id + '"><i class="np-icon-link"></i></a>';
1380
+ html += '<a href="#" class="np-btn add-new-child" data-id="' + page.id + '" data-parentname="' + page.title + '">' + nestedpages.add_child_short + '</a>';
1381
+
1382
+ // Quick Edit (data attrs)
1383
+ html += '<a href="#" class="np-btn np-quick-edit" data-id="' + page.id + '" data-template="' + page.template + '" data-title="' + page.title + '" data-slug="' + page.slug + '" data-commentstatus="closed" data-status="' + page.status.toLowerCase() + '" data-np-status="show" data-navstatus="show" data-author="' + page.author + '" data-month="' + page.month + '" data-day="' + page.day + '" data-year="' + page.year + '" data-hour="' + page.hour + '" data-minute="' + page.minute + '">' + nestedpages.quick_edit + '</a>';
1384
+
1385
+ html += '<a href="' + page.view_link + '" class="np-btn" target="_blank">' + nestedpages.view + '</a>';
1386
+ html += '<a href="' + page.delete_link + '" class="np-btn np-btn-trash"><i class="np-icon-remove"></i></a>';
1387
+ html += '</div><!-- .action-buttons -->';
1388
+
1389
+ html += '</div><!-- .row-inner --></div><!-- .row -->';
1390
+ html += '</li>';
1391
+
1392
+ $(appendto).append(html);
1393
+ }
1394
+
1395
+
1396
+
1397
  }); //$
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,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(".np-tabs a").on("click",function(a){a.preventDefault(),t(".np-tabs a").removeClass("active"),t(this).addClass("active");var e=t(this).attr("href");t(".np-tabbed-content").hide(),t(e).show()}),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-link-modal").find("input").val(""),t("#np-link-modal .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()})});
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,i=t(".sortable").width(),s=40*e-40,o=i-s;t(a.placeholder).width(o).css("margin-left",s+"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(".page_id").html("<em>Page ID:</em> "+e.id),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(),m(),t(".sortable .quick-edit").remove(),t(".row").show()}function f(){t("body").append('<div class="np-inline-overlay"></div>'),setTimeout(function(){t(".np-inline-overlay").addClass("active")},50)}function m(){t(".np-inline-overlay").removeClass("active").remove()}function g(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?(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 i=t(n).find(".status");if(t(i).text("publish"!==e._status&&"future"!==e._status?"("+e._status+")":"private"===e.keep_private?"("+e.keep_private+")":""),""!==e.post_password){var s=t(i).text();s+=' <i class="np-icon-lock"></i>',t(i).html(s)}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),b(r,e),y(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 b(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 y(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, .np-save-newchild").removeAttr("disabled"),t(a).find(".np-qe-loading").hide()}function C(e){var n=t(e).parent(".quick-edit, .new-child").siblings(".row");t(n).addClass("np-updated"),t(n).show(),t(e).parent(".quick-edit, .new-child").remove(),m(),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 i=t(n).children("ol"),s=t(".quick-edit-form-redirect").clone().insertBefore(i);else var s=t(".quick-edit-form-redirect").clone().appendTo(n);t(s).siblings(".row").hide();t(s).show(),j(s,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){"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 i=t(n).find(".status");t(i).text("publish"!==e._status&&"future"!==e._status?"("+e._status+")":"");var s=t(n).find(".nav-status");t(s).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 P(){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){"error"===a.status?(A(),t(".np-new-link-error").text(a.message).show()):(A(),I(a.post_data))}})}function I(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):O(e,a),t("#np-link-modal").modal("hide");var n=t("#menuItem_"+a.id).find(".row");z(n)}function O(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(),B()}function z(e){t(e).addClass("np-updated"),a(),setTimeout(function(){t(e).addClass("np-updated-show")},1500)}function H(){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 B(){var a=H();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.")}})}function E(){t(".np-newchild-error").hide(),m(),t(".sortable .new-child").remove(),t(".row").show()}function S(a){var e=t(a).closest(".row").parent("li");if(t(e).children("ol").length>0)var n=t(e).children("ol"),i=t(".new-child-form").clone().insertBefore(n);else var i=t(".new-child-form").clone().appendTo(e);t(i).siblings(".row").hide();f(),t(i).find(".parent_name").html("<em>Parent:</em> "+t(a).attr("data-parentname")),t(i).find(".page_parent_id").val(t(a).attr("data-id")),t(i).show()}function Q(a){{var e='<li><i class="handle np-icon-menu"></i><div class="form-control new-child-row"><label>'+nestedpages.title+'</label><div><input type="text" name="post_title[]" class="np_title" placeholder="'+nestedpages.page_title+'" value="" /><a href="#" class="button-secondary np-remove-child">-</a></div></div></li>';t(a).siblings(".new-page-titles").append(e)}t(".new-page-titles").sortable({items:"li",handle:".handle"})}function L(a){var e=t(a).find(t(".new-child-row")).length;e>1?(t(a).find("h3 strong").text(nestedpages.add_child_pages),t(a).find(".np-save-newchild").text(nestedpages.add_pages+" ("+e+")")):(t(a).find("h3 strong").text(nestedpages.add_child),t(a).find(".np-save-newchild").text(nestedpages.add_page))}function F(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=npnewchild&nonce="+nestedpages.np_nonce+"&syncmenu="+e,success:function(e){"error"===e.status?(x(a),t(a).find(".np-quickedit-error").text(e.message).show()):(x(a),G(a,e))},error:function(){x(a),t(a).find(".np-quickedit-error").text("The form could not be saved at this time.").show()}})}function G(a,e){var n=e.new_pages,o=t(a).parent(".new-child").parent(".page-row");0===t(o).children("ol").length&&t(o).append('<ol class="nplist"></ol>');var r=t(o).children("ol");for(i=0;i<n.length;i++)J(r,n[i]);t(r).show(),s(),C(a)}function J(a,e){var n='<li id="menuItem_'+e.id+'" class="page-row';"publish"===e.status&&(n+=" published"),n+='">',n+='<div class="row">',n+='<div class="child-toggle"></div>',n+='<div class="row-inner">',n+='<i class="np-icon-sub-menu"></i><i class="handle np-icon-menu"></i>',n+='<a href="'+e.edit_link+'" class="page-link page-title">',n+='<span class="title">'+e.title+"</span>",n+="Publish"!==e.status?'<span class="status">('+e.status+")</span>":'<span class="status"></span>',n+='<span class="nav-status"></span><span class="edit-indicator"><i class="np-icon-pencil"></i>Edit</span>',n+="</a>",n+='<div class="action-buttons">',n+='<a href="#" class="np-btn open-redirect-modal" data-parentid="'+e.id+'"><i class="np-icon-link"></i></a>',n+='<a href="#" class="np-btn add-new-child" data-id="'+e.id+'" data-parentname="'+e.title+'">'+nestedpages.add_child_short+"</a>",n+='<a href="#" class="np-btn np-quick-edit" data-id="'+e.id+'" data-template="'+e.template+'" data-title="'+e.title+'" data-slug="'+e.slug+'" data-commentstatus="closed" data-status="'+e.status.toLowerCase()+'" data-np-status="show" data-navstatus="show" data-author="'+e.author+'" data-month="'+e.month+'" data-day="'+e.day+'" data-year="'+e.year+'" data-hour="'+e.hour+'" data-minute="'+e.minute+'">'+nestedpages.quick_edit+"</a>",n+='<a href="'+e.view_link+'" class="np-btn" target="_blank">'+nestedpages.view+"</a>",n+='<a href="'+e.delete_link+'" class="np-btn np-btn-trash"><i class="np-icon-remove"></i></a>',n+="</div><!-- .action-buttons -->",n+="</div><!-- .row-inner --></div><!-- .row -->",n+="</li>",t(a).append(n)}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(),B()}),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()),B()}),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(".np-tabs a").on("click",function(a){a.preventDefault(),t(".np-tabs a").removeClass("active"),t(this).addClass("active");var e=t(this).attr("href");t(".np-tabbed-content").hide(),t(e).show()}),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 K=function(){var t=0;return function(a,e){clearTimeout(t),t=setTimeout(a,e)}}();t(window).resize(function(){K(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-inline-overlay",function(){v(),E()}),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(),g(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-link-modal").find("input").val(""),t("#np-link-modal .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"),P()}),t(document).on("click",".np-cancel-newchild",function(t){t.preventDefault(),E()}),t(document).on("click",".add-new-child",function(a){a.preventDefault(),S(t(this))}),t(document).on("click",".add-new-child-row",function(a){a.preventDefault(),Q(t(this));var e=t(this).parents("form");L(e)}),t(document).on("click",".np-remove-child",function(a){a.preventDefault();var e=t(this).parents("form");t(this).parents(".new-child-row").parent("li").remove(),L(e)}),t(document).on("click",".np-save-newchild",function(a){a.preventDefault(),t(this).prop("disabled","disabled");var e=t(this).parents("form");t(e).find(".np-qe-loading").show(),F(e)})});
assets/screenshot-2.png CHANGED
Binary file
assets/screenshot-5.png ADDED
Binary file
includes/class-nestedpages.php CHANGED
@@ -10,6 +10,7 @@ require_once('class-np-handler-newredirect.php');
10
  require_once('class-np-handler-syncmenu.php');
11
  require_once('class-np-handler-nesttoggle.php');
12
  require_once('class-np-handler-gettax.php');
 
13
 
14
  // Required Classes
15
  require_once('class-np-dependencies.php');
@@ -72,6 +73,7 @@ class NestedPages {
72
  add_action( 'wp_ajax_npquickeditredirect', 'nestedpages_quickedit_redirect_handler' );
73
  add_action( 'wp_ajax_npnewredirect', 'nestedpages_new_redirect');
74
  add_action( 'wp_ajax_gettax', 'nestedpages_get_tax' );
 
75
  }
76
  }
77
 
10
  require_once('class-np-handler-syncmenu.php');
11
  require_once('class-np-handler-nesttoggle.php');
12
  require_once('class-np-handler-gettax.php');
13
+ require_once('class-np-handler-newchild.php');
14
 
15
  // Required Classes
16
  require_once('class-np-dependencies.php');
73
  add_action( 'wp_ajax_npquickeditredirect', 'nestedpages_quickedit_redirect_handler' );
74
  add_action( 'wp_ajax_npnewredirect', 'nestedpages_new_redirect');
75
  add_action( 'wp_ajax_gettax', 'nestedpages_get_tax' );
76
+ add_action( 'wp_ajax_npnewchild', 'nestedpages_newchild_handler' );
77
  }
78
  }
79
 
includes/class-np-activate.php CHANGED
@@ -22,7 +22,7 @@ class NP_Activate {
22
  */
23
  public function install()
24
  {
25
- $this->version = '1.1.7';
26
  new NP_ActivateUpgrades($this->version);
27
  $this->setVersion();
28
  $this->setOptions();
22
  */
23
  public function install()
24
  {
25
+ $this->version = '1.1.8';
26
  new NP_ActivateUpgrades($this->version);
27
  $this->setVersion();
28
  $this->setOptions();
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.7'
30
  );
31
  }
32
 
@@ -64,7 +64,7 @@ class NP_Dependencies {
64
  'nestedpages',
65
  $this->plugin_dir . '/assets/js/nestedpages.min.js',
66
  array('jquery'),
67
- '1.1.7'
68
  );
69
  $localized_data = array(
70
  'np_nonce' => wp_create_nonce( 'nestedpages-nonce' ),
@@ -73,7 +73,16 @@ class NP_Dependencies {
73
  'show_hidden' => __('Show Hidden', 'nestedpages'),
74
  'hide_hidden' => __('Hide Hidden', 'nestedpages'),
75
  'add_link' => __('Add Link', 'nestedpages'),
76
- 'add_child_link' => __('Add Child Link', 'nestedpages')
 
 
 
 
 
 
 
 
 
77
  );
78
  $syncmenu = ( get_option('nestedpages_menusync') == 'sync' ) ? true : false;
79
  $localized_data['syncmenu'] = $syncmenu;
26
  'nestedpages',
27
  $this->plugin_dir . '/assets/css/nestedpages.css',
28
  array(),
29
+ '1.1.8'
30
  );
31
  }
32
 
64
  'nestedpages',
65
  $this->plugin_dir . '/assets/js/nestedpages.min.js',
66
  array('jquery'),
67
+ '1.1.8'
68
  );
69
  $localized_data = array(
70
  'np_nonce' => wp_create_nonce( 'nestedpages-nonce' ),
73
  'show_hidden' => __('Show Hidden', 'nestedpages'),
74
  'hide_hidden' => __('Hide Hidden', 'nestedpages'),
75
  'add_link' => __('Add Link', 'nestedpages'),
76
+ 'add_child_link' => __('Add Child Link', 'nestedpages'),
77
+ 'title' => __('Title', 'nestedpages'),
78
+ 'quick_edit' => __('Quick Edit', 'nestedpages'),
79
+ 'page_title' => __('Page Title', 'nestedpages'),
80
+ 'view' => __('View', 'nestedpages'),
81
+ 'add_child_short' => __('Add Child', 'nestedpages'),
82
+ 'add_child' => __('Add Child Page', 'nestedpages'),
83
+ 'add_child_pages' => __('Add Child Pages', 'nestedpages'),
84
+ 'add_page' => __('Add Page', 'nestedpages'),
85
+ 'add_pages' => __('Add Pages', 'nestedpages')
86
  );
87
  $syncmenu = ( get_option('nestedpages_menusync') == 'sync' ) ? true : false;
88
  $localized_data['syncmenu'] = $syncmenu;
includes/class-np-factory-post.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ require_once('class-np-repository-post.php');
3
+ require_once('class-np-validation.php');
4
+ /**
5
+ * Factory class for adding new posts
6
+ */
7
+ class NP_PostFactory {
8
+
9
+ /**
10
+ * Post Repository
11
+ * @var object
12
+ */
13
+ private $repo;
14
+
15
+ /**
16
+ * New Page IDs
17
+ * @var array
18
+ */
19
+ private $new_ids = array();
20
+
21
+
22
+ public function __construct()
23
+ {
24
+ $this->repo = new NP_PostRepository;
25
+ }
26
+
27
+
28
+ /**
29
+ * Create New Child Pages
30
+ */
31
+ public function createChildPages($data)
32
+ {
33
+ foreach($data['post_title'] as $key => $title){
34
+ $post = array(
35
+ 'post_title' => $title,
36
+ 'post_type' => 'page',
37
+ 'post_status' => $data['_status'],
38
+ 'post_author' => $data['post_author'],
39
+ 'post_parent' => $data['parent_id']
40
+ );
41
+ $new_page_id = wp_insert_post($post);
42
+ $this->new_ids[$key] = $new_page_id;
43
+ }
44
+ return $this->getNewPages();
45
+ }
46
+
47
+
48
+ /**
49
+ * Get Array of New Pages
50
+ */
51
+ private function getNewPages()
52
+ {
53
+ $new_pages = $this->repo->pageArray($this->new_ids);
54
+ return $new_pages;
55
+ }
56
+
57
+
58
+ }
includes/class-np-handler-newchild.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function nestedpages_newchild_handler()
4
+ {
5
+ new NP_NewChild_Handler;
6
+ }
7
+
8
+ require_once('class-np-handler-base.php');
9
+ require_once('class-np-validation.php');
10
+ require_once('class-np-factory-post.php');
11
+
12
+ /**
13
+ * Handles processing the quick edit form
14
+ * @return json response
15
+ */
16
+ class NP_NewChild_Handler extends NP_BaseHandler {
17
+
18
+ /**
19
+ * Post Factory
20
+ */
21
+ private $factory;
22
+
23
+ /**
24
+ * Validation
25
+ */
26
+ private $validation;
27
+
28
+
29
+ public function __construct()
30
+ {
31
+ parent::__construct();
32
+ $this->factory = new NP_PostFactory;
33
+ $this->validation = new NP_Validation;
34
+ $this->savePages();
35
+ $this->syncMenu();
36
+ $this->sendResponse();
37
+ }
38
+
39
+
40
+ /**
41
+ * Run Validation
42
+ */
43
+ private function validates()
44
+ {
45
+ return $this->validation->validateNewPages($this->data);
46
+ }
47
+
48
+
49
+ /**
50
+ * Save the new page(s)
51
+ */
52
+ private function savePages()
53
+ {
54
+ if ( $this->validates() ){
55
+ $this->data['new_pages'] = $this->factory->createChildPages($this->data);
56
+ $this->setResponse();
57
+ return;
58
+ }
59
+ $this->sendErrorResponse();
60
+ }
61
+
62
+
63
+ /**
64
+ * Set the Response
65
+ */
66
+ private function setResponse()
67
+ {
68
+ $this->response = array(
69
+ 'status'=>'success',
70
+ 'new_pages' => $this->data['new_pages']
71
+ );
72
+ }
73
+
74
+ }
75
+
includes/class-np-newpage.php CHANGED
@@ -65,7 +65,7 @@ class NP_NewPage {
65
  echo '<script>jQuery(document).ready(function(){jQuery("#toplevel_page_nestedpages").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu").addClass("wp-menu-open");jQuery("#toplevel_page_nestedpages a:first").addClass("wp-has-current-submenu");var addnew = jQuery("#toplevel_page_nestedpages ul li:nth-child(3)");jQuery(addnew).addClass("current");jQuery(addnew).children("a").addClass("current");});</script>';
66
  }
67
  if ( $page->id == 'edit-page' ){
68
- echo '<script>jQuery(document).ready(function(){jQuery("#toplevel_page_nestedpages").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu").addClass("wp-menu-open");jQuery("#toplevel_page_nestedpages a:first").addClass("wp-has-current-submenu");var addnew = jQuery("#toplevel_page_nestedpages ul li:nth-child(4)");jQuery(addnew).addClass("current");jQuery(addnew).children("a").addClass("current");});</script>';
69
  }
70
  if ( $page->id == 'toplevel_page_nestedpages' ){
71
  echo '<script>jQuery(document).ready(function(){jQuery("#toplevel_page_nestedpages").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu").addClass("wp-menu-open");jQuery("#toplevel_page_nestedpages a:first").addClass("wp-has-current-submenu");var addnew = jQuery("#toplevel_page_nestedpages ul li:nth-child(2)");jQuery(addnew).addClass("current");jQuery(addnew).children("a").addClass("current");});</script>';
65
  echo '<script>jQuery(document).ready(function(){jQuery("#toplevel_page_nestedpages").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu").addClass("wp-menu-open");jQuery("#toplevel_page_nestedpages a:first").addClass("wp-has-current-submenu");var addnew = jQuery("#toplevel_page_nestedpages ul li:nth-child(3)");jQuery(addnew).addClass("current");jQuery(addnew).children("a").addClass("current");});</script>';
66
  }
67
  if ( $page->id == 'edit-page' ){
68
+ echo '<script>jQuery(document).ready(function(){jQuery("#toplevel_page_nestedpages").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu").addClass("wp-menu-open");jQuery("#toplevel_page_nestedpages a:first").addClass("wp-has-current-submenu");var addnew = jQuery("#toplevel_page_nestedpages ul li:nth-child(4)");});</script>';
69
  }
70
  if ( $page->id == 'toplevel_page_nestedpages' ){
71
  echo '<script>jQuery(document).ready(function(){jQuery("#toplevel_page_nestedpages").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu").addClass("wp-menu-open");jQuery("#toplevel_page_nestedpages a:first").addClass("wp-has-current-submenu");var addnew = jQuery("#toplevel_page_nestedpages ul li:nth-child(2)");jQuery(addnew).addClass("current");jQuery(addnew).children("a").addClass("current");});</script>';
includes/class-np-pagelisting.php CHANGED
@@ -95,9 +95,35 @@ class NP_PageListing {
95
  {
96
  global $submenu;
97
  $submenu['nestedpages'][50] = array( __('All Pages','nestedpages'), 'publish_pages', esc_url(admin_url('admin.php?page=nestedpages')) );
98
- $submenu['nestedpages'][60] = array( __('Add New','nestedpages'), 'publish_pages', $this->addNewPageLink() );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  if ( get_option('nestedpages_hidedefault') !== 'hide' ){
100
- $submenu['nestedpages'][70] = array( __('Default Pages','nestedpages'), 'publish_pages', $this->defaultPagesLink() );
101
  }
102
  }
103
 
@@ -230,12 +256,12 @@ class NP_PageListing {
230
 
231
  if ( $count == 1 ) {
232
  echo ( $this->user->canSortPages() )
233
- ? '<ol class="sortable nplist">'
234
- : '<ol class="sortable no-sort nplist">';
235
  } else {
236
- echo '<ol class="nplist"';
237
- if ( count($compared) > 0 ) echo ' style="display:block;"';
238
- echo '>';
239
  }
240
  }
241
 
95
  {
96
  global $submenu;
97
  $submenu['nestedpages'][50] = array( __('All Pages','nestedpages'), 'publish_pages', esc_url(admin_url('admin.php?page=nestedpages')) );
98
+ $this->additionalSubmenus();
99
+
100
+ }
101
+
102
+
103
+ /**
104
+ * Add Additional Submenus
105
+ * @since 1.1.8
106
+ */
107
+ public function additionalSubmenus()
108
+ {
109
+ global $submenu;
110
+ // Get the right submenu and remove all pages link
111
+ foreach($submenu as $key => $sub){
112
+ if ($key == 'edit.php?post_type=' . $this->post_type->name){
113
+ unset($sub['5']); // Remove "All Pages"
114
+ $menu_items = $sub;
115
+ }
116
+ }
117
+ if ( isset($menu_items) ){
118
+ $c = 60;
119
+ foreach($menu_items as $item){
120
+ $submenu['nestedpages'][$c] = array( $item[0], $item[1], $item[2]);
121
+ $c = $c + 10;
122
+ }
123
+ }
124
+ // Default Pages
125
  if ( get_option('nestedpages_hidedefault') !== 'hide' ){
126
+ $submenu['nestedpages'][$c] = array( __('Default Pages','nestedpages'), 'publish_pages', $this->defaultPagesLink() );
127
  }
128
  }
129
 
256
 
257
  if ( $count == 1 ) {
258
  echo ( $this->user->canSortPages() )
259
+ ? '<ol class="sortable nplist visible">'
260
+ : '<ol class="sortable no-sort nplist" visible>';
261
  } else {
262
+ echo '<ol class="nplist';
263
+ if ( count($compared) > 0 ) echo ' visible" style="display:block;';
264
+ echo '">';
265
  }
266
  }
267
 
includes/class-np-repository-post.php CHANGED
@@ -378,4 +378,48 @@ class NP_PostRepository {
378
  return $publish_count;
379
  }
380
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
  }
378
  return $publish_count;
379
  }
380
 
381
+
382
+ /**
383
+ * Get an array of pages given an array of IDs
384
+ * @since 1.1.8 (used in creation of new pages)
385
+ * @param ids array
386
+ * @return array
387
+ */
388
+ public function pageArray($ids)
389
+ {
390
+ $pages = array();
391
+ $page_query = new WP_Query(array(
392
+ 'post_type' => 'page',
393
+ 'posts_per_page' => -1,
394
+ 'post__in' => $ids,
395
+ 'post_status' => array('publish', 'draft')
396
+ ));
397
+ if ( $page_query->have_posts() ) : $c = 0; while ( $page_query->have_posts() ) : $page_query->the_post();
398
+ global $post;
399
+
400
+ $pages[$c]['id'] = get_the_id();
401
+ $pages[$c]['title'] = get_the_title();
402
+ $pages[$c]['slug'] = $post->post_name;
403
+ $pages[$c]['author'] = get_the_author_meta('ID');
404
+ $pages[$c]['status'] = ucfirst(get_post_status());
405
+ $pages[$c]['template'] = get_page_template_slug();
406
+ $pages[$c]['post_parent'] = $post->post_parent;
407
+ $pages[$c]['edit_link'] = get_edit_post_link($post->ID);
408
+ $pages[$c]['view_link'] = get_the_permalink();
409
+ $pages[$c]['delete_link'] = get_delete_post_link($post->ID);
410
+ $pages[$c]['comment_status'] = $post->comment_status;
411
+ $pages[$c]['comment_count'] = wp_count_comments($post->ID);
412
+
413
+ // Date Vars
414
+ $pages[$c]['day'] = get_the_time('d');
415
+ $pages[$c]['month'] = get_the_time('m');
416
+ $pages[$c]['year'] = get_the_time('Y');
417
+ $pages[$c]['hour'] = get_the_time('H');
418
+ $pages[$c]['minute'] = get_the_time('i');
419
+
420
+
421
+ $c++; endwhile; endif; wp_reset_postdata();
422
+ return $pages;
423
+ }
424
+
425
  }
includes/class-np-validation.php CHANGED
@@ -94,4 +94,36 @@ class NP_Validation {
94
  }
95
 
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  }
94
  }
95
 
96
 
97
+ /**
98
+ * Validate New Pages
99
+ */
100
+ public function validateNewPages($data)
101
+ {
102
+ // Check for Parent ID
103
+ if ( (!isset($data['parent_id'])) || (!is_numeric($data['parent_id'])) ){
104
+ $message = __('A valid parent page was not provided.', 'nestedpages');
105
+ return wp_send_json(array('status' => 'error', 'message' => $message));
106
+ die();
107
+ }
108
+
109
+ // Make sure there's at least one page
110
+ if ( !isset($data['post_title']) ){
111
+ $message = __('Please provide at least one page title.', 'nestedpages');
112
+ return wp_send_json(array('status' => 'error', 'message' => $message));
113
+ die();
114
+ }
115
+
116
+ // Page fields cannot be blank
117
+ foreach ( $data['post_title'] as $title ){
118
+ if ( $title == "" ){
119
+ $message = __('Page titles cannot be blank.', 'nestedpages');
120
+ return wp_send_json(array('status' => 'error', 'message' => $message));
121
+ die();
122
+ }
123
+ }
124
+
125
+ return true;
126
+ }
127
+
128
+
129
  }
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.7
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  Text Domain: nestedpages
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.8
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  Text Domain: nestedpages
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: kylephillips
3
  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.1
7
- Stable tag: 1.1.6
8
 
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -19,6 +19,7 @@ Nested Pages provides an intuitive drag and drop interface for managing pages in
19
  * Quick edit functionality
20
  * An expandable, sortable tree view of your site's page structure
21
  * A native Wordpress menu, automatically generated to match your Nested Pages screen
 
22
  * A touch-friendly interface
23
 
24
  For more information visit [nestedpages.com](http://nestedpages.com).
@@ -31,7 +32,7 @@ For more information visit [nestedpages.com](http://nestedpages.com).
31
  * English
32
  * Finnish (Roni Laukkarinen)
33
  * French (Nico Mollet)
34
- * German/Swiss German (@podlebar)
35
 
36
  == Installation ==
37
 
@@ -46,7 +47,7 @@ For more information visit [nestedpages.com](http://nestedpages.com).
46
  Nested Pages is currently limited to the WordPress “Page” post type.
47
 
48
  = How do I access the WordPress “Pages” screen? =
49
- Click the “Default Pages” link in the page subnav, or on the Nested Pages screen.
50
 
51
  = How do I save the order I create? =
52
  Page sorting and nesting is saved in the background after changes are made to the structure.
@@ -71,8 +72,16 @@ If you have Wordpress SEO by Yoast installed, your page score indicators are sho
71
 
72
  4. Toggle nested child pages for a clutter-free tree
73
 
 
 
74
  == Changelog ==
75
 
 
 
 
 
 
 
76
  = 1.1.7 =
77
  * Danish Translation (Provided by Thomas Blomberg)
78
  * Finnish Translation (Provided by Roni Laukkarinen)
@@ -116,6 +125,9 @@ If you have Wordpress SEO by Yoast installed, your page score indicators are sho
116
 
117
  == Upgrade Notice ==
118
 
 
 
 
119
  = 1.1.6 =
120
  Minor UI enhancements and bug fixes.
121
 
3
  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.1
7
+ Stable tag: 1.1.7
8
 
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
19
  * Quick edit functionality
20
  * An expandable, sortable tree view of your site's page structure
21
  * A native Wordpress menu, automatically generated to match your Nested Pages screen
22
+ * A way to quickly add child pages (ideal for development)
23
  * A touch-friendly interface
24
 
25
  For more information visit [nestedpages.com](http://nestedpages.com).
32
  * English
33
  * Finnish (Roni Laukkarinen)
34
  * French (Nico Mollet)
35
+ * German/Swiss German (Bartosz Podlewski)
36
 
37
  == Installation ==
38
 
47
  Nested Pages is currently limited to the WordPress “Page” post type.
48
 
49
  = How do I access the WordPress “Pages” screen? =
50
+ Click the “Default Pages” link in the page subnav, or on the Nested Pages screen. This item may be optionally hidden under the Nested Pages settings.
51
 
52
  = How do I save the order I create? =
53
  Page sorting and nesting is saved in the background after changes are made to the structure.
72
 
73
  4. Toggle nested child pages for a clutter-free tree
74
 
75
+ 5. Quickly add child pages without leaving the page tree
76
+
77
  == Changelog ==
78
 
79
+ = 1.1.8 =
80
+ * New Child Pages Interface - Add child pages more efficiently with the new add child pages dialog. Add a single child page without leaving the Nested Pages view, or add multiple pages with one click. Reorder multiple child pages before saving with the drag and drop interface you're accustomed to.
81
+ * Tested for 4.1 compatibility
82
+ * Page ID indicator added to Quick Edit dialog
83
+ * Taxonomies & other custom menu items now visible in pages admin menu
84
+
85
  = 1.1.7 =
86
  * Danish Translation (Provided by Thomas Blomberg)
87
  * Finnish Translation (Provided by Roni Laukkarinen)
125
 
126
  == Upgrade Notice ==
127
 
128
+ = 1.1.8 =
129
+ New Child Pages Interface
130
+
131
  = 1.1.6 =
132
  Minor UI enhancements and bug fixes.
133
 
views/new-child.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $post_type_object = get_post_type_object( 'page' );
3
+ $can_publish = current_user_can( $post_type_object->cap->publish_posts );
4
+ ?>
5
+ <form method="get" action="">
6
+ <div class="form-interior">
7
+ <h3><strong><?php _e('Add Child Page'); ?></strong><span class="parent_name"></span></h3>
8
+
9
+ <div class="np-quickedit-error" style="clear:both;display:none;"></div>
10
+
11
+ <div class="fields">
12
+
13
+ <div class="left">
14
+
15
+ <ol class="new-page-titles">
16
+ <li>
17
+ <i class="handle np-icon-menu"></i>
18
+ <div class="form-control new-child-row">
19
+ <label><?php _e( 'Title' ); ?></label>
20
+ <div>
21
+ <input type="text" name="post_title[]" class="np_title" placeholder="<?php _e('Page Title', 'nestedpages'); ?>" value="" />
22
+ <a href="#" class="button-secondary np-remove-child">-</a>
23
+ </div>
24
+ </div>
25
+ </li>
26
+ </ol>
27
+
28
+ <a href="#" class="add-new-child-row button-primary" style="clear:both;"><?php _e('+', 'nestedpages'); ?></a>
29
+ </div><!-- .left -->
30
+
31
+
32
+ <div class="right">
33
+
34
+ <div class="form-control">
35
+ <label><?php _e( 'Status' ); ?></label>
36
+ <select name="_status" class="np_status">
37
+ <?php if ( $can_publish ) : ?>
38
+ <option value="publish"><?php _e( 'Published' ); ?></option>
39
+ <?php endif; ?>
40
+ <option value="draft"><?php _e( 'Draft' ); ?></option>
41
+ </select>
42
+ </div>
43
+
44
+ <?php
45
+ /*
46
+ * Authors Dropdown
47
+ */
48
+ $authors_dropdown = '';
49
+ if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) :
50
+ $users_opt = array(
51
+ 'hide_if_only_one_author' => false,
52
+ 'who' => 'authors',
53
+ 'name' => 'post_author',
54
+ 'id' => 'post_author',
55
+ 'class'=> 'authors',
56
+ 'multi' => 1,
57
+ 'echo' => 0
58
+ );
59
+
60
+ if ( $authors = wp_dropdown_users( $users_opt ) ) :
61
+ $authors_dropdown = '<div class="form-control np_author"><label>' . __( 'Author' ) . '</label>';
62
+ $authors_dropdown .= $authors;
63
+ $authors_dropdown .= '</div>';
64
+ endif;
65
+ echo $authors_dropdown;
66
+ endif;
67
+ ?>
68
+
69
+ </div><!-- .right -->
70
+
71
+ </div><!-- .fields -->
72
+
73
+ </div><!-- .form-interior -->
74
+
75
+
76
+ <div class="buttons">
77
+ <input type="hidden" name="parent_id" class="page_parent_id" />
78
+ <a accesskey="c" href="#" class="button-secondary alignleft np-cancel-newchild">
79
+ <?php _e( 'Cancel' ); ?>
80
+ </a>
81
+ <a accesskey="s" href="#" class="button-primary np-save-newchild alignright">
82
+ <?php _e( 'Add Page' ); ?>
83
+ </a>
84
+ <span class="np-qe-loading"></span>
85
+ </div>
86
+ </form>
views/pages.php CHANGED
@@ -28,20 +28,23 @@
28
 
29
  <img src="<?php echo plugins_url(); ?>/wp-nested-pages/assets/images/loading.gif" alt="loading" id="nested-loading" />
30
 
31
- <ul class="subsubsub">
32
- <li><a href="#all" class="np-toggle-publish active"><?php _e('All'); ?></a> | </li>
33
- <li><a href="#published" class="np-toggle-publish"><?php _e('Published'); ?></a> | </li>
34
- <li><a href="#show" class="np-toggle-hidden"><?php _e('Show Hidden', 'nestedpages'); ?> </a>
35
- <span class="count">(<?php echo $this->post_repo->getHiddenCount(); ?>)</span> | </li>
36
- <?php if ( current_user_can('delete_pages') ) : ?>
37
- <li><a href="edit.php?post_status=trash&post_type=page"><?php _e('Trash'); ?> </a>
38
- <span class="count">(<?php echo $this->post_repo->trashedPagesCount(); ?>)</span></li>
39
- <?php endif; ?>
40
- <?php if ( get_option('nestedpages_hidedefault') !== 'hide' ) : ?>
41
- <li> | <a href="<?php echo $this->defaultPagesLink(); ?>"><?php _e('Default'); ?> <?php _e($this->post_type->labels->name); ?></a></li>
42
- <?php endif; ?>
43
- </ul>
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  <div id="np-error" class="updated error" style="clear:both;display:none;"></div>
47
 
@@ -49,14 +52,18 @@
49
  <div class="nestedpages">
50
  <?php $this->loopPages(); ?>
51
 
52
- <div class="quick-edit quick-edit-form" style="display:none;">
53
  <?php include( NP_Helpers::view('quickedit') ); ?>
54
  </div>
55
 
56
  <?php if ( current_user_can('publish_pages') ) : ?>
57
- <div class="quick-edit quick-edit-form-redirect" style="display:none;">
58
  <?php include( NP_Helpers::view('quickedit-redirect') ); ?>
59
  </div>
 
 
 
 
60
  <?php endif; ?>
61
  </div>
62
 
28
 
29
  <img src="<?php echo plugins_url(); ?>/wp-nested-pages/assets/images/loading.gif" alt="loading" id="nested-loading" />
30
 
31
+ <div class="nestedpages-tools">
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
+ <ul class="subsubsub">
34
+ <li><a href="#all" class="np-toggle-publish active"><?php _e('All'); ?></a> | </li>
35
+ <li><a href="#published" class="np-toggle-publish"><?php _e('Published'); ?></a> | </li>
36
+ <li><a href="#show" class="np-toggle-hidden"><?php _e('Show Hidden', 'nestedpages'); ?> </a>
37
+ <span class="count">(<?php echo $this->post_repo->getHiddenCount(); ?>)</span> | </li>
38
+ <?php if ( current_user_can('delete_pages') ) : ?>
39
+ <li><a href="edit.php?post_status=trash&post_type=page"><?php _e('Trash'); ?> </a>
40
+ <span class="count">(<?php echo $this->post_repo->trashedPagesCount(); ?>)</span></li>
41
+ <?php endif; ?>
42
+ <?php if ( get_option('nestedpages_hidedefault') !== 'hide' ) : ?>
43
+ <li> | <a href="<?php echo $this->defaultPagesLink(); ?>"><?php _e('Default'); ?> <?php _e($this->post_type->labels->name); ?></a></li>
44
+ <?php endif; ?>
45
+ </ul>
46
+
47
+ </div><!-- .nestedpages-tools -->
48
 
49
  <div id="np-error" class="updated error" style="clear:both;display:none;"></div>
50
 
52
  <div class="nestedpages">
53
  <?php $this->loopPages(); ?>
54
 
55
+ <div class="quick-edit quick-edit-form np-inline-modal" style="display:none;">
56
  <?php include( NP_Helpers::view('quickedit') ); ?>
57
  </div>
58
 
59
  <?php if ( current_user_can('publish_pages') ) : ?>
60
+ <div class="quick-edit quick-edit-form-redirect np-inline-modal" style="display:none;">
61
  <?php include( NP_Helpers::view('quickedit-redirect') ); ?>
62
  </div>
63
+
64
+ <div class="new-child new-child-form np-inline-modal" style="display:none;">
65
+ <?php include( NP_Helpers::view('new-child') ); ?>
66
+ </div>
67
  <?php endif; ?>
68
  </div>
69
 
views/quickedit.php CHANGED
@@ -8,7 +8,7 @@
8
 
9
  <form method="get" action="">
10
  <div class="form-interior">
11
- <h3><?php _e('Quick Edit'); ?></h3>
12
 
13
  <div class="np-quickedit-error" style="clear:both;display:none;"></div>
14
 
8
 
9
  <form method="get" action="">
10
  <div class="form-interior">
11
+ <h3><?php _e('Quick Edit'); ?><span class="page_id"></span></h3>
12
 
13
  <div class="np-quickedit-error" style="clear:both;display:none;"></div>
14
 
views/row.php CHANGED
@@ -45,6 +45,7 @@
45
  ?>
46
  </a>
47
 
 
48
  <a href="#" class="np-toggle-edit"><i class="np-icon-pencil"></i></a>
49
 
50
  <div class="action-buttons">
@@ -63,7 +64,7 @@
63
 
64
  <a href="#" class="np-btn open-redirect-modal" data-parentid="<?php echo get_the_id(); ?>"><i class="np-icon-link"></i></a>
65
 
66
- <a href="<?php echo $this->addNewPageLink(); ?>&npparent=<?php echo get_the_id(); ?>" class="np-btn"><?php _e('Add Child', 'nestedpages'); ?></a>
67
 
68
  <?php endif; ?>
69
 
45
  ?>
46
  </a>
47
 
48
+ <!-- Responsive Toggle Button -->
49
  <a href="#" class="np-toggle-edit"><i class="np-icon-pencil"></i></a>
50
 
51
  <div class="action-buttons">
64
 
65
  <a href="#" class="np-btn open-redirect-modal" data-parentid="<?php echo get_the_id(); ?>"><i class="np-icon-link"></i></a>
66
 
67
+ <a href="#" class="np-btn add-new-child" data-id="<?php echo get_the_id(); ?>" data-parentname="<?php the_title(); ?>"><?php _e('Add Child', 'nestedpages'); ?></a>
68
 
69
  <?php endif; ?>
70