WordPress.org

Plugin Directory

Changeset 646324


Ignore:
Timestamp:
12/31/12 09:38:25 (16 months ago)
Author:
eskapism
Message:

version 1.2.2

Location:
cms-tree-page-view/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cms-tree-page-view/trunk/functions.php

    r646191 r646324  
    55 * Example how to use action cms_tree_page_view_post_can_edit to modify if a user can edit the page/post 
    66 */ 
    7  
     7/* 
    88add_action("cms_tree_page_view_post_can_edit", function($can_edit, $post_id) { 
    99     
     
    1515 
    1616 
    17  
    1817add_action("cms_tree_page_view_post_user_can_add_inside", function($can_edit, $post_id) { 
    1918     
     
    3130 
    3231}, 10, 2); 
    33  
     32*/ 
    3433 
    3534/** 
  • cms-tree-page-view/trunk/index.php

    r645039 r646324  
    44Plugin URI: http://eskapism.se/code-playground/cms-tree-page-view/ 
    55Description: 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 Version: 1.2.1 
     6Version: 1.2.2 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
  • cms-tree-page-view/trunk/readme.txt

    r646191 r646324  
    55Requires at least: 3.4 
    66Tested up to: 3.5 
    7 Stable tag: 1.2.1 
    8  
    9 Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder and option to add multiple pages at once. 
     7Stable tag: 1.2.2 
     8 
     9Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages at once. 
    1010 
    1111== Description == 
    1212 
    1313Adds 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. 
     14 
    1415Within this tree you can edit pages, view pages, add pages, search pages, and drag and drop pages to rearrange the order. 
    1516 
     
    105106== Changelog == 
    106107 
    107 = 1.2.x = 
     108= 1.2.2 = 
    108109- Hide "inside" link if post type is draft, since you can't create new post inside a page with status draft (limitation/bug with Wordpress) 
    109 -  
     110- Added actions so other developers or plugins can control what pages/posts that are editiable and so on. Added filters are: cms_tree_page_view_post_can_edit, cms_tree_page_view_post_user_can_add_inside, cms_tree_page_view_post_user_can_add_after 
    110111 
    111112= 1.2.1 = 
  • cms-tree-page-view/trunk/scripts/cms_tree_page_view.js

    r646191 r646324  
    501501            } 
    502502             
     503            div_actions_for_post_type.addClass("cms_tpv_page_actions_visible"); 
     504             
    503505            // check if user is allowed to edit page 
    504506            var $cms_tpv_action_add_and_edit_page = div_actions_for_post_type.find(".cms_tpv_action_add_and_edit_page"); 
    505             //$cms_tpv_action_add_and_edit_page.show(); 
    506  
    507             // console.log( $li.data("user_can_edit_page") ); 
    508             // console.log( $li.data("user_can_add_page_inside") ); 
    509             // console.log( $li.data("user_can_add_page_after") ); 
    510             div_actions_for_post_type.addClass("cms_tpv_page_actions_visible"); 
    511  
    512507            if ($li.data("user_can_edit_page") === "0") { 
    513508                $edit.addClass("hidden"); 
    514509            } 
    515510 
    516  
    517511            $cms_tpv_add_position = div_actions_for_post_type.find(".cms_tpv_add_position"); 
     512            $cms_tpv_add_position.removeClass("hidden"); 
    518513 
    519514            $cms_tpv_action_add_page_after = div_actions_for_post_type.find(".cms_tpv_action_add_page_after"); 
    520515            $cms_tpv_action_add_page_after.removeClass("hidden"); 
    521             //$cms_tpv_action_add_page_after.show(); 
    522516            if ($li.data("user_can_add_page_after") === "0") { 
    523517                $cms_tpv_action_add_page_after.addClass("hidden"); 
     518                $cms_tpv_add_position.addClass("hidden"); 
    524519            } 
    525520 
     
    528523            if ($li.data("user_can_add_page_inside") === "0") { 
    529524                $cms_tpv_action_add_page_inside.addClass("hidden"); 
     525                $cms_tpv_add_position.addClass("hidden"); 
    530526            } 
    531527 
Note: See TracChangeset for help on using the changeset viewer.