Plugin Directory

Changeset 1976448


Ignore:
Timestamp:
11/18/2018 11:47:44 PM (7 years ago)
Author:
fullmoonfriday
Message:

Update to Version 0.6

Location:
wps-complete
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • wps-complete/trunk/README.txt

    r1957803 r1976448  
    11=== WPS complete ===
    2 Contributors: fullmoonfriday
     2Contributors: fullmoonfriday, wpscomplete.com
    33Tags: tools, user, support,
    44Requires at least: 3.0.1
    5 Tested up to: 4.9.8
    6 Requires PHP: 7.1
    7 Stable tag: 4.3
     5Tested up to: 4.9.8
     6Stable tag: 4.9.8
    87License: GPLv2 or later
    98License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1413
    1514This is the first version to provide a toolbox of services and information regarding the development and maintenance of your WordPress site. This version contains the following:
    16 
    17151. Current plugins Active / Inactive / MU plugns
    18 2. Cron Jobs currently installed.
    19 3. Server specifications including current PHP version, Memory and uploap limit + more
    20 4. Current user Specs
    21 5. Techinical information about your WordPress Installation.
     161. Cron Jobs currently installed.
     171. Server specifications including current PHP version, Memory and uploap limit + more
     181. Current user Specs
     191. Techinical information about your WordPress Installation.
    2220
    2321== Installation ==
     
    3634== Screenshots ==
    3735
    38 1. The WordPress Install
     361. The WordPress Installation
    39372. The Server data
    40383. The plugins
     
    4442== Changelog ==
    4543
     44= 0.6 =
     45
     461. Current user tab - Added user meta information
     471. All roles tab - Added new tab to display all current roles
     481. Image Sizes tab - Displays registered current registered image sizes
     491. Menus tab - Displays the current menus loaded in the admin area
     501. Include submenu for Admin Menus if active.
     51
    4652= 0.5 =
    4753First version for visualisation and preparing further development.
  • wps-complete/trunk/includes/WPS_template_wp_support.php

    r1957770 r1976448  
    22
    33/**
    4  * Template prepared for addint features in next version.
     4 * Template prepared for adding features in next version.
    55 *
    66 * @package     Central setup for admin area
     
    1616function wpsc_support_menu() {
    1717    $page_title = "Your support";
    18     $menu_title = "WPS complete";
    19     $capability = 'read';
     18    $menu_title = "WPS Complete";
     19    $capability = 'manage_options';
    2020    $menu_slug = "WPS";
    2121    $function = "wpsc_support_plugin_options";
    2222    $icon_url = 'dashicons-feedback';
    2323    $position = 4;
    24     // add_options_page( 'My Plugin Options', 'My Plugin', 'manage_options', 'my-unique-identifier', 'my_plugin_options' );
     24   
    2525    add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position );
     26
     27    if ( is_plugin_active( 'wps_admin_menus/wps_admin_menus.php' ) ) {
     28        //add the menu if the admin menus plugin is active
     29        add_submenu_page( 'WPS', __( 'Admin Menu', 'wpsc' ), __( 'Admin Menu', 'wpsc' ), 'manage_options', 'wpsc_menu', 'wpsc_admin_menus_setup' );
     30    }
    2631}
    2732
     
    114119            case 'cron':
    115120            case 'current_user':
     121            case 'user_roles':
    116122            case 'system':
    117123            case 'plugins':
    118124            case 'wordpress':
     125            case 'registered_image_sizes':
     126            case 'menus':
    119127                    $tabs['plugins'] = 'Plugins';
    120128                    $tabs['cron'] = 'Cron Job';
    121129                    $tabs['system'] = 'System';
    122130                    $tabs['current_user'] = 'Current User';
     131                    $tabs['user_roles'] = 'User roles';
    123132                    $tabs['wordpress'] = 'Wordpress';
     133                    $tabs['registered_image_sizes'] = 'Image Sizes';
     134                    $tabs['menus'] = 'Menus';
    124135                break;
    125136        }
     
    174185             case 'cron':
    175186             case 'current_user':
     187             case 'user_roles':
    176188             case 'system':
    177189             case 'plugins':
    178190             case 'wordpress':
     191             case 'registered_image_sizes':
    179192                    wpsc_admin_tabs('tools');
    180193                break;
     
    243256        case 'current_user':
    244257                wpsc_sub_tabs( 'current_user' );
     258                echo '<br/>';
     259                echo '<pre>' . print_r( get_user_meta( get_current_user_id() ), true ) . '</pre>';
    245260                include "tools/WPS_dev_user_tab.php";
     261            break;
     262        case 'user_roles':
     263                wpsc_sub_tabs( 'user_roles' );
     264                global $wp_roles;
     265                echo '<pre>' . print_r( $wp_roles, true ) . '</pre>';
     266            break;
     267        case 'registered_image_sizes':
     268                wpsc_sub_tabs( 'registered_image_sizes' );
     269                global $_wp_additional_image_sizes;
     270                echo '<h3>' . 'Current registered images sizes' . '</h3>';
     271                echo '<p>' . "New sizes are registered with:" . "</p>";
     272                echo "<code>" . 'add_image_size( string $name, int $width, int $height, bool|array $crop = false )' . '</code>';
     273                echo "<p><code> wp_get_attachment_image_src( $attachment->ID, 'attached-image') </code> is to retreive the original attahcment file" . '</p>';
     274                echo '<pre>' . print_r( $_wp_additional_image_sizes, true ) . '</pre>';
    246275            break;
    247276        case 'system':
     
    309338                include "WPS_template_admin_ref_notes_tab.php";
    310339            break;
     340         case 'menus':
     341                wpsc_sub_tabs($_GET['tab']);
     342                include "tools/WPS_dev_menu_tab.php";
     343            break;
    311344    }
    312345    echo '</div>';
  • wps-complete/trunk/includes/tools/WPS_dev_user_tab.php

    r1957770 r1976448  
    11<?php if( current_user_can( 'manage_options' ) ){ //admin only ?>
    22
    3 <h4>Current logged in user</h4>
    43
    54<?php
    65
     6/**
     7 * Display user role in page
     8 *
     9 * @param string $hook Page hook.
     10 *
     11 * @return void
     12 */
     13function wpsc_get_user_role( $user = null ) {
     14    $user = $user ? new WP_User( $user ) : wp_get_current_user();
     15    return $user->roles ? $user->roles[0] : false;
     16}
     17
     18?>
     19
     20<h4>Current logged in user role: <?php echo wpsc_get_user_role() ?></h4>
     21<?php
    722    $data = get_userdata( get_current_user_id() );
    8  
    923    if ( is_object( $data) ) {
    1024        $current_user_caps = $data->allcaps;
    11         // print it to the screen
    12         echo '<pre>' . print_r( $current_user_caps, true ) . '</pre>';
     25        echo '<pre>' . print_r( $data->allcaps , true ) . '</pre>';
    1326    }
    1427}
  • wps-complete/trunk/includes/wp_support_tab.php

    r1957770 r1976448  
    66<div class="admin_text">
    77    <p>Welcome to the first version of WordPress Support Complete plugin</p>
    8     <p>WPS complete is an initiative to get you the best support for all areas of Wordpress. Minor bug fixes, design, updates, maintenance, and complete plugin development can be sourced direct through your wordpress backend. Please get in touch at WPScomplete.com for additional feature requests.</p>
     8    <p>WPS complete is an initiative to get you the best support for all areas of Wordpress. Minor bug fixes, design, updates, maintenance, and complete plugin development can be sourced direct through your wordpress backend. Please get in touch at <a href="https://wpscomplete.com/" >WPScomplete.com</a> for additional feature requests.</p>
    99</div>
    1010
  • wps-complete/trunk/wps_complete.php

    r1957770 r1976448  
    66Description: Toolbox for development and maintenance support in WordPress
    77Author: WPScomplete.com
    8 Version: 1.0
     8Version: 1.1
    99Author URI: https://wpscomplete.com
    1010*/
Note: See TracChangeset for help on using the changeset viewer.