WordPress.org

Plugin Directory

Changeset 484597


Ignore:
Timestamp:
01/04/12 17:41:45 (2 years ago)
Author:
ipublicis
Message:

Updated version. Now a check to WPFR is done. Hope it would avoid most of the recurrent support requests.

Location:
author-box-2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • author-box-2/tags/2.0.4/authorbox.php

    r234865 r484597  
    44Plugin URI: http://wordpress.org/extend/plugins/author-box-2/ 
    55Description: Adds an author box to your blog. From a Brian Gardner's article at http://smsh.me/7ngf. REQUIRES Wordpress Plugin Framework Reloaded installed. 
    6 Version: 2.0.3  
     6Version: 2.0.4  
    77Author: Lopo Lencastre de Almeida <dev@ipublicis.com> 
    88Author URI: http://ipublicis.com/ 
     
    1010License: GNU GPL v3 or later 
    1111 
    12     Copyright (C) 2010 iPublicis!COM 
     12    Copyright (C) 2010-2012 iPublicis!COM 
    1313 
    1414    This program is free software: you can redistribute it and/or modify 
     
    2626 
    2727*/ 
     28 
     29/** 
     30 * Check if the framework plugin is active 
     31 */ 
     32$plugins = get_option( 'active_plugins' ); 
     33$required_plugin = 'wordpress-plugin-framework-reloaded/framework-reloaded.php'; 
     34if ( !in_array( $required_plugin , $plugins ) ) { 
     35    $wpfr = '<a href="http://wordpress.org/extend/plugins/wordpress-plugin-framework-reloaded/" target="_blank">Wordpress Plugin Framework Reloaded</a>'; 
     36    $dieMessage  = sprintf( __( 'The %s plugin must be installed and active.', 'author-box-2' ), $wpfr ); 
     37    $notice = "<div id=\"message\" class=\"error fade\"><p><strong>Author Box Reloaded</strong></p>". 
     38                    "<p>".$dieMessage."</p></div>\n"; 
     39    add_action( 'admin_notices', create_function( '', "echo '$notice';" ) ); 
     40}  
    2841 
    2942/** 
  • author-box-2/tags/2.0.4/readme.txt

    r484589 r484597  
    77Tags: author, theme 
    88Requires at least: 2.8.0 
    9 Tested up to: 2.9.2 
    10 Stable tag: 2.0.3 
     9Tested up to: 3.3.1 
     10Stable tag: 2.0.4 
    1111 
    1212Adds an author box to your blog. From a Brian Gardner's article at http://smsh.me/7ngf.  
     
    105105== Changelog == 
    106106 
     107= 2.0.4 = 
     108 
     109* Added a check to see if the [Wordpress Plugin Framework Reloaded](http://wordpress.org/extend/plugins/wordpress-plugin-framework-reloaded/) is active. 
     110 
    107111= 2.0.3 = 
    108112 
  • author-box-2/trunk/authorbox.php

    r234865 r484597  
    44Plugin URI: http://wordpress.org/extend/plugins/author-box-2/ 
    55Description: Adds an author box to your blog. From a Brian Gardner's article at http://smsh.me/7ngf. REQUIRES Wordpress Plugin Framework Reloaded installed. 
    6 Version: 2.0.3  
     6Version: 2.0.4  
    77Author: Lopo Lencastre de Almeida <dev@ipublicis.com> 
    88Author URI: http://ipublicis.com/ 
     
    1010License: GNU GPL v3 or later 
    1111 
    12     Copyright (C) 2010 iPublicis!COM 
     12    Copyright (C) 2010-2012 iPublicis!COM 
    1313 
    1414    This program is free software: you can redistribute it and/or modify 
     
    2626 
    2727*/ 
     28 
     29/** 
     30 * Check if the framework plugin is active 
     31 */ 
     32$plugins = get_option( 'active_plugins' ); 
     33$required_plugin = 'wordpress-plugin-framework-reloaded/framework-reloaded.php'; 
     34if ( !in_array( $required_plugin , $plugins ) ) { 
     35    $wpfr = '<a href="http://wordpress.org/extend/plugins/wordpress-plugin-framework-reloaded/" target="_blank">Wordpress Plugin Framework Reloaded</a>'; 
     36    $dieMessage  = sprintf( __( 'The %s plugin must be installed and active.', 'author-box-2' ), $wpfr ); 
     37    $notice = "<div id=\"message\" class=\"error fade\"><p><strong>Author Box Reloaded</strong></p>". 
     38                    "<p>".$dieMessage."</p></div>\n"; 
     39    add_action( 'admin_notices', create_function( '', "echo '$notice';" ) ); 
     40}  
    2841 
    2942/** 
  • author-box-2/trunk/readme.txt

    r484589 r484597  
    77Tags: author, theme 
    88Requires at least: 2.8.0 
    9 Tested up to: 2.9.2 
    10 Stable tag: 2.0.3 
     9Tested up to: 3.3.1 
     10Stable tag: 2.0.4 
    1111 
    1212Adds an author box to your blog. From a Brian Gardner's article at http://smsh.me/7ngf.  
     
    105105== Changelog == 
    106106 
     107= 2.0.4 = 
     108 
     109* Added a check to see if the [Wordpress Plugin Framework Reloaded](http://wordpress.org/extend/plugins/wordpress-plugin-framework-reloaded/) is active. 
     110 
    107111= 2.0.3 = 
    108112 
Note: See TracChangeset for help on using the changeset viewer.