WordPress.org

Plugin Directory

Changeset 643512


Ignore:
Timestamp:
12/22/12 20:52:52 (16 months ago)
Author:
eskapism
Message:

almost

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

Legend:

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

    r643452 r643512  
    11<?php 
    2  
    3 #add_action('all', create_function('', 'var_dump(current_filter());')); 
    4 #add_action("all_admin_notices", function() { 
    5  
    6     // Ok, men precis innan div.wrap 
    7 #   echo "<p>ccccc</p>"; 
    8  
    9 #}); 
    10  
    11 #add_action("views_edit-products", function() { 
    12  
    13     // Ok, men innan div.wrap 
    14 #   echo "<p>ddddd</p>"; 
    15  
    16 #}); 
    17  
    18  
    19  
    20 /* 
    21 intressanta actions 
    22 admin_notices 
    23 all_admin_notices 
    24  
    25 generella 
    26 esc_html 
    27 site_option_site_admins 
    28 map_meta_cap 
    29 views_edit-products 
    30 */ 
    31  
    322 
    333/** 
     
    360330 
    361331        // Ok, this is a post overview page that we are enabled for 
    362          
    363         // The filter we can use is in class-wp-list-table.php method views() 
    364         // $views = apply_filters( 'views_' . $this->screen->id, $views ); 
    365         // it's the code that gets the links for the current views filters 
    366          
    367         // works, but to high up 
    368332        add_filter("views_" . $current_screen->id, "cmstpv_filter_views_edit_postsoverview"); 
    369         // filter: views_edit-page $this->screen->id 
    370333 
    371334        cmstpv_postoverview_head(); 
    372  
    373         #class wp_list_table 
    374         #$_sortable = apply_filters( "manage_{$this->screen->id}_sortable_columns", $this->get_sortable_columns() ); 
    375         // add_filter("manage_" . $current_screen->id . "_sortable_columns", "cmstpv_filter_views_edit_postsoverview"); 
    376         // manage_edit-page_sortable_columns 
    377  
    378         #all_admin_notices 
    379         // views_edit-products 
    380  
    381  
    382335 
    383336    } 
     
    17121665    update_option('cms_tpv_version', CMS_TPV_VERSION); 
    17131666} 
     1667#cms_tpv_install(); 
    17141668 
    17151669/** 
     
    17201674    // check and update version 
    17211675    $version = get_option('cms_tpv_version', 0); 
    1722     // $version = 0; // uncomment to test default settings 
     1676    #$version = 0; // uncomment to test default settings 
    17231677 
    17241678    if ($version <= 0) { 
     
    17281682        // Add pages to both dashboard and menu 
    17291683        $options["dashboard"] = array("page"); 
    1730         $options["menu"] = array("page"); 
    17311684 
    17321685        // since 0.10.1 enable menu for all hierarchical custom post types 
     1686        // since 1.2 also enable on post overview page 
    17331687        $post_types = get_post_types(array( 
    17341688            "show_ui"       => TRUE, 
     
    17381692        foreach ($post_types as $one_post_type) { 
    17391693            $options["menu"][] = $one_post_type->name; 
     1694            $options["postsoverview"][] = $one_post_type->name; 
    17401695        } 
    17411696 
    17421697        $options["menu"] = array_unique($options["menu"]); 
     1698        $options["postsoverview"] = array_unique($options["postsoverview"]); 
    17431699 
    17441700        update_option('cms_tpv_options', $options); 
     1701     
    17451702    } 
    17461703 
  • cms-tree-page-view/trunk/index.php

    r641321 r643512  
    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.1 
     6Version: 1.2 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
     
    2828#require("functions.php"); 
    2929 
    30 define( "CMS_TPV_VERSION", "1.1"); 
     30define( "CMS_TPV_VERSION", "1.2"); 
    3131define( "CMS_TPV_NAME", "CMS Tree Page View"); 
    3232 
  • cms-tree-page-view/trunk/readme.txt

    r643452 r643512  
    33Donate link: http://eskapism.se/sida/donate/ 
    44Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin 
    5 Requires at least: 3.0 
     5Requires at least: 3.4 
    66Tested up to: 3.5 
    77Stable tag: 1.1 
    88 
    9 Adds a tree of all your pages or custom posts. Use drag & drop to reorder your pages, and edit, view, add, and search your pages. 
     9Adds a tree view of all your pages & custom posts. Gives you great overview + options to drag & drop to reorder and option to add multiple pages at once. 
    1010 
    1111== Description == 
     
    7777* Estonian 
    7878 
    79 #### Making the tree available for your vistors 
    80 If you're looking for a version of this page tree that the vistors of your site can use, then check out 
    81 this navigation widget called [Nice Navigation](http://wordpress.org/extend/plugins/nice-navigation/). 
    82  
    8379#### Always show your pages in the admin area 
    8480If you want to always have a list of your pages available in your WordPress admin area, please check out the plugin 
    8581[Admin Menu Tree Page View](http://wordpress.org/extend/plugins/admin-menu-tree-page-view/). 
    8682 
    87  
    8883#### Donation and more plugins 
    8984* If you like this plugin don't forget to [donate to support further development](http://eskapism.se/sida/donate/). 
     
    10196 
    102971. The page tree in action 
    103 2. Edit, view and add pages (choices visible upon mouse over). 
    104 3. Search pages. 
     982. Edit, view and even add multiple pages at once! 
     993. Search pages 
    1051004. Drag-and-drop to rearrange/change the order of the pages. 
    1061015. The tree is also available on the dashboard and therefore available immediately after you login. 
    107 6. The settings page - choose where you want the tree to show up 
    108 7. Users of WPML can find all their languages in the tree 
     1026. Users of WPML can find all their languages in the tree 
     1037. Quickly switch between regular list view and tree view using the switch icon 
    109104 
    110105== Changelog == 
    111106 
    112 = 1.x = 
     107= 1.2 = 
    113108- Added option to show the tree in the regular post overview screen. Makes the tree view fit into the regular workflow and GUI much better. To enable: go to settings > CMS Tree Page View > Tick the option "On post overview screen". Then go to for example the pages overview screen and in the upper right corner there will be an icon to switch between the regular list view and the tree view of this plugin. 
    114109- Fixed so search button now looks more like the rest of the WordPress GUI 
Note: See TracChangeset for help on using the changeset viewer.