Navigation Menu

Skip to content

Commit

Permalink
Item12864: make sure plugins are releasable
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Aug 28, 2014
1 parent b8dfe67 commit 91a515c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 21 deletions.
9 changes: 9 additions & 0 deletions .gitignore
@@ -0,0 +1,9 @@
*.gz
*.swp
IfDefinedPlugin.md5
IfDefinedPlugin.sha1
IfDefinedPlugin.tgz
IfDefinedPlugin.txt
IfDefinedPlugin.zip
IfDefinedPlugin_installer
IfDefinedPlugin_installer.pl
20 changes: 4 additions & 16 deletions data/System/IfDefinedPlugin.txt
@@ -1,4 +1,5 @@
%META:TOPICINFO{author="ProjectContributor" date="1407719365" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" comment="autosave" date="1356278772" format="1.1" version="1"}%

---+!! <nop>%TOPIC%
<div class="foswikiWarningMessage">
Warning: This plugin is deprecated. Please use [[%SYSTEMWEB%.VarIF][%IF]] instead. The only remaining
Expand All @@ -9,14 +10,6 @@ Please try to convert your wiki applications using a combination of %IF and %INC
%TOC%

---++ Description
<table style="float:right">
<tr>
<td><img src="%ATTACHURLPATH%/wikiringlogo40x40.png"></td>
<td><a href="http://wikiring.com" title="Make your Wiki ring!" style="text-decoration:none">
Powered by <br /> <nop>WikiRing Consultants </a>
</td>
</tr>
</table>
This plugin adds a couple of tags that allow to render content conditionally.
There are two different ways to do that: either by using the inline
=%<nop>IFDEFINED{"string" then="..." else="..."}%= tag that returns the
Expand Down Expand Up @@ -157,11 +150,12 @@ and allows more complex <nop>TopicMarkup in the then/else branches.
* Set SHORTDESCRIPTION = Render content conditionally
-->
| Plugin Author: | Michael Daum |
| Copyright &copy;: | 2006-2011, Michael Daum http://michaeldaumconsulting.com |
| Copyright &copy;: | 2006-2014, Michael Daum http://michaeldaumconsulting.com |
| License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
| Release: | %$RELEASE% |
| Version: | %$VERSION% |
| Change History: | <!-- specify latest version first -->&nbsp; |
| 28 Aug 2014: | make sure the plugin is still releasable |
| 26 Aug 2011: | use =getCgiQuery= instead of =getRequestObject= for backwards compatibility |
| 23 Apr 2009: | converted to foswiki plugin |
| 07 Jan 2009: | certified for foswiki/compat |
Expand All @@ -178,11 +172,5 @@ and allows more complex <nop>TopicMarkup in the then/else branches.
added escape parameters and recursive variable expansion to the condition argument \
which helps to circumvent problems due to different plugin orders |
| 21 Feb 2006: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.8 |
| Plugin Home: | Foswiki:Extensions/%TOPIC% |
| Feedback: | Foswiki:Support/%TOPIC% |


%META:FILEATTACHMENT{name="wikiringlogo40x40.png" attachment="wikiringlogo40x40.png" attr="h" comment="" date="1189787359" path="wikiringlogo40x40.png" size="2571" stream="wikiringlogo40x40.png" tmpFilename="" user="ProjectContributor" version="1"}%
10 changes: 6 additions & 4 deletions lib/Foswiki/Plugins/IfDefinedPlugin.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2006-2011 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2006-2014 Michael Daum http://michaeldaumconsulting.com
#
# Based on the NatSkinPlugin
#
Expand All @@ -21,6 +21,8 @@ package Foswiki::Plugins::IfDefinedPlugin;

use Foswiki::Attrs;
use strict;
use warnings;

use vars qw(
$VERSION $RELEASE
$currentAction
Expand All @@ -29,16 +31,16 @@ use vars qw(
$NO_PREFS_IN_TOPIC $SHORTDESCRIPTION
);

$VERSION = '$Rev$';
$VERSION = '2.01';
$RELEASE = '2.01';
$NO_PREFS_IN_TOPIC = 1;
$SHORTDESCRIPTION = 'Render content conditionally';

use constant DEBUG => 0; # toggle me
use constant TRACE => 0; # toggle me

###############################################################################
sub writeDebug {
print STDERR '- IfDefinedPlugin - '.$_[0]."\n" if DEBUG;
print STDERR '- IfDefinedPlugin - '.$_[0]."\n" if TRACE;
}

###############################################################################
Expand Down
1 change: 0 additions & 1 deletion lib/Foswiki/Plugins/IfDefinedPlugin/MANIFEST
@@ -1,3 +1,2 @@
data/System/IfDefinedPlugin.txt 0644
lib/Foswiki/Plugins/IfDefinedPlugin.pm 0644
pub/System/IfDefinedPlugin/wikiringlogo40x40.png 0644

0 comments on commit 91a515c

Please sign in to comment.