CMS Tree Page View - Version 1.6.6

Version Description

(May 2022) =

WordPress 6.0 compatibility Adds link to Edit in Elementor.

Download this release

Release Info

Developer jchristopher
Plugin Icon wp plugin CMS Tree Page View
Version 1.6.6
Comparing to
See all releases

Code changes from version 1.6.5 to 1.6.6

Files changed (4) hide show
  1. functions.php +41 -0
  2. index.php +2 -2
  3. readme.txt +10 -4
  4. scripts/cms_tree_page_view.js +5 -0
functions.php CHANGED
@@ -480,6 +480,44 @@ function cms_tpv_promo_above_wrapper() {
480
  </style>
481
  <div class="cms_tpv_promo_above_wrapper">
482
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
483
  <p>Thanks for using <b>CMS Tree Page View</b>!</p>
484
 
485
  <p>Do you like this plugin? Then <a href="https://wordpress.org/support/view/plugin-reviews/cms-tree-page-view#topic">give it a nice review</a>!</p>
@@ -1114,6 +1152,9 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
1114
 
1115
  <p class="cms_tpv_action_edit_and_view">
1116
  <a href="#" title='<?php _e("Edit page", "cms-tree-page-view")?>' class='cms_tpv_action_edit'><?php _e("Edit", "cms-tree-page-view")?></a>
 
 
 
1117
  <a href="#" title='<?php _e("View page", "cms-tree-page-view")?>' class='cms_tpv_action_view'><?php _e("View", "cms-tree-page-view")?></a>
1118
  </p>
1119
 
480
  </style>
481
  <div class="cms_tpv_promo_above_wrapper">
482
 
483
+ <div class="cms_tpv_promo_above_wrapper-owp">
484
+ <p class="cms_tpv_promo_above_wrapper-owp-logo">
485
+ <a href="https://organizewp.com/?utm_campaign=migrate&utm_source=cmstpv&utm_medium=banner&utm_content=logolink" target="_BLANK">
486
+ <svg width="559" height="105" viewBox="0 0 559 105" fill="none" xmlns="http://www.w3.org/2000/svg">
487
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M151.172 81.4821C146.579 81.4821 142.579 80.5115 139.175 78.5701C135.77 76.6288 133.149 73.8246 131.311 70.1576C129.474 66.4906 128.555 62.1496 128.555 57.1344C128.555 50.6632 130.028 44.7987 132.973 39.5409C135.918 34.2831 139.864 30.1442 144.809 27.1244C149.754 24.1045 155.118 22.5945 160.9 22.5945C165.494 22.5945 169.493 23.5652 172.898 25.5066C176.303 27.4479 178.924 30.2521 180.761 33.9191C182.599 37.5861 183.518 41.9271 183.518 46.9423C183.518 53.4135 182.045 59.2779 179.1 64.5358C176.154 69.7936 172.209 73.9324 167.264 76.9523C162.319 79.9722 156.955 81.4821 151.172 81.4821ZM152.794 71.5327C156.685 71.5327 160.09 70.4407 163.008 68.2567C165.926 66.0727 168.156 63.1741 169.696 59.5611C171.236 55.948 172.006 52.0383 172.006 47.8321C172.006 42.9787 170.939 39.2173 168.804 36.548C166.67 33.8786 163.467 32.5439 159.198 32.5439C155.307 32.5439 151.902 33.6359 148.984 35.82C146.065 38.004 143.836 40.9025 142.296 44.5156C140.755 48.1287 139.985 52.0383 139.985 56.2446C139.985 61.098 141.053 64.8593 143.187 67.5287C145.322 70.198 148.524 71.5327 152.794 71.5327ZM191.064 39.9049H200.63L199.981 44.192C201.17 42.9517 202.765 41.8192 204.764 40.7946C206.764 39.77 208.791 39.2577 210.844 39.2577H213.682L210.115 48.7218H206.305C204.791 48.7218 203.346 49.0993 201.968 49.8543C200.589 50.6092 199.549 51.5799 198.846 52.7663L193.901 80.3496H183.93L191.064 39.9049ZM222.039 100.572C216.472 100.572 212.311 99.5474 209.554 97.4982C206.798 95.449 205.42 92.9414 205.42 89.9755C205.42 87.7645 206.123 85.8232 207.528 84.1514C208.933 82.4797 210.932 80.9428 213.527 79.5407C211.851 78.2465 211.014 76.6018 211.014 74.6065C211.014 73.2044 211.419 71.991 212.23 70.9664C213.04 69.9418 214.256 69.0251 215.877 68.2162C214.634 67.0837 213.675 65.6008 213 63.7673C212.324 61.9338 211.986 59.9655 211.986 57.8623C211.986 54.6267 212.77 51.5799 214.337 48.7218C215.905 45.8637 218.12 43.5719 220.985 41.8462C223.849 40.1205 227.119 39.2577 230.794 39.2577C234.361 39.2577 237.171 40.0666 239.225 41.6844C240.035 41.1991 241.224 40.7812 242.791 40.4306C244.359 40.0801 246.007 39.9049 247.736 39.9049H250.493L248.79 46.2142H244.98C244.278 46.2142 243.683 46.2412 243.197 46.2951C243.791 47.9669 244.088 49.9891 244.088 52.3618C244.088 55.6514 243.318 58.7386 241.778 61.6237C240.238 64.5088 238.036 66.8141 235.171 68.5398C232.307 70.2654 229.01 71.1282 225.281 71.1282C224.092 71.1282 222.768 70.9934 221.309 70.7238C220.714 71.0473 220.417 71.5596 220.417 72.2607C220.417 73.1235 221.079 73.7436 222.403 74.1211C223.727 74.4986 226.011 74.9031 229.253 75.3345C233.145 75.8737 236.401 76.8579 239.022 78.2869C241.643 79.716 242.954 82.3179 242.954 86.0928C242.954 88.843 242.116 91.3102 240.441 93.4942C238.765 95.6782 236.347 97.4038 233.185 98.6711C230.024 99.9384 226.308 100.572 222.039 100.572ZM226.578 63.7673C229.172 63.7673 231.239 62.7562 232.78 60.734C234.32 58.7117 235.09 56.2446 235.09 53.3326C235.09 48.8567 233.199 46.6187 229.415 46.6187C226.821 46.6187 224.768 47.6298 223.254 49.6521C221.741 51.6743 220.985 54.1684 220.985 57.1344C220.985 61.5564 222.849 63.7673 226.578 63.7673ZM222.606 93.4538C225.741 93.4538 228.402 92.9146 230.591 91.836C232.78 90.7575 233.874 89.3554 233.874 87.6298C233.874 85.958 232.915 84.7717 230.996 84.0706C229.078 83.3696 226.47 82.8303 223.173 82.4528C222.147 82.3989 221.147 82.2641 220.174 82.0484C215.959 83.4505 213.851 85.4997 213.851 88.196C213.851 89.8677 214.608 91.1619 216.121 92.0787C217.634 92.9954 219.796 93.4538 222.606 93.4538ZM263.633 81.1585C259.039 81.1585 255.391 79.5947 252.689 76.4669C249.987 73.3392 248.636 69.2947 248.636 64.3335C248.636 60.0733 249.568 56.0154 251.432 52.1596C253.297 48.3039 255.959 45.1896 259.417 42.8169C262.876 40.4441 266.876 39.2577 271.415 39.2577C273.469 39.2577 275.239 39.5543 276.725 40.1475C278.211 40.7407 279.576 41.6035 280.819 42.736L281.954 39.9049H290.709L286.007 67.5691C285.791 68.8094 285.683 69.834 285.683 70.6429C285.683 71.7214 285.926 72.3685 286.412 72.5842C286.899 72.7999 287.98 72.9078 289.655 72.9078L287.385 81.1585C284.575 81.1585 282.454 81.0372 281.022 80.7945C279.589 80.5518 278.495 80.1204 277.738 79.5003C276.982 78.8801 276.252 77.869 275.55 76.4669C273.874 77.9229 272.104 79.0689 270.24 79.9047C268.375 80.7406 266.173 81.1585 263.633 81.1585ZM267.038 72.9079C271.037 72.9079 273.861 71.2362 275.509 67.8927C277.157 64.5493 277.982 60.8284 277.982 56.73C277.982 50.5823 275.55 47.5086 270.686 47.5086C268.47 47.5086 266.47 48.2096 264.687 49.6117C262.903 51.0138 261.525 52.9012 260.552 55.2739C259.58 57.6467 259.093 60.2352 259.093 63.0393C259.093 66.1132 259.742 68.5263 261.039 70.279C262.336 72.0316 264.335 72.9079 267.038 72.9079ZM300.768 39.9049H309.604L310.01 42.3315C311.577 41.3609 313.158 40.6059 314.752 40.0666C316.346 39.5274 318.143 39.2577 320.143 39.2577C324.196 39.2577 327.25 40.498 329.303 42.9787C331.357 45.4593 332.384 48.7757 332.384 52.9281C332.384 53.8987 332.141 55.9884 331.654 59.197C331.168 62.4056 329.952 69.4564 328.006 80.3496H317.873C320.683 64.3873 322.089 55.7053 322.089 54.3032C322.089 51.9304 321.629 50.2048 320.71 49.1263C319.792 48.0477 318.333 47.5085 316.333 47.5085C314.874 47.5085 313.563 47.7916 312.401 48.3578C311.239 48.924 310.064 49.8003 308.875 50.9867L303.687 80.3496H293.634L300.768 39.9049ZM345.605 23.727H355.738L353.955 33.7573H343.903L345.605 23.727ZM342.768 39.9049H352.82L345.686 80.3497H335.634L342.768 39.9049ZM373.256 48.8028H357.286L358.907 39.9049H391.739L369.446 71.4519H385.254L383.632 80.3497H350.963L373.256 48.8028ZM407.878 81.1585C401.987 81.1585 397.529 79.5407 394.502 76.3052C391.476 73.0696 389.963 68.8903 389.963 63.7673C389.963 59.6149 390.922 55.6514 392.84 51.8765C394.759 48.1016 397.461 45.0548 400.947 42.736C404.433 40.4171 408.392 39.2577 412.823 39.2577C417.039 39.2577 420.295 40.3093 422.592 42.4124C424.888 44.5156 426.037 47.3736 426.037 50.9867C426.037 55.5705 424.213 58.9274 420.565 61.0575C416.917 63.1876 412.283 64.2526 406.662 64.2526C403.96 64.2526 401.906 64.0908 400.501 63.7673C400.663 66.895 401.636 69.2003 403.419 70.6833C405.203 72.1663 407.338 72.9078 409.824 72.9078C414.147 72.9078 418.39 71.8023 422.551 69.5913L421.416 78.0847C417.579 80.1339 413.066 81.1585 407.878 81.1585ZM405.041 57.7006C409.581 57.7006 412.81 57.1074 414.728 55.9211C416.647 54.7347 417.606 53.2517 417.606 51.4721C417.606 49.9083 417.052 48.8567 415.944 48.3174C414.836 47.7782 413.661 47.5086 412.418 47.5086C409.608 47.5086 407.216 48.5601 405.244 50.6632C403.271 52.7664 401.96 55.0043 401.312 57.3771C402.177 57.5928 403.42 57.7006 405.041 57.7006Z" fill="#FC5C65"/>
488
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M434.592 23.727H445.374L448.941 63.9291L467.991 23.727H474.963L480.394 62.8775L497.499 23.727H508.281L482.34 80.3497H473.423L468.072 42.5743L449.508 80.3497H439.943L434.592 23.727ZM513.726 23.727H533.019C538.586 23.727 542.855 25.1291 545.828 27.9332C548.8 30.7374 550.286 34.5931 550.286 39.5005C550.286 44.246 549.3 48.2904 547.327 51.6339C545.355 54.9773 542.599 57.4984 539.059 59.1971C535.519 60.8957 531.425 61.7451 526.777 61.7451H517.374L514.05 80.3497H503.754L513.726 23.727ZM528.317 52.0383C531.722 52.0383 534.438 51.0541 536.465 49.0858C538.491 47.1175 539.505 44.192 539.505 40.3093C539.505 37.6669 538.897 35.6851 537.681 34.3639C536.465 33.0427 534.532 32.3821 531.884 32.3821H522.562L519.076 52.0383H528.317Z" fill="#FC5C65"/>
489
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M0 12.65C0 8.23174 3.58172 4.65002 8 4.65002H88C92.4183 4.65002 96 8.23175 96 12.65V92.65C96 97.0683 92.4183 100.65 88 100.65H8C3.58172 100.65 0 97.0683 0 92.65V12.65ZM22.1315 14.65H9.86852C9.06982 14.65 8.59343 15.5402 9.03647 16.2047L15.1679 25.4019C15.5638 25.9957 16.4362 25.9957 16.8321 25.402L22.9635 16.2047C23.4066 15.5402 22.9302 14.65 22.1315 14.65ZM35 16.65C33.8954 16.65 33 17.5455 33 18.65V21.65C33 22.7546 33.8954 23.65 35 23.65H69C70.1046 23.65 71 22.7546 71 21.65V18.65C71 17.5455 70.1046 16.65 69 16.65H35ZM22.1315 67.65H9.86852C9.06982 67.65 8.59343 68.5402 9.03647 69.2047L15.1679 78.4019C15.5638 78.9957 16.4362 78.9957 16.8321 78.4019L22.9635 69.2047C23.4066 68.5402 22.9302 67.65 22.1315 67.65ZM35 69.65C33.8954 69.65 33 70.5455 33 71.65V74.65C33 75.7546 33.8954 76.65 35 76.65H72C73.1046 76.65 74 75.7546 74 74.65V71.65C74 70.5455 73.1046 69.65 72 69.65H35ZM25 46.5185V58.7815C25 59.5802 25.8901 60.0566 26.5547 59.6136L35.7519 53.4821C36.3457 53.0863 36.3457 52.2138 35.7519 51.818L26.5547 45.6865C25.8901 45.2435 25 45.7198 25 46.5185ZM47 49.65C45.8954 49.65 45 50.5455 45 51.65V54.65C45 55.7546 45.8954 56.65 47 56.65H79C80.1046 56.65 81 55.7546 81 54.65V51.65C81 50.5455 80.1046 49.65 79 49.65H47ZM33 86.65C33 85.5455 33.8954 84.65 35 84.65H80C81.1046 84.65 82 85.5455 82 86.65V89.65C82 90.7546 81.1046 91.65 80 91.65H35C33.8954 91.65 33 90.7546 33 89.65V86.65ZM35 32.65C33.8954 32.65 33 33.5455 33 34.65V37.65C33 38.7546 33.8954 39.65 35 39.65H83C84.1046 39.65 85 38.7546 85 37.65V34.65C85 33.5455 84.1046 32.65 83 32.65H35Z" fill="#FC5C65"/>
490
+ </svg>
491
+ </a>
492
+ </p>
493
+ <p><a href="https://organizewp.com/?utm_campaign=migrate&utm_source=cmstpv&utm_medium=banner&utm_content=brandlink" target="_BLANK">OrganizeWP</a> is like CMS Tree Page View but incorporates <em>multiple content types, global search, content groups,</em> <strong>&amp; more!</strong></p>
494
+ <p><a class="cms_tpv_promo_above_wrapper-owp-btn button" href="https://organizewp.com/?utm_campaign=migrate&utm_source=cmstpv&utm_medium=banner&utm_content=buttonlink" target="_BLANK">Get OrganizeWP</a></p>
495
+ </div>
496
+
497
+ <style>
498
+ .cms_tpv_promo_above_wrapper-owp {
499
+ padding-bottom: 10px;
500
+ border-bottom: 2px solid #eaeaea;
501
+ margin-bottom: 20px;
502
+ }
503
+
504
+ .cms_tpv_promo_above_wrapper .cms_tpv_promo_above_wrapper-owp p {
505
+ margin: 1em 0;
506
+ }
507
+
508
+ .cms_tpv_promo_above_wrapper p.cms_tpv_promo_above_wrapper-owp-logo {
509
+ margin-top: 0;
510
+ }
511
+ .cms_tpv_promo_above_wrapper-owp-logo a {
512
+ display: block;
513
+ }
514
+ .cms_tpv_promo_above_wrapper-owp svg {
515
+ display: block;
516
+ width: 100%;
517
+ height: auto;
518
+ }
519
+ </style>
520
+
521
  <p>Thanks for using <b>CMS Tree Page View</b>!</p>
522
 
523
  <p>Do you like this plugin? Then <a href="https://wordpress.org/support/view/plugin-reviews/cms-tree-page-view#topic">give it a nice review</a>!</p>
1152
 
1153
  <p class="cms_tpv_action_edit_and_view">
1154
  <a href="#" title='<?php _e("Edit page", "cms-tree-page-view")?>' class='cms_tpv_action_edit'><?php _e("Edit", "cms-tree-page-view")?></a>
1155
+ <?php if ( is_plugin_active( 'elementor/elementor.php' ) ) : ?>
1156
+ <a href="#" title='<?php _e("Edit in Elementor", "cms-tree-page-view")?>' class='cms_tpv_action_edit_elementor'><?php _e("Edit in Elementor", "cms-tree-page-view")?></a>
1157
+ <?php endif; ?>
1158
  <a href="#" title='<?php _e("View page", "cms-tree-page-view")?>' class='cms_tpv_action_view'><?php _e("View", "cms-tree-page-view")?></a>
1159
  </p>
1160
 
index.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://github.com/jchristopher/cms-tree-page-view
5
  Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
6
  Text Domain: cms-tree-page-view
7
  Domain Path: /languages/
8
- Version: 1.6.5
9
  Author: Jon Christopher
10
  Author URI: https://jonchristopher.us/
11
  License: GPL2
@@ -29,7 +29,7 @@ License: GPL2
29
 
30
  #require("functions.php");
31
 
32
- define( "CMS_TPV_VERSION", "1.6.5");
33
  define( "CMS_TPV_NAME", "CMS Tree Page View");
34
 
35
  require(dirname(__FILE__) . "/functions.php");
5
  Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
6
  Text Domain: cms-tree-page-view
7
  Domain Path: /languages/
8
+ Version: 1.6.6
9
  Author: Jon Christopher
10
  Author URI: https://jonchristopher.us/
11
  License: GPL2
29
 
30
  #require("functions.php");
31
 
32
+ define( "CMS_TPV_VERSION", "1.6.6");
33
  define( "CMS_TPV_NAME", "CMS Tree Page View");
34
 
35
  require(dirname(__FILE__) . "/functions.php");
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://eskapism.se/sida/donate/
4
  Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
5
  Text Domain: cms-tree-page-view
6
  Requires at least: 3.8
7
- Tested up to: 5.9.3
8
- Stable tag: 1.6.5
9
 
10
  Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
11
 
@@ -13,10 +13,11 @@ Adds a tree view of all pages & custom posts. Get a great overview + options to
13
 
14
  Adds a CMS-like tree overview of all your pages and custom posts to WordPress - much like the view often found in a page-focused CMS.
15
 
 
 
16
  Within this tree you can edit pages, view pages, add pages, search pages, and drag and drop pages to rearrange the order.
17
 
18
- CMS Tree Page View is a good alternative to plugins such as pageMash, WordPress Page Tree
19
- and My Page Order.
20
 
21
  Page management in WordPress won't get any easier than this!
22
 
@@ -116,6 +117,11 @@ Now the tree with the pages will be visible both on the dashboard and in the men
116
 
117
  == Changelog ==
118
 
 
 
 
 
 
119
  = 1.6.5 (May 2022) =
120
 
121
  PHP8 compatibility update. Props @cjhaas.
4
  Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
5
  Text Domain: cms-tree-page-view
6
  Requires at least: 3.8
7
+ Tested up to: 6.0.0
8
+ Stable tag: 1.6.6
9
 
10
  Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
11
 
13
 
14
  Adds a CMS-like tree overview of all your pages and custom posts to WordPress - much like the view often found in a page-focused CMS.
15
 
16
+ Also check out [OrganizeWP](https://organizewp.com/?utm_campaign=migrate&utm_source=cmstpv&utm_medium=readme&utm_content=desclink) if your goal is to incorporate multiple content types into a single view!
17
+
18
  Within this tree you can edit pages, view pages, add pages, search pages, and drag and drop pages to rearrange the order.
19
 
20
+ CMS Tree Page View is a good alternative to plugins such as pageMash, WordPress Page Tree and My Page Order. For **multiple content types** and other new features check out [OrganizeWP](https://organizewp.com/?utm_campaign=migrate&utm_source=cmstpv&utm_medium=readme&utm_content=desclink) as well.
 
21
 
22
  Page management in WordPress won't get any easier than this!
23
 
117
 
118
  == Changelog ==
119
 
120
+ = 1.6.6 (May 2022) =
121
+
122
+ WordPress 6.0 compatibility
123
+ Adds link to Edit in Elementor.
124
+
125
  = 1.6.5 (May 2022) =
126
 
127
  PHP8 compatibility update. Props @cjhaas.
scripts/cms_tree_page_view.js CHANGED
@@ -454,6 +454,11 @@ function cms_tpv_mouseover_li(e) {
454
  $edit.attr("href", editlink);
455
  $edit.removeClass("hidden");
456
 
 
 
 
 
 
457
  // ..and some extras
458
  div_actions_for_post_type.find(".cms_tpv_page_actions_modified_time").text($li.data("modified_time"));
459
  div_actions_for_post_type.find(".cms_tpv_page_actions_modified_by").text($li.data("modified_author"));
454
  $edit.attr("href", editlink);
455
  $edit.removeClass("hidden");
456
 
457
+ $editElementor = div_actions_for_post_type.find(".cms_tpv_action_edit_elementor");
458
+ if ($editElementor.length) {
459
+ $editElementor.attr("href", editlink.replace('action=edit', 'action=elementor'));
460
+ }
461
+
462
  // ..and some extras
463
  div_actions_for_post_type.find(".cms_tpv_page_actions_modified_time").text($li.data("modified_time"));
464
  div_actions_for_post_type.find(".cms_tpv_page_actions_modified_by").text($li.data("modified_author"));