Nested Pages - Version 1.1.2

Version Description

  • Status bug fix in pages view
  • Option to customize the generated nav menu added
Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

assets/css/nestedpages.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:'nestedpages';src:url('fonts/nestedpages.eot?-cjbqo6');src:url('fonts/nestedpages.eot?#iefix-cjbqo6') format('embedded-opentype'),url('fonts/nestedpages.woff?-cjbqo6') format('woff'),url('fonts/nestedpages.ttf?-cjbqo6') format('truetype'),url('fonts/nestedpages.svg?-cjbqo6#nestedpages') format('svg');font-weight:normal;font-style:normal;}[class^="np-icon-"],[class*=" np-icon-"]{font-family:'nestedpages';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.np-icon-no:before{content:"\e601";}.np-icon-yes:before{content:"\e602";}.np-icon-menu:before{content:"\e603";}.np-icon-arrow-down:before{content:"\e604";}.np-icon-arrow-right:before{content:"\e605";}.np-icon-sub-menu:before{content:"\e600";}.np-icon-arrows-alt:before{content:"\f0b2";}.np-icon-pencil:before{content:"\e608";}.np-icon-bubble:before{content:"\e607";}.np-icon-lock:before{content:"\e609";}.np-icon-remove:before{content:"\e60a";}.np-icon-list:before{content:"\e60d";}.np-icon-menu2:before{content:"\e606";}.np-icon-link:before{content:"\e612";}.np-icon-eye:before{content:"\e60b";}.np-icon-eye-blocked:before{content:"\e60c";}.np-icon-mail:before{content:"\e60e";}.np-icon-github:before{content:"\e60f";}.np-icon-wordpress:before{content:"\e610";}.np-icon-linkedin:before{content:"\e611";}.np-btn,.np-toggle-edit{text-decoration:none;color:#555;display:inline-block;background-color:#f7f7f7;border:1px solid #e1e1e1;padding:3px 8px;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0, 0, 0, 0.08);-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.np-btn:hover,.np-toggle-edit:hover{background-color:#0074a2;color:#ffffff;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),0 1px 0 rgba(0, 0, 0, 0.08);border-color:#0074a2;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.np-btn-trash{background-color:#e14d43;border-color:#e14d43;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.3),0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.3),0 1px 0 rgba(0, 0, 0, 0.08);color:#ffffff;}.np-btn-trash:hover{background-color:#ba251e;border-color:#ba251e;}.np-toggle-edit{display:none;float:right;margin-right:10px;}.np-toggle-edit.active{background-color:#0074a2;color:#ffffff;-webkit-box-shadow:none;box-shadow:none;border-color:#0074a2;}@media (max-width: 767px){.np-toggle-edit{display:inline-block;}}.np-quickedit-error{border-left:4px solid #dd3d36;padding:4px 0 4px 8px;margin-bottom:10px;background-color:#f9f9f9;}.modal-open{overflow:hidden;}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;-webkit-overflow-scrolling:touch;outline:0;}.modal.fade .modal-dialog{-webkit-transform:translate(0, -25%);-ms-transform:translate(0, -25%);-o-transform:translate(0, -25%);transform:translate(0, -25%);-webkit-transition:-webkit-transform 0.3s ease-out;-o-transition:-o-transform 0.3s ease-out;transition:transform 0.3s ease-out;}.modal.in .modal-dialog{-webkit-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0);}.modal-open .modal{overflow-x:hidden;overflow-y:auto;}.modal-dialog{position:relative;width:auto;margin:10px auto 0px auto;max-width:500px;}.modal-content{position:relative;background-color:#ffffff;-webkit-box-shadow:0 3px 9px rgba(0, 0, 0, 0.5);box-shadow:0 3px 9px rgba(0, 0, 0, 0.5);-webkit-background-clip:padding-box;background-clip:padding-box;outline:0;}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:0.85;}.modal-header{padding:8px;background-color:#ebebeb;}.modal-header .sr-only{display:none;}.modal-header .close{margin-top:-2px;}.modal-title{margin:0;}.modal-body{position:relative;padding:10px;}.modal-footer{padding:10px;text-align:right;background-color:#404040;zoom:1;}.modal-footer:before,.modal-footer:after{content:" ";display:table;}.modal-footer:after{clear:both;}.modal-footer .modal-close{float:left;}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll;}.nestedpages-toggleall{float:right;margin-top:-30px;}.np-toggle-publish{color:#999999;}.np-toggle-publish.active{color:#333;font-weight:bold;}.np-sync-menu-cont{float:right;margin:-27px 15px 0px 0px;}#nested-loading{display:none;float:right;width:30px;margin:-31px 120px 0 0;}.wppages-top-tools{margin-bottom:20px;padding-top:10px;}.wppages-top-tools a{text-decoration:none;}.wppages-handle-expand{float:left;background-color:#f2f2f2;font-size:18px;width:46px;height:46px;margin-right:5px;text-align:center;border-right:1px solid #e1e1e1;}.wppages-handle-expand div{background-color:#ffffff;border:1px solid #e1e1e1;width:24px;height:24px;line-height:24px;-webkit-border-radius:15px;border-radius:15px;margin-top:9px;cursor:pointer;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.wppages-handle-expand div:hover{background-color:#0074a2;border-color:#0074a2;color:#ffffff;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.nestedpages{clear:both;-webkit-border-radius:4px;border-radius:4px;}.nestedpages .ui-sortable-placeholder{display:block !important;position:relative;min-height:46px;border:0;border:1px dashed #0074a2 !important;background-color:#effaff;margin:0;}.nestedpages .ui-sortable-helper{opacity:0.8;-webkit-box-shadow:2px 2px 3px 0px rgba(0, 0, 0, 0.5);box-shadow:2px 2px 3px 0px rgba(0, 0, 0, 0.5);}.nestedpages ol{list-style-type:none;clear:both;margin:0;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.06);box-shadow:0 1px 1px rgba(0, 0, 0, 0.06);border:1px solid #e5e5e5;-webkit-border-radius:3px;border-radius:3px;}.nestedpages ol a{text-decoration:none;}.nestedpages ol .page-link{line-height:26px;}.nestedpages ol .page-link .edit-indicator{margin-left:10px;display:none;}.nestedpages ol .page-link .edit-indicator i{font-size:12px;margin-right:3px;}.nestedpages ol .page-link:hover .edit-indicator{display:inline-block;}.nestedpages ol .locked{color:#333;margin-left:20px;}.nestedpages ol .locked em{font-style:normal;}.nestedpages ol .status{color:#999999;margin:0px 10px;}.nestedpages ol .np-icon-eye-blocked{color:#999999;}.nestedpages ol .nav-status{color:#b3b3b3;}.nestedpages ol .np-hide{display:none;}.nestedpages ol .np-seo-indicator{display:block;float:right;width:12px;height:12px;-webkit-border-radius:8px;border-radius:8px;background-color:#999999;margin:6px 10px 0 0;}.nestedpages ol .np-seo-indicator.good{background-color:#7ad03a;}.nestedpages ol .np-seo-indicator.ok{background-color:#ffba00;}.nestedpages ol .np-seo-indicator.poor{background-color:#ee7c1b;}.nestedpages ol .np-seo-indicator.bad{background-color:#dd3d36;}.nestedpages ol .np-seo-indicator.warn{background-color:maroon;}.nestedpages ol .np-seo-indicator.wrong{background-color:red;}.nestedpages ol li{margin:0;border-top:1px solid #e1e1e1;background-color:#0074a2;}.nestedpages ol li.first{border:0;}.nestedpages ol li:first-child{border:0;}.nestedpages ol li.no-border{border:0;}.nestedpages ol ol{display:none;-webkit-border-radius:0;border-radius:0;list-style-type:none;border:0;-webkit-box-shadow:none;box-shadow:none;border-top:1px solid #e1e1e1;}.nestedpages .child-toggle{float:left;margin:-10px 10px 0 0;width:46px;height:46px;background-color:#f0f0f0;text-align:center;}.nestedpages .child-toggle a{display:inline-block;margin-top:7px;width:28px;height:28px;background-color:#ffffff;border:1px solid #e1e1e1;-webkit-border-radius:20px;border-radius:20px;font-size:20px;line-height:30px;color:#333;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.nestedpages .child-toggle a i{line-height:26px;}.nestedpages .child-toggle a:hover{background-color:#0074a2;color:#ffffff;border-color:#0074a2;}.nestedpages .handle{display:inline-block;cursor:move;font-size:20px;color:#b3b3b3;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;position:relative;top:3px;}.nestedpages .handle:hover{-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;color:#0074a2;}.nestedpages .np-icon-sub-menu{display:none;color:#999999;position:relative;left:2px;}.nestedpages .handle,.nestedpages .np-icon-sub-menu{width:30px;height:46px;line-height:36px;margin-top:-10px;}.nestedpages li ol .row .np-icon-sub-menu{display:inline-block;}.nestedpages li ol .row .handle{display:none;}.nestedpages li ol .row:hover .np-icon-sub-menu{display:none;}.nestedpages li ol .row:hover .handle{display:inline-block;}.nestedpages .row{background-color:#ffffff;display:block;padding:10px 0px 0px 0px;height:36px;zoom:1;}.nestedpages .row:before,.nestedpages .row:after{content:" ";display:table;}.nestedpages .row:after{clear:both;}.nestedpages .row:hover{background-color:#f0f0f0;}.nestedpages .row.np-updated{background-color:#e9f7df;-webkit-transition:background-color 400ms ease;-o-transition:background-color 400ms ease;transition:background-color 400ms ease;}.nestedpages .row.np-updated-show{background-color:#ffffff;-webkit-transition:background-color 400ms ease;-o-transition:background-color 400ms ease;transition:background-color 400ms ease;}.nestedpages ol li ol .row-inner{padding-left:86px;}.nestedpages ol li ol li ol .row-inner{padding-left:116px;}.nestedpages ol li ol li ol li ol .row-inner{padding-left:156px;}.nestedpages .action-buttons{display:none;float:right;margin:0 10px 0 0;}.nestedpages .action-buttons a{margin:0 0 0 -5px;}.nestedpages .action-buttons a.np-btn-trash{margin-left:4px;}@media (min-width: 768px){.nestedpages .row:hover .action-buttons{display:block;}}@media (max-width: 767px){.nestedpages ol .page-link{line-height:24px;}.nestedpages ol .page-link:hover span{display:none;}.nestedpages ol .locked em{display:none;}.nestedpages .child-toggle{background:transparent;}.nestedpages .row{height:auto;}.nestedpages .action-buttons{display:none;background-color:#0074a2;float:none;margin:0;padding:8px;}.nestedpages .action-buttons a{margin-left:5px;}}.nestedpages .quick-edit{background-color:#ffffff;-webkit-border-radius:0;border-radius:0;}.nestedpages .quick-edit .form-interior{padding:10px;}.nestedpages .quick-edit h3{margin:0 0 8px 0;font-size:14px;}.nestedpages .quick-edit .fields{margin-bottom:10px;background:url('../images/border.png') repeat-y;background-position:center;zoom:1;}.nestedpages .quick-edit .fields:before,.nestedpages .quick-edit .fields:after{content:" ";display:table;}.nestedpages .quick-edit .fields:after{clear:both;}.nestedpages .quick-edit .left{float:left;width:48%;}.nestedpages .quick-edit .right{float:right;width:48%;}.nestedpages .quick-edit label{font-style:oblique;}.nestedpages .quick-edit .buttons{clear:both;zoom:1;background-color:#404040;padding:8px;}.nestedpages .quick-edit .buttons:before,.nestedpages .quick-edit .buttons:after{content:" ";display:table;}.nestedpages .quick-edit .buttons:after{clear:both;}.nestedpages .quick-edit .form-control{clear:both;zoom:1;margin-bottom:5px;}.nestedpages .quick-edit .form-control:before,.nestedpages .quick-edit .form-control:after{content:" ";display:table;}.nestedpages .quick-edit .form-control:after{clear:both;}.nestedpages .quick-edit .form-control input[type='text'],.nestedpages .quick-edit .form-control input[type='password'],.nestedpages .quick-edit .form-control select{float:right;width:75%;}.nestedpages .quick-edit .form-control label{float:left;width:20%;}.nestedpages .quick-edit .comments{float:right;width:75%;margin-bottom:10px;zoom:1;}.nestedpages .quick-edit .comments:before,.nestedpages .quick-edit .comments:after{content:" ";display:table;}.nestedpages .quick-edit .comments:after{clear:both;}.nestedpages .quick-edit .dates{float:right;width:75%;margin-bottom:6px;}.nestedpages .quick-edit .dates select{width:25%;}.nestedpages .quick-edit .dates input{width:12%;}.nestedpages .quick-edit .np-toggle-taxonomies,.nestedpages .quick-edit .np-toggle-menuoptions{clear:both;float:right;width:71%;text-align:center;}.nestedpages .quick-edit .np-taxonomies,.nestedpages .quick-edit .np-menuoptions{display:none;clear:both;background-color:#f9f9f9;padding:8px;zoom:1;margin-top:5px;}.nestedpages .quick-edit .np-taxonomies:before,.nestedpages .quick-edit .np-taxonomies:after,.nestedpages .quick-edit .np-menuoptions:before,.nestedpages .quick-edit .np-menuoptions:after{content:" ";display:table;}.nestedpages .quick-edit .np-taxonomies:after,.nestedpages .quick-edit .np-menuoptions:after{clear:both;}.nestedpages .quick-edit .np-taxonomy{float:left;width:30%;margin-right:3.33%;}.nestedpages .quick-edit .np-taxonomy .title{font-weight:bold;margin-bottom:4px;display:block;}.nestedpages .quick-edit .np-taxonomy li{background-color:#ffffff;border:0;}.nestedpages .quick-edit .np-menuoptions{padding:15px;}.nestedpages .quick-edit .np-menuoptions label,.nestedpages .quick-edit .np-menuoptions input[type="text"]{display:block;float:none;width:100%;}.nestedpages .quick-edit .np-menuoptions .menuoptions-left{float:left;width:47%;}.nestedpages .quick-edit .np-menuoptions .menuoptions-right{float:right;width:47%;padding-top:18px;}.nestedpages .quick-edit .np-menuoptions .menuoptions-right label{margin-bottom:10px;}.np-qe-loading{display:none;float:right;width:25px;height:25px;margin:2px 10px 0 0;background:url('../images/loading-white.gif') no-repeat;}@media (max-width: 767px){.nestedpages .quick-edit .fields{background:transparent;}.nestedpages .quick-edit .left,.nestedpages .quick-edit .right{float:none;width:100%;}.nestedpages .quick-edit .form-control{margin-bottom:10px;}.nestedpages .quick-edit .form-control input[type='text'],.nestedpages .quick-edit .form-control input[type='password'],.nestedpages .quick-edit .form-control select{float:none;width:100%;}.nestedpages .quick-edit .form-control label{display:block;float:none;width:100%;margin-bottom:4px;}.nestedpages .quick-edit .comments{float:none;width:100%;}.nestedpages .quick-edit .dates{float:none;width:100%;margin-bottom:6px;}}.np-modal-form .form-interior{zoom:1;background:url('../images/border.png') repeat-y;background-position:center;padding:5px 0;}.np-modal-form .form-interior:before,.np-modal-form .form-interior:after{content:" ";display:table;}.np-modal-form .form-interior:after{clear:both;}.np-modal-form .form-control{zoom:1;margin-bottom:10px;}.np-modal-form .form-control:before,.np-modal-form .form-control:after{content:" ";display:table;}.np-modal-form .form-control:after{clear:both;}.np-modal-form .checkbox{margin-bottom:10px;}.np-modal-form .left{float:left;width:45%;}.np-modal-form .right{float:right;width:45%;padding-top:18px;}.np-modal-form label{display:block;}.np-modal-form input[type="text"],.np-modal-form select{width:100%;}.np-modal-form .buttons{clear:both;}
1
+ body{-webkit-animation-delay:0.1s;-webkit-animation-name:fontfix;-webkit-animation-duration:0.1s;-webkit-animation-iteration-count:1;-webkit-animation-timing-function:linear;}@-webkit-keyframes fontfix{from{opacity:1;}to{opacity:1;}}@font-face{font-family:'nestedpages';src:url('fonts/nestedpages.eot?-cjbqo6');src:url('fonts/nestedpages.eot?#iefix-cjbqo6') format('embedded-opentype'),url('fonts/nestedpages.woff?-cjbqo6') format('woff'),url('fonts/nestedpages.ttf?-cjbqo6') format('truetype'),url('fonts/nestedpages.svg?-cjbqo6#nestedpages') format('svg');font-weight:normal;font-style:normal;}[class^="np-icon-"],[class*=" np-icon-"]{font-family:'nestedpages';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.np-icon-no:before{content:"\e601";}.np-icon-yes:before{content:"\e602";}.np-icon-menu:before{content:"\e603";}.np-icon-arrow-down:before{content:"\e604";}.np-icon-arrow-right:before{content:"\e605";}.np-icon-sub-menu:before{content:"\e600";}.np-icon-arrows-alt:before{content:"\f0b2";}.np-icon-pencil:before{content:"\e608";}.np-icon-bubble:before{content:"\e607";}.np-icon-lock:before{content:"\e609";}.np-icon-remove:before{content:"\e60a";}.np-icon-list:before{content:"\e60d";}.np-icon-menu2:before{content:"\e606";}.np-icon-link:before{content:"\e612";}.np-icon-eye:before{content:"\e60b";}.np-icon-eye-blocked:before{content:"\e60c";}.np-icon-mail:before{content:"\e60e";}.np-icon-github:before{content:"\e60f";}.np-icon-wordpress:before{content:"\e610";}.np-icon-linkedin:before{content:"\e611";}.np-btn,.np-toggle-edit{text-decoration:none;color:#555;display:inline-block;background-color:#f7f7f7;border:1px solid #e1e1e1;padding:3px 8px;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0, 0, 0, 0.08);-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.np-btn:hover,.np-toggle-edit:hover{background-color:#0074a2;color:#ffffff;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),0 1px 0 rgba(0, 0, 0, 0.08);border-color:#0074a2;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.np-btn-trash{background-color:#e14d43;border-color:#e14d43;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.3),0 1px 0 rgba(0, 0, 0, 0.08);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.3),0 1px 0 rgba(0, 0, 0, 0.08);color:#ffffff;}.np-btn-trash:hover{background-color:#ba251e;border-color:#ba251e;}.np-toggle-edit{display:none;float:right;margin-right:10px;}.np-toggle-edit.active{background-color:#0074a2;color:#ffffff;-webkit-box-shadow:none;box-shadow:none;border-color:#0074a2;}@media (max-width: 767px){.np-toggle-edit{display:inline-block;}}.np-quickedit-error{border-left:4px solid #dd3d36;padding:4px 0 4px 8px;margin-bottom:10px;background-color:#f9f9f9;}.modal-open{overflow:hidden;}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;-webkit-overflow-scrolling:touch;outline:0;}.modal.fade .modal-dialog{-webkit-transform:translate(0, -25%);-ms-transform:translate(0, -25%);-o-transform:translate(0, -25%);transform:translate(0, -25%);-webkit-transition:-webkit-transform 0.3s ease-out;-o-transition:-o-transform 0.3s ease-out;transition:transform 0.3s ease-out;}.modal.in .modal-dialog{-webkit-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0);}.modal-open .modal{overflow-x:hidden;overflow-y:auto;}.modal-dialog{position:relative;width:auto;margin:10px auto 0px auto;max-width:500px;}.modal-content{position:relative;background-color:#ffffff;-webkit-box-shadow:0 3px 9px rgba(0, 0, 0, 0.5);box-shadow:0 3px 9px rgba(0, 0, 0, 0.5);-webkit-background-clip:padding-box;background-clip:padding-box;outline:0;}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:0.85;}.modal-header{padding:8px;background-color:#ebebeb;}.modal-header .sr-only{display:none;}.modal-header .close{margin-top:-2px;}.modal-title{margin:0;}.modal-body{position:relative;padding:10px;}.modal-footer{padding:10px;text-align:right;background-color:#404040;zoom:1;}.modal-footer:before,.modal-footer:after{content:" ";display:table;}.modal-footer:after{clear:both;}.modal-footer .modal-close{float:left;}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll;}.nestedpages-toggleall{float:right;margin-top:-30px;}.np-toggle-publish{color:#999999;}.np-toggle-publish.active{color:#333;font-weight:bold;}.np-sync-menu-cont{float:right;margin:-27px 15px 0px 0px;}#nested-loading{display:none;float:right;width:30px;margin:-31px 120px 0 0;}.wppages-top-tools{margin-bottom:20px;padding-top:10px;}.wppages-top-tools a{text-decoration:none;}.wppages-handle-expand{float:left;background-color:#f2f2f2;font-size:18px;width:46px;height:46px;margin-right:5px;text-align:center;border-right:1px solid #e1e1e1;}.wppages-handle-expand div{background-color:#ffffff;border:1px solid #e1e1e1;width:24px;height:24px;line-height:24px;-webkit-border-radius:15px;border-radius:15px;margin-top:9px;cursor:pointer;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.wppages-handle-expand div:hover{background-color:#0074a2;border-color:#0074a2;color:#ffffff;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.nestedpages{clear:both;-webkit-border-radius:4px;border-radius:4px;}.nestedpages .ui-sortable-placeholder{display:block !important;position:relative;min-height:46px;border:0;border:1px dashed #0074a2 !important;background-color:#effaff;margin:0;}.nestedpages .ui-sortable-helper{opacity:0.8;-webkit-box-shadow:2px 2px 3px 0px rgba(0, 0, 0, 0.5);box-shadow:2px 2px 3px 0px rgba(0, 0, 0, 0.5);}.nestedpages ol{list-style-type:none;clear:both;margin:0;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.06);box-shadow:0 1px 1px rgba(0, 0, 0, 0.06);border:1px solid #e5e5e5;-webkit-border-radius:3px;border-radius:3px;}.nestedpages ol a{text-decoration:none;}.nestedpages ol .page-link{line-height:26px;}.nestedpages ol .page-link .edit-indicator{margin-left:10px;display:none;}.nestedpages ol .page-link .edit-indicator i{font-size:12px;margin-right:3px;}.nestedpages ol .page-link:hover .edit-indicator{display:inline-block;}.nestedpages ol .locked{color:#333;margin-left:20px;}.nestedpages ol .locked em{font-style:normal;}.nestedpages ol .status{color:#999999;margin:0px 10px;}.nestedpages ol .np-icon-eye-blocked{color:#999999;}.nestedpages ol .nav-status{color:#b3b3b3;}.nestedpages ol .np-hide{display:none;}.nestedpages ol .np-seo-indicator{display:block;float:right;width:12px;height:12px;-webkit-border-radius:8px;border-radius:8px;background-color:#999999;margin:6px 10px 0 0;}.nestedpages ol .np-seo-indicator.good{background-color:#7ad03a;}.nestedpages ol .np-seo-indicator.ok{background-color:#ffba00;}.nestedpages ol .np-seo-indicator.poor{background-color:#ee7c1b;}.nestedpages ol .np-seo-indicator.bad{background-color:#dd3d36;}.nestedpages ol .np-seo-indicator.warn{background-color:maroon;}.nestedpages ol .np-seo-indicator.wrong{background-color:red;}.nestedpages ol li{margin:0;border-top:1px solid #e1e1e1;background-color:#0074a2;}.nestedpages ol li.first{border:0;}.nestedpages ol li:first-child{border:0;}.nestedpages ol li.no-border{border:0;}.nestedpages ol ol{display:none;-webkit-border-radius:0;border-radius:0;list-style-type:none;border:0;-webkit-box-shadow:none;box-shadow:none;border-top:1px solid #e1e1e1;}.nestedpages .child-toggle{float:left;margin:-10px 10px 0 0;width:46px;height:46px;background-color:#f0f0f0;text-align:center;}.nestedpages .child-toggle a{display:inline-block;margin-top:7px;width:28px;height:28px;background-color:#ffffff;border:1px solid #e1e1e1;-webkit-border-radius:20px;border-radius:20px;font-size:20px;line-height:30px;color:#333;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;}.nestedpages .child-toggle a i{line-height:26px;}.nestedpages .child-toggle a:hover{background-color:#0074a2;color:#ffffff;border-color:#0074a2;}.nestedpages .handle{display:inline-block;cursor:move;font-size:20px;color:#b3b3b3;-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;position:relative;top:3px;}.nestedpages .handle:hover{-webkit-transition:all 200ms ease;-o-transition:all 200ms ease;transition:all 200ms ease;color:#0074a2;}.nestedpages .np-icon-sub-menu{display:none;color:#999999;position:relative;left:2px;}.nestedpages .handle,.nestedpages .np-icon-sub-menu{width:30px;height:46px;line-height:36px;margin-top:-10px;}.nestedpages li ol .row .np-icon-sub-menu{display:inline-block;}.nestedpages li ol .row .handle{display:none;}.nestedpages li ol .row:hover .np-icon-sub-menu{display:none;}.nestedpages li ol .row:hover .handle{display:inline-block;}.nestedpages .row{background-color:#ffffff;display:block;padding:10px 0px 0px 0px;height:36px;zoom:1;}.nestedpages .row:before,.nestedpages .row:after{content:" ";display:table;}.nestedpages .row:after{clear:both;}.nestedpages .row:hover{background-color:#f0f0f0;}.nestedpages .row.np-updated{background-color:#e9f7df;-webkit-transition:background-color 400ms ease;-o-transition:background-color 400ms ease;transition:background-color 400ms ease;}.nestedpages .row.np-updated-show{background-color:#ffffff;-webkit-transition:background-color 400ms ease;-o-transition:background-color 400ms ease;transition:background-color 400ms ease;}.nestedpages ol li ol .row-inner{padding-left:86px;}.nestedpages ol li ol li ol .row-inner{padding-left:116px;}.nestedpages ol li ol li ol li ol .row-inner{padding-left:156px;}.nestedpages .action-buttons{display:none;float:right;margin:0 10px 0 0;}.nestedpages .action-buttons a{margin:0 0 0 -5px;}.nestedpages .action-buttons a.np-btn-trash{margin-left:4px;}@media (min-width: 768px){.nestedpages .row:hover .action-buttons{display:block;}}@media (max-width: 767px){.nestedpages ol .page-link{line-height:24px;}.nestedpages ol .page-link:hover span{display:none;}.nestedpages ol .locked em{display:none;}.nestedpages .child-toggle{background:transparent;}.nestedpages .row{height:auto;}.nestedpages .action-buttons{display:none;background-color:#0074a2;float:none;margin:0;padding:8px;}.nestedpages .action-buttons a{margin-left:5px;}}.nestedpages .quick-edit{background-color:#ffffff;-webkit-border-radius:0;border-radius:0;}.nestedpages .quick-edit .form-interior{padding:10px;}.nestedpages .quick-edit h3{margin:0 0 8px 0;font-size:14px;}.nestedpages .quick-edit .fields{margin-bottom:10px;background:url('../images/border.png') repeat-y;background-position:center;zoom:1;}.nestedpages .quick-edit .fields:before,.nestedpages .quick-edit .fields:after{content:" ";display:table;}.nestedpages .quick-edit .fields:after{clear:both;}.nestedpages .quick-edit .left{float:left;width:48%;}.nestedpages .quick-edit .right{float:right;width:48%;}.nestedpages .quick-edit label{font-style:oblique;}.nestedpages .quick-edit .buttons{clear:both;zoom:1;background-color:#404040;padding:8px;}.nestedpages .quick-edit .buttons:before,.nestedpages .quick-edit .buttons:after{content:" ";display:table;}.nestedpages .quick-edit .buttons:after{clear:both;}.nestedpages .quick-edit .form-control{clear:both;zoom:1;margin-bottom:5px;}.nestedpages .quick-edit .form-control:before,.nestedpages .quick-edit .form-control:after{content:" ";display:table;}.nestedpages .quick-edit .form-control:after{clear:both;}.nestedpages .quick-edit .form-control input[type='text'],.nestedpages .quick-edit .form-control input[type='password'],.nestedpages .quick-edit .form-control select{float:right;width:75%;}.nestedpages .quick-edit .form-control label{float:left;width:20%;}.nestedpages .quick-edit .comments{float:right;width:75%;margin-bottom:10px;zoom:1;}.nestedpages .quick-edit .comments:before,.nestedpages .quick-edit .comments:after{content:" ";display:table;}.nestedpages .quick-edit .comments:after{clear:both;}.nestedpages .quick-edit .dates{float:right;width:75%;margin-bottom:6px;}.nestedpages .quick-edit .dates select{width:25%;}.nestedpages .quick-edit .dates input{width:12%;}.nestedpages .quick-edit .np-toggle-taxonomies,.nestedpages .quick-edit .np-toggle-menuoptions{clear:both;float:right;width:71%;text-align:center;}.nestedpages .quick-edit .np-taxonomies,.nestedpages .quick-edit .np-menuoptions{display:none;clear:both;background-color:#f9f9f9;padding:8px;zoom:1;margin-top:5px;}.nestedpages .quick-edit .np-taxonomies:before,.nestedpages .quick-edit .np-taxonomies:after,.nestedpages .quick-edit .np-menuoptions:before,.nestedpages .quick-edit .np-menuoptions:after{content:" ";display:table;}.nestedpages .quick-edit .np-taxonomies:after,.nestedpages .quick-edit .np-menuoptions:after{clear:both;}.nestedpages .quick-edit .np-taxonomy{float:left;width:30%;margin-right:3.33%;}.nestedpages .quick-edit .np-taxonomy .title{font-weight:bold;margin-bottom:4px;display:block;}.nestedpages .quick-edit .np-taxonomy li{background-color:#ffffff;border:0;}.nestedpages .quick-edit .np-menuoptions{padding:15px;}.nestedpages .quick-edit .np-menuoptions label,.nestedpages .quick-edit .np-menuoptions input[type="text"]{display:block;float:none;width:100%;}.nestedpages .quick-edit .np-menuoptions .menuoptions-left{float:left;width:47%;}.nestedpages .quick-edit .np-menuoptions .menuoptions-right{float:right;width:47%;padding-top:18px;}.nestedpages .quick-edit .np-menuoptions .menuoptions-right label{margin-bottom:10px;}.np-qe-loading{display:none;float:right;width:25px;height:25px;margin:2px 10px 0 0;background:url('../images/loading-white.gif') no-repeat;}@media (max-width: 767px){.nestedpages .quick-edit .fields{background:transparent;}.nestedpages .quick-edit .left,.nestedpages .quick-edit .right{float:none;width:100%;}.nestedpages .quick-edit .form-control{margin-bottom:10px;}.nestedpages .quick-edit .form-control input[type='text'],.nestedpages .quick-edit .form-control input[type='password'],.nestedpages .quick-edit .form-control select{float:none;width:100%;}.nestedpages .quick-edit .form-control label{display:block;float:none;width:100%;margin-bottom:4px;}.nestedpages .quick-edit .comments{float:none;width:100%;}.nestedpages .quick-edit .dates{float:none;width:100%;margin-bottom:6px;}}.np-modal-form .form-interior{zoom:1;background:url('../images/border.png') repeat-y;background-position:center;padding:5px 0;}.np-modal-form .form-interior:before,.np-modal-form .form-interior:after{content:" ";display:table;}.np-modal-form .form-interior:after{clear:both;}.np-modal-form .form-control{zoom:1;margin-bottom:10px;}.np-modal-form .form-control:before,.np-modal-form .form-control:after{content:" ";display:table;}.np-modal-form .form-control:after{clear:both;}.np-modal-form .checkbox{margin-bottom:10px;}.np-modal-form .left{float:left;width:45%;}.np-modal-form .right{float:right;width:45%;padding-top:18px;}.np-modal-form label{display:block;}.np-modal-form input[type="text"],.np-modal-form select{width:100%;}.np-modal-form .buttons{clear:both;}
assets/scss/_bug-fixes.scss ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //
2
+ // Browser Bug Fixes
3
+ // --------------------------------------------------
4
+
5
+ // Chrome 33 icon font bug
6
+ // see: https://code.google.com/p/chromium/issues/detail?id=336476#c40
7
+ body {
8
+ -webkit-animation-delay: 0.1s;
9
+ -webkit-animation-name: fontfix;
10
+ -webkit-animation-duration: 0.1s;
11
+ -webkit-animation-iteration-count: 1;
12
+ -webkit-animation-timing-function: linear;
13
+ }
14
+
15
+ @-webkit-keyframes fontfix {
16
+ from { opacity: 1; }
17
+ to { opacity: 1; }
18
+ }
assets/scss/nestedpages.scss CHANGED
@@ -4,6 +4,8 @@
4
  @import "_variables.scss";
5
  @import "_mixins.scss";
6
 
 
 
7
  @import "_icons.scss";
8
  @import "_buttons.scss";
9
  @import "_alerts.scss";
4
  @import "_variables.scss";
5
  @import "_mixins.scss";
6
 
7
+ @import "_bug-fixes.scss";
8
+
9
  @import "_icons.scss";
10
  @import "_buttons.scss";
11
  @import "_alerts.scss";
includes/class-nestedpages.php CHANGED
@@ -16,6 +16,7 @@ require_once('class-np-pagelisting.php');
16
  require_once('class-np-newpage.php');
17
  require_once('class-np-redirects.php');
18
  require_once('class-np-posttypes.php');
 
19
 
20
  /**
21
  * Primary Plugin Class
@@ -28,6 +29,7 @@ class NestedPages {
28
  $this->init();
29
  $this->formActions();
30
  add_action('init', array($this, 'addLocalization') );
 
31
  }
32
 
33
 
@@ -42,6 +44,7 @@ class NestedPages {
42
  new NP_NewPage;
43
  new NP_Redirects;
44
  new NP_PostTypes;
 
45
  }
46
 
47
 
@@ -70,4 +73,15 @@ class NestedPages {
70
  }
71
 
72
 
 
 
 
 
 
 
 
 
 
 
 
73
  }
16
  require_once('class-np-newpage.php');
17
  require_once('class-np-redirects.php');
18
  require_once('class-np-posttypes.php');
19
+ require_once('class-np-settings.php');
20
 
21
  /**
22
  * Primary Plugin Class
29
  $this->init();
30
  $this->formActions();
31
  add_action('init', array($this, 'addLocalization') );
32
+ add_filter( 'plugin_action_links_' . 'wp-nested-pages/nestedpages.php', array($this, 'settingsLink' ) );
33
  }
34
 
35
 
44
  new NP_NewPage;
45
  new NP_Redirects;
46
  new NP_PostTypes;
47
+ new NP_Settings;
48
  }
49
 
50
 
73
  }
74
 
75
 
76
+ /**
77
+ * Add a link to the settings on the plugin page
78
+ */
79
+ public function settingsLink($links)
80
+ {
81
+ $settings_link = '<a href="options-general.php?page=nested-pages-settings">' . __('Settings','nestedpages') . '</a>';
82
+ array_unshift($links, $settings_link);
83
+ return $links;
84
+ }
85
+
86
+
87
  }
includes/class-np-activate.php CHANGED
@@ -14,7 +14,7 @@ class NP_Activate {
14
  public function __construct()
15
  {
16
  register_activation_hook( dirname( dirname(__FILE__) ) . '/nestedpages.php', array($this, 'install') );
17
- $this->version = 1.1;
18
  $this->setVersion();
19
  $this->addMenu();
20
  }
@@ -83,6 +83,9 @@ class NP_Activate {
83
  if ( !get_option('nestedpages_menusync') ){
84
  update_option('nestedpages_menusync', 'sync');
85
  }
 
 
 
86
  }
87
 
88
 
14
  public function __construct()
15
  {
16
  register_activation_hook( dirname( dirname(__FILE__) ) . '/nestedpages.php', array($this, 'install') );
17
+ $this->version = '1.1.2';
18
  $this->setVersion();
19
  $this->addMenu();
20
  }
83
  if ( !get_option('nestedpages_menusync') ){
84
  update_option('nestedpages_menusync', 'sync');
85
  }
86
+ if ( !get_option('nestedpages_menu') ){
87
+ update_option('nestedpages_menu', 'nestedpages');
88
+ }
89
  }
90
 
91
 
includes/class-np-confirmation.php CHANGED
@@ -31,6 +31,7 @@ class NP_Confirmation {
31
  {
32
  if ( (isset($_GET['trashed'])) && (intval($_GET['trashed']) > 0) ) $this->type = 'trashConfirm';
33
  if ( (isset($_GET['untrashed'])) && (intval($_GET['untrashed']) > 0) ) $this->type = 'trashRestored';
 
34
  }
35
 
36
 
@@ -75,13 +76,21 @@ class NP_Confirmation {
75
  */
76
  private function trashRestored()
77
  {
78
- $out = "";
79
  $untrashed = sanitize_text_field($_GET['untrashed']);
80
  $page = ( intval($untrashed) > 1 ) ? __('pages', 'nestedpages') : __('page', 'nestedpages');
81
  $this->message = '<div id="message" class="updated below-h2"><p>' . $untrashed . ' ' . $page . ' ' . __('restored from trash', 'nestedpages') . '.</p></div>';
82
  }
83
 
84
 
 
 
 
 
 
 
 
 
 
85
  /**
86
  * Get the Message
87
  */
31
  {
32
  if ( (isset($_GET['trashed'])) && (intval($_GET['trashed']) > 0) ) $this->type = 'trashConfirm';
33
  if ( (isset($_GET['untrashed'])) && (intval($_GET['untrashed']) > 0) ) $this->type = 'trashRestored';
34
+ if ( (isset($_GET['linkdeleted'])) && (intval($_GET['linkdeleted']) > 0 ) ) $this->type = 'linkDeleted';
35
  }
36
 
37
 
76
  */
77
  private function trashRestored()
78
  {
 
79
  $untrashed = sanitize_text_field($_GET['untrashed']);
80
  $page = ( intval($untrashed) > 1 ) ? __('pages', 'nestedpages') : __('page', 'nestedpages');
81
  $this->message = '<div id="message" class="updated below-h2"><p>' . $untrashed . ' ' . $page . ' ' . __('restored from trash', 'nestedpages') . '.</p></div>';
82
  }
83
 
84
 
85
+ /**
86
+ * Link Successfully Deleted
87
+ */
88
+ private function linkDeleted()
89
+ {
90
+ $this->message = '<div id="message" class="updated below-h2"><p>' . __('Link successfully deleted.', 'nestedpages') . '</p></div>';
91
+ }
92
+
93
+
94
  /**
95
  * Get the Message
96
  */
includes/class-np-navmenu.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * The generated nav menu that matches the nested pages structure
4
  */
@@ -14,21 +15,29 @@ class NP_NavMenu {
14
  */
15
  public $items;
16
 
 
 
 
 
 
17
 
18
  public function __construct()
19
  {
 
20
  $this->setID();
21
  $this->setItems();
22
  }
23
 
24
 
25
  /**
26
- * Add the Nav Menu
 
27
  */
28
- public function addMenu()
29
  {
30
- $menu = wp_create_nav_menu('nestedpages');
31
- $this->id = $menu;
 
32
  }
33
 
34
 
@@ -37,8 +46,22 @@ class NP_NavMenu {
37
  */
38
  public function setID()
39
  {
40
- $menu = get_term_by('slug', 'nestedpages', 'nav_menu');
41
- if ( $menu ) $this->id = $menu->term_id;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  }
43
 
44
 
@@ -47,7 +70,7 @@ class NP_NavMenu {
47
  */
48
  public function setItems()
49
  {
50
- $menu = get_term_by('slug', 'nestedpages', 'nav_menu');
51
  if ( $menu ) $this->items = wp_get_nav_menu_items($this->id);
52
  }
53
 
@@ -118,7 +141,7 @@ class NP_NavMenu {
118
  } else { // redirect
119
  $menu = wp_update_nav_menu_item($this->id, 0, array(
120
  'menu-item-title' => $nav_title,
121
- 'menu-item-url' => $this->check_url(get_the_content()),
122
  'menu-item-attr-title' => $title_attribute,
123
  'menu-item-status' => 'publish',
124
  'menu-item-classes' => $css_classes,
1
  <?php
2
+ require_once('class-np-helpers.php');
3
  /**
4
  * The generated nav menu that matches the nested pages structure
5
  */
15
  */
16
  public $items;
17
 
18
+ /**
19
+ * Menu Name Option
20
+ */
21
+ private $menu_name;
22
+
23
 
24
  public function __construct()
25
  {
26
+ $this->getMenuName();
27
  $this->setID();
28
  $this->setItems();
29
  }
30
 
31
 
32
  /**
33
+ * Get Optional custom menu name
34
+ * @since 1.1.11
35
  */
36
+ private function getMenuName()
37
  {
38
+ $this->menu_name = ( get_option('nestedpages_menu') )
39
+ ? get_option('nestedpages_menu')
40
+ : 'nestedpages';
41
  }
42
 
43
 
46
  */
47
  public function setID()
48
  {
49
+ $menu = get_term_by('name', $this->menu_name, 'nav_menu');
50
+ if ( $menu ) {
51
+ $this->id = $menu->term_id;
52
+ } else {
53
+ $this->addMenu();
54
+ }
55
+ }
56
+
57
+
58
+ /**
59
+ * Add the Nav Menu
60
+ */
61
+ public function addMenu()
62
+ {
63
+ $menu = wp_create_nav_menu($this->menu_name);
64
+ $this->id = $menu;
65
  }
66
 
67
 
70
  */
71
  public function setItems()
72
  {
73
+ $menu = get_term_by('name', $this->menu_name, 'nav_menu');
74
  if ( $menu ) $this->items = wp_get_nav_menu_items($this->id);
75
  }
76
 
141
  } else { // redirect
142
  $menu = wp_update_nav_menu_item($this->id, 0, array(
143
  'menu-item-title' => $nav_title,
144
+ 'menu-item-url' => NP_Helpers::check_url(get_the_content()),
145
  'menu-item-attr-title' => $title_attribute,
146
  'menu-item-status' => 'publish',
147
  'menu-item-classes' => $css_classes,
includes/class-np-pagelisting.php CHANGED
@@ -274,7 +274,7 @@ class NP_PageListing {
274
  'post_type' => array('page','np-redirect'),
275
  'posts_per_page' => -1,
276
  'orderby' => 'menu_order',
277
- 'post_status' => array('publish','trash'),
278
  'post_parent' => $parent_id,
279
  'order' => 'ASC'
280
  ));
274
  'post_type' => array('page','np-redirect'),
275
  'posts_per_page' => -1,
276
  'orderby' => 'menu_order',
277
+ 'post_status' => array('publish', 'pending', 'draft', 'private', 'future', 'trash'),
278
  'post_parent' => $parent_id,
279
  'order' => 'ASC'
280
  ));
includes/class-np-redirects.php CHANGED
@@ -11,6 +11,7 @@ class NP_Redirects {
11
  add_action('load-edit.php', array($this, 'pageRestored'));
12
  add_action('load-edit.php', array($this, 'addNPLink'));
13
  add_filter( "views_edit-page", array($this, 'addNPLink' ));
 
14
  }
15
 
16
 
@@ -40,6 +41,20 @@ class NP_Redirects {
40
  }
41
  }
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  /**
44
  * Add a nested pages link to the subsub list (WP_List_Table class)
45
  */
11
  add_action('load-edit.php', array($this, 'pageRestored'));
12
  add_action('load-edit.php', array($this, 'addNPLink'));
13
  add_filter( "views_edit-page", array($this, 'addNPLink' ));
14
+ add_action('deleted_post', array($this, 'linkDeleted'), 10, 1);
15
  }
16
 
17
 
41
  }
42
  }
43
 
44
+
45
+ /**
46
+ * Add link trashed param to URL after delete (for notification)
47
+ */
48
+ public function linkDeleted($post_id)
49
+ {
50
+ if ( get_post_type($post_id) == 'np-redirect' ){
51
+ $redirect = add_query_arg(array('page'=>'nestedpages', 'linkdeleted' => true, '_wpnonce' => false, 'post' => false, 'action'=>false));
52
+ wp_redirect($redirect);
53
+ exit();
54
+ }
55
+ }
56
+
57
+
58
  /**
59
  * Add a nested pages link to the subsub list (WP_List_Table class)
60
  */
includes/class-np-settings.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ require_once('class-np-helpers.php');
3
+ /**
4
+ * Plugin Settings
5
+ */
6
+ class NP_Settings {
7
+
8
+
9
+ public function __construct()
10
+ {
11
+ add_action( 'admin_menu', array( $this, 'registerSettingsPage' ) );
12
+ add_action( 'admin_init', array($this, 'registerSettings' ) );
13
+ add_action('updated_option', array($this, 'updateMenuName'), 10, 3);
14
+ }
15
+
16
+
17
+ /**
18
+ * Register the settings page
19
+ */
20
+ public function registerSettingsPage()
21
+ {
22
+ add_options_page(
23
+ 'Nested Pages Settings',
24
+ 'Nested Pages',
25
+ 'manage_options',
26
+ 'nested-pages-settings',
27
+ array( $this, 'settingsPage' )
28
+ );
29
+ }
30
+
31
+
32
+ /**
33
+ * Register the settings
34
+ */
35
+ public function registerSettings()
36
+ {
37
+ register_setting( 'nestedpages-general', 'nestedpages_menu' );
38
+ register_setting( 'nestedpages-general', 'nestedpages_menusync' );
39
+ }
40
+
41
+
42
+ /**
43
+ * Update the menu name if custom is provided
44
+ * @since 1.1.11
45
+ */
46
+ public function updateMenuName($option, $old_value, $value)
47
+ {
48
+ if ( $option == 'nestedpages_menu' ){
49
+ $menu = get_term_by('name', $old_value, 'nav_menu');
50
+ wp_update_term($menu->term_id, 'nav_menu', array(
51
+ 'name' => $value
52
+ ));
53
+ }
54
+ }
55
+
56
+
57
+ /**
58
+ * Display the Settings Page
59
+ */
60
+ public function settingsPage()
61
+ {
62
+ $menu_name = ( get_option('nestedpages_menu') ) ? get_option('nestedpages_menu') : 'nestedpages';
63
+ include( NP_Helpers::view('settings') );
64
+ }
65
+
66
+ }
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.1
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  License: GPLv2 or later.
3
  Plugin Name: Nested Pages
4
  Plugin URI: http://nestedpages.com
5
  Description: Provides an intuitive drag and drop interface for managing pages in the Wordpress admin, while maintaining quick edit functionality.
6
+ Version: 1.1.2
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  License: GPLv2 or later.
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://nestedpages.com/
4
  Tags: pages, admin, nested, tree view, page tree, sort, quick edit
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
- Stable tag: 1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -66,6 +66,10 @@ Hierarchical taxonomies are currently supported
66
 
67
  == Changelog ==
68
 
 
 
 
 
69
  = 1.1 =
70
  * Expanded/Collapsed states now saved for each user
71
  * Trash functionality added
@@ -79,6 +83,9 @@ Hierarchical taxonomies are currently supported
79
 
80
  == Upgrade Notice ==
81
 
 
 
 
82
  = 1.1 =
83
  Several new features have been added in version 1.1, including: saved toggle states, additional menu options, trash functionality, ability to add "link" menu items, and more.
84
 
4
  Tags: pages, admin, nested, tree view, page tree, sort, quick edit
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
+ Stable tag: 1.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
66
 
67
  == Changelog ==
68
 
69
+ = 1.1.2 =
70
+ * Status bug fix in pages view
71
+ * Option to customize the generated nav menu added
72
+
73
  = 1.1 =
74
  * Expanded/Collapsed states now saved for each user
75
  * Trash functionality added
83
 
84
  == Upgrade Notice ==
85
 
86
+ = 1.1.2 =
87
+ Includes fix for pages view that was preventing draft and private pages from being loaded. Added option to rename the generated nav menu.
88
+
89
  = 1.1 =
90
  Several new features have been added in version 1.1, including: saved toggle states, additional menu options, trash functionality, ability to add "link" menu items, and more.
91
 
views/pages.php CHANGED
@@ -1,4 +1,3 @@
1
- <?php add_thickbox(); ?>
2
  <div class="wrap">
3
 
4
  <h2>
 
1
  <div class="wrap">
2
 
3
  <h2>
views/row.php CHANGED
@@ -93,7 +93,7 @@
93
  </a>
94
  <?php endif; ?>
95
 
96
- <a href="<?php echo get_the_permalink(); ?>" class="np-btn"><?php _e('View', 'nestedpages'); ?></a>
97
 
98
  <?php if ( current_user_can('delete_pages') ) : ?>
99
  <a href="<?php echo get_delete_post_link(get_the_id()); ?>" class="np-btn np-btn-trash">
93
  </a>
94
  <?php endif; ?>
95
 
96
+ <a href="<?php echo get_the_permalink(); ?>" class="np-btn" target="_blank"><?php _e('View', 'nestedpages'); ?></a>
97
 
98
  <?php if ( current_user_can('delete_pages') ) : ?>
99
  <a href="<?php echo get_delete_post_link(get_the_id()); ?>" class="np-btn np-btn-trash">
views/settings.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="wrap">
2
+ <h1><?php _e('Nested Pages Settings', 'nestedpages'); ?></h1>
3
+
4
+ <form method="post" enctype="multipart/form-data" action="options.php">
5
+ <table class="form-table">
6
+ <?php settings_fields( 'nestedpages-general' ); ?>
7
+ <tr valign="top">
8
+ <th scope="row"><?php _e('Menu Name', 'nestedpages'); ?></th>
9
+ <td>
10
+ <input type="text" name="nestedpages_menu" id="nestedpages_menu" value="<?php echo $menu_name; ?>">
11
+ <p><em><?php _e('Important: Once the menu name has changed, theme files should be updated to reference the new name.', 'nestedpages'); ?></em></p>
12
+ </td>
13
+ </tr>
14
+ </table>
15
+ <?php submit_button(); ?>
16
+ </form>
17
+ </div><!-- .wrap -->