WordPress.org

Plugin Directory

Changeset 1752203


Ignore:
Timestamp:
10/25/17 03:16:14 (7 weeks ago)
Author:
JaworskiMatt
Message:

3.0.0 rebranding, peepso log

Location:
system-report-and-phpinfo/trunk
Files:
3 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • system-report-and-phpinfo/trunk/pages/page.php

    r1455576 r1752203  
    11<?php 
    22 
    3 abstract class MDT_Page 
     3abstract class PeepSoDeveloperToolsPage 
    44{ 
    5     public $title = NULL; 
     5    public $title = NULL; 
    66 
    7     public $file_extension = 'txt'; 
    8     public $file_mime = 'text/plain'; 
     7    public $file_extension = 'txt'; 
     8    public $file_mime = 'text/plain'; 
    99 
    10     public $menu_slug = 'SLUG'; 
     10    public $menu_slug = 'SLUG'; 
    1111 
    12     public $description = 'Amazing Features Here'; 
     12    public $description = 'Amazing Features Here'; 
    1313 
    14     public function page_start($export_key = '') 
    15     { 
    16         $mdt = Matts_Developer_Tools::get_instance(); 
     14    public function page_start($export_key = '') 
     15    { 
     16        $PeepSoDeveloperTools = PeepSoDeveloperTools::get_instance(); 
    1717 
    18         wp_enqueue_style('mdt_common', $mdt::assets_path().'css/common.css'); 
    19         ?> 
    20         <h2><?php echo __('Matt\'s Developer Tools','wordpress-system-report'); ?></h2> 
    21         <div class="wrap mdt-wrap"> 
    22             <h3 class="nav-tab-wrapper wp-clearfix"> 
    23             <?php 
    24             foreach($mdt->pages_config as $page) { 
    25                 $active = ('mdt_' . $page == $_GET['page']) ? 'nav-tab-active' :''; 
    26                 printf('<a href="%s" class="nav-tab %s">%s</a>', menu_page_url( 'mdt_'.$page, FALSE ), $active, $mdt->pages[$page]->title); 
    27             } 
    28             ?> 
    29             </h3> 
     18        wp_enqueue_style('peepsodebug_common', $PeepSoDeveloperTools::assets_path().'css/common.css'); 
     19        ?> 
     20        <h2><?php echo __('Developer Tools by PeepSo','peepsodebug'); ?></h2> 
     21        <div class="wrap peepsodebug-wrap"> 
     22        <h3 class="nav-tab-wrapper wp-clearfix"> 
     23            <?php 
     24            foreach($PeepSoDeveloperTools->pages_config as $page) { 
     25                $active = ('peepsodebug_' . $page == $_GET['page']) ? 'nav-tab-active' :''; 
     26                printf('<a href="%s" class="nav-tab %s">%s</a>', menu_page_url( 'peepsodebug_'.$page, FALSE ), $active, $PeepSoDeveloperTools->pages[$page]->title); 
     27            } 
     28            ?> 
     29        </h3> 
    3030 
    31                 <?php 
    32                 // Export Button 
    33                 $mdt_buttons = array(); 
    34                 ob_start(); 
    35                 ?> 
    36                 <form action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>" method="post"> 
    37                     <input type="hidden" name="export_content" value="<?php echo $export_key; ?>"> 
    38                     <input type="hidden" name="system_report_export" value="1"> 
    39                     <input type="submit" value="<?php echo __('&darr; Export', 'wordpress-system-report'); ?>" 
    40                            class="button button-primary"> 
    41                 </form> 
    42                 <?php 
    43                 $mdt_buttons['export'] = ob_get_clean(); 
     31        <?php 
     32        if($export_key) { 
     33            // Export Button 
     34            $PeepSoDeveloperTools_buttons = array(); 
     35            ob_start(); 
     36            ?> 
     37            <form action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>" method="post"> 
     38                <input type="hidden" name="export_content" value="<?php echo $export_key; ?>"> 
     39                <input type="hidden" name="system_report_export" value="1"> 
     40                <input type="submit" value="<?php echo __('&darr; Export', 'wordpress-system-report'); ?>" 
     41                       class="button button-primary"> 
     42            </form> 
     43            <?php 
     44            $buttons['export'] = ob_get_clean(); 
    4445 
    45                 // Reload button 
    46                 ob_start(); 
    47                 ?> 
    48                 <form action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>" method="post"> 
    49                     <input type="submit" value="<?php echo __('&#8634; Refresh', 'wordpress-system-report'); ?>" 
    50                            class="button button-secondary"> 
    51                 </form> 
    52                 <?php 
    53                 $mdt_buttons['reload'] = ob_get_clean(); 
     46            // Reload button 
     47            ob_start(); 
     48            ?> 
     49            <form action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>" method="post"> 
     50                <input type="submit" value="<?php echo __('&#8634; Refresh', 'wordpress-system-report'); ?>" 
     51                       class="button button-secondary"> 
     52            </form> 
     53            <?php 
     54            $buttons['reload'] = ob_get_clean(); 
    5455 
    55                 $mdt_buttons = apply_filters('mdt_buttons', $mdt_buttons); 
     56            $buttons = apply_filters('peepsodebug_buttons', $buttons); 
    5657 
    57                 if(count($mdt_buttons)) { 
    58                     printf('<div class="mdt-action-buttons">%s</div>', implode(' ', $mdt_buttons)); 
    59                 } 
    60     } 
    6158 
    62     public function page_end() 
    63     { 
    64         ?> 
    65         </div> 
    66         <div class="center"> 
    67             <?php echo __('Developed with love at <a href="http://mattsplugins.io" target="_blank">Matt\'s plugins</a> by <a href="http://jwr.sk" target="_blank">Matt Jaworski</a>.','matts-developer-tools');?> 
    68         </div> 
    69         <?php 
    70     } 
     59            if (count($buttons)) { 
     60                printf('<div class="peepsodebug-action-buttons">%s</div>', implode(' ', $buttons)); 
     61            } 
     62        } 
     63    } 
    7164 
    72     public static function mdt_buttons($buttons){ 
    73         return $buttons; 
    74     } 
     65    public function page_end() 
     66    { 
     67        ?> 
     68        </div> 
     69        <?php 
     70    } 
    7571 
    76     abstract public function page(); 
     72    public static function peepsodebug_buttons($buttons){ 
     73        return $buttons; 
     74    } 
    7775 
    78     abstract public function page_data(); 
     76    abstract public function page(); 
     77 
     78    abstract public function page_data(); 
    7979} 
  • system-report-and-phpinfo/trunk/pages/page_git.php

    r1455576 r1752203  
    11<?php 
    22 
    3 class MDT_Page_Git extends MDT_Page 
     3class PeepSoDeveloperToolsPageGit extends PeepSoDeveloperToolsPage 
    44{ 
    55    public function __construct() 
    66    { 
    7         $this->title        = __('Git Repositories', 'matts-developer-tools'); 
    8         $this->description  = __('Simple list of all git tracked plugins and themes. Exports as a formatted .txt file.', 'matts-developer-tools'); 
     7        $this->title        = __('Git Repositories', 'PeepSoDeveloperToolsPageunexpectedoutput'); 
     8        $this->description  = __('Simple list of all git tracked plugins and themes. Exports as a formatted .txt file.', 'peepsodebug'); 
    99    } 
    1010 
  • system-report-and-phpinfo/trunk/pages/page_home.php

    r1455576 r1752203  
    11<?php 
    22 
    3 class MDT_Page_Home extends MDT_Page 
     3class PeepSoDeveloperToolsPageHome extends PeepSoDeveloperToolsPage 
    44{ 
    55    public function __construct() 
    66    { 
    7         $this->title='Matt\'s Dev Tools'; 
     7        $this->title='Developer Tools <nobr><small>by PeepSo</small></nobr>'; 
    88    } 
    99 
     
    1818    public function page_data() 
    1919    { 
    20         $mdt = Matts_Developer_Tools::get_instance(); 
     20        $PeepSoDeveloperTools = PeepSoDeveloperTools::get_instance(); 
    2121        ob_start(); 
    2222        ?> 
     
    2424            <div class="welcome-panel-content"> 
    2525                <h2> 
    26                     <?php _e('Welcome to Matt\'s Developer Tools!','matts-developer-tools');?> 
     26                    <?php _e('Welcome to Developer Tools by PeepSo!','peepsodebug');?> 
    2727                </h2> 
    2828 
    2929                <p class="about-description"> 
    30                     <?php _e('Use the tabs on top to use the available functions:','matts-developer-tools');?> 
     30                    <?php _e('Use the tabs on top to use the available functions:','peepsodebug');?> 
    3131                </p> 
    3232                <?php 
    33                 foreach($mdt->pages_config as $page) { 
     33                foreach($PeepSoDeveloperTools->pages_config as $page) { 
    3434                    if('home' == $page) { continue; } 
    3535                    ?> 
    3636                    <p> 
    3737                    <h3> 
    38                         <a href="<?php menu_page_url( 'mdt_'.$page);?>"><?php echo $mdt->pages[$page]->title;?></a> 
     38                        <a href="<?php menu_page_url( 'peepsodebug_'.$page);?>"><?php echo $PeepSoDeveloperTools->pages[$page]->title;?></a> 
    3939                    </h3> 
    40                     <?php echo $mdt->pages[$page]->description;?> 
     40                    <?php echo $PeepSoDeveloperTools->pages[$page]->description;?> 
    4141                    </p> 
    4242                    <?php 
     
    4949    } 
    5050 
    51     public static function mdt_buttons($buttons) 
     51    public static function peepsodebug_buttons($buttons) 
    5252    { 
    5353        return array(); 
  • system-report-and-phpinfo/trunk/pages/page_phpinfo.php

    r1455576 r1752203  
    11<?php 
    22 
    3 class MDT_Page_PHPinfo extends MDT_Page 
     3class PeepSoDeveloperToolsPagePHPInfo extends PeepSoDeveloperToolsPage 
    44{ 
    55    public $file_extension = 'html'; 
     
    99    { 
    1010        $this->title        = 'PHPinfo()'; 
    11         $this->description  = __('Gain full insight into your hosting environment with phpinfo() convieniently embedded at your fingertips. Exports as HTML file.', 'matts-developer-tools'); 
     11        $this->description  = __('Gain full insight into your hosting environment with phpinfo() convieniently embedded at your fingertips. Exports as HTML file.', 'peepsodebug'); 
    1212    } 
    1313 
    1414    public function page() 
    1515    { 
    16         wp_enqueue_style('mdt_phpinfo', Matts_Developer_Tools::assets_path().'css/phpinfo.css'); 
     16        wp_enqueue_style('peepsodebug_phpinfo', PeepSoDeveloperTools::assets_path().'css/phpinfo.css'); 
    1717 
    1818        $this->page_start('phpinfo'); 
  • system-report-and-phpinfo/trunk/pages/page_report.php

    r1455576 r1752203  
    11<?php 
    22 
    3 class MDT_Page_Report extends MDT_Page 
     3class PeepSoDeveloperToolsPageReport extends PeepSoDeveloperToolsPage 
    44{ 
    55    public function __construct() 
    66    { 
    7         $this->title        = __('System Report', 'matts-developer-tools'); 
    8         $this->description  = __('Overview your vital WordPress and environment data. Exports as formatted .txt file.', 'matts-developer-tools'); 
     7        $this->title        = __('System Report', 'peepsodebug'); 
     8        $this->description  = __('Overview your vital WordPress and environment data. Exports as formatted .txt file.', 'peepsodebug'); 
    99    } 
    1010 
     
    7474        $report .= "\n\t".'** WORDPRESS CONFIG **'."\n"; 
    7575        $report .= 'WP_DEBUG:'."\t\t\t\t".$wpdebug."\n"; 
    76         $report .= 'WP Memory Limit:'."\t\t\t".Matts_Developer_Tools::num_convt( WP_MEMORY_LIMIT )/( 1024 ).'MB'."\n"; 
     76        $report .= 'WP Memory Limit:'."\t\t\t".PeepSoDeveloperTools::num_convt( WP_MEMORY_LIMIT )/( 1024 ).'MB'."\n"; 
    7777        $report .= 'Table Prefix:'."\t\t\t\t".$wpdb->base_prefix."\n"; 
    7878        $report .= 'Show On Front:'."\t\t\t\t".get_option( 'show_on_front' )."\n"; 
  • system-report-and-phpinfo/trunk/readme.txt

    r1455581 r1752203  
    1 === Matt's Developer Tools === 
    2 Contributors: JaworskiMatt 
     1=== Developer Tools by PeepSo === 
     2Contributors: JaworskiMatt, peepso, rsusanto 
    33Tags: report, system, debug, audit, server, info, phpinfo, git, repository, branch, branches, repositories, unexpected output, unexpected, output 
    44Requires at least: 4.4 
    5 Tested up to: 4.4 
     5Tested up to: 4.9 
    66Stable tag: trunk 
    77License: GPLv2 or later 
     
    1111 
    1212== Description == 
    13 This plugin is a collection of tools useful that come in handy developing Wordpress plugins. 
     13This plugin is a collection of tools useful that come in handy developing Wordpress plugins and debugging PeepSo. 
    1414 
    1515It can also be used to help third parties debug your website without granting them wp-admin access. 
     
    1717The current features incude: 
    1818 
     191. preview PeepSo logs in real time 
    19201. overview of most important Wordpress settings, environment variables and server config 
    20211. complete phpinfo() 
     
    27281. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or install the plugin through the WordPress plugins screen directly. 
    28291. Activate the plugin through the 'Plugins' screen in WordPress 
    29 1. Use the "Matt's Dev Tools" menu to access the features 
     301. Use the "Developer Tools" menu to access the features 
    3031 
    3132== Screenshots == 
     
    3738 
    3839== Changelog == 
     40= 3.0.0 = 
     41* Added PeepSo Log facilities 
     42* Rebranding 
     43 
    3944= 2.0.0 = 
    4045* Added "unexpected output during activation" debugger 
Note: See TracChangeset for help on using the changeset viewer.