From: <var...@us...> - 2008-11-07 14:12:40
|
Revision: 6343 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6343&view=rev Author: vargenau Date: 2008-11-07 14:12:27 +0000 (Fri, 07 Nov 2008) Log Message: ----------- New parameter "title" for Transclude plugin Modified Paths: -------------- trunk/lib/plugin/Transclude.php trunk/pgsrc/Help%2FTranscludePlugin Modified: trunk/lib/plugin/Transclude.php =================================================================== --- trunk/lib/plugin/Transclude.php 2008-10-31 14:29:13 UTC (rev 6342) +++ trunk/lib/plugin/Transclude.php 2008-11-07 14:12:27 UTC (rev 6343) @@ -62,8 +62,9 @@ function getDefaultArguments() { return array( 'src' => false, // the src url to include + 'title' => _("Transcluded page"), // title of the iframe 'height' => 450, // height of the iframe - 'quiet' => false // if set, frame appears as normal content + 'quiet' => false // if set, iframe appears as normal content ); } @@ -95,7 +96,7 @@ return $this->error(_("Bad url in src: remove all of <, >, \"")); } - $params = array('title' => _("Transcluded page"), + $params = array('title' => $title, 'src' => $src, 'width' => "100%", 'height' => $height, Modified: trunk/pgsrc/Help%FTranscludePlugin =================================================================== --- trunk/pgsrc/Help%2FTranscludePlugin 2008-10-31 14:29:13 UTC (rev 6342) +++ trunk/pgsrc/Help%2FTranscludePlugin 2008-11-07 14:12:27 UTC (rev 6343) @@ -23,6 +23,10 @@ | The URL of the page to transclude | ''none'' |- +| title +| The title of the page to transclude +| ''Transcluded page'' +|- | height | The (initial) height of the transclusion frame. If, possible, after the transcluded page is loaded, the frame is resized via Javascript so that it fits the entire transcluded page. (See below for more.) | 450 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |