User:A.allison/Collection Extension changes

From WikiVet English
< User:A.allison
Revision as of 14:28, 12 January 2011 by A.allison (talk | contribs) (Created page with "All changes made to Collection.templates.php are listed here. ===Original=== Starting line 56 ending line 94: <syntaxhighlight lang="php"> <div style="margin-bottom: 10px; paddi...")

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)

Jump to navigation Jump to search

All changes made to Collection.templates.php are listed here.

Original

Starting line 56 ending line 94: <syntaxhighlight lang="php">

<?php $this->msg('coll-book_title') ?>

<?php $partnerData = $this->data['podpartners']['pediapress']; $this->msgWiki('coll-book_text'); ?>

<form action="<?php echo htmlspecialchars(SkinTemplate::makeSpecialUrl('Book')) ?>" method="post"> <input type="hidden" name="bookcmd" value="post_zip" /> <input type="hidden" name="partner" value="pediapress" /> <input type="submit" value="<?php echo wfMsgHtml('coll-order_from_pp', htmlspecialchars($partnerData['name'])) ?>" class="order" <?php if (count($this->data['collection']['items']) == 0) { ?> disabled="disabled"<?php } ?> /> </form>

<?php $t = Title::newFromText(wfMsgForContent('coll-order_info_article')); if ( $t && $t->exists() ) { ?>

<?php } else { ?> <a href="<?php echo htmlspecialchars($partnerData['url']) ?>" target="_blank"><?php echo wfMsgHtml('coll-about_pp', htmlspecialchars($partnerData['name'])) ?></a> <?php } ?>

<?php if ($t && $t->exists() ) { ?>

<?php } ?>

</syntaxhighlight>

Increase size of search box

Lines 56-95 replaced with @ lines 56-59: <syntaxhighlight lang="php">

Warning
This part of the extension (ability to create a book) can be unreliable and may need a number of attempts (page refreshes) before a PDF book is successfully created. In time this will be resolved.

Thank you for your patience.

</syntaxhighlight>