Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated CSS

  • Loading branch information...
commit e4e3633ce24de74c14baca581ec0c45dcc60fe59 1 parent ff0cbdd
Tim Gunter kaecyra authored
7 controllers/class.addoncontroller.php
View
@@ -92,6 +92,7 @@ public function Add() {
$this->Permission('Addons.Addon.Add');
$this->AddJsFile('/js/library/jquery.autogrow.js');
$this->AddJsFile('forms.js');
+ $this->AddModule('AddonHelpModule', 'Panel');
$this->Form->SetModel($this->AddonModel);
@@ -343,6 +344,8 @@ protected function _NewVersion($AddonID = '', $V1 = FALSE) {
if ($Addon['InsertUserID'] != $Session->UserID)
$this->Permission('Addons.Addon.Manage');
+ $this->AddModule('AddonHelpModule');
+
$this->Form->SetModel($this->AddonModel);
$this->Form->AddHidden('AddonID', $AddonID);
@@ -617,7 +620,8 @@ public function AddPicture($AddonID = '') {
if ($Session->UserID != $Addon['InsertUserID'])
$this->Permission('Addons.Addon.Manage');
-
+
+ $this->AddModule('AddonHelpModule', 'Panel');
$AddonPictureModel = new Gdn_Model('AddonPicture');
$this->Form->SetModel($AddonPictureModel);
$this->Form->AddHidden('AddonID', $AddonID);
@@ -704,6 +708,7 @@ public function Icon($AddonID = '') {
if ($Session->UserID != $Addon['InsertUserID'])
$this->Permission('Addons.Addon.Manage');
+ $this->AddModule('AddonHelpModule', 'Panel');
$this->Form->SetModel($this->AddonModel);
$this->Form->AddHidden('AddonID', $AddonID);
if ($this->Form->AuthenticatedPostBack() === TRUE) {
13 views/addon/add.php
View
@@ -2,27 +2,28 @@
$this->HideSearch = TRUE;
if ($this->DeliveryType() == DELIVERY_TYPE_ALL)
echo $this->FetchView('head');
-
?>
<h1><?php echo T('Create a new Addon'); ?></h1>
+<div class="Info"><?php
+ echo sprintf(T('This page is only for Vanilla 2 addons.', 'This page is only for adding Vanilla 2 addons. If you want to add a Vanilla 1 addon click <a href="%s">here</a>.'), Url('/addon/addv1'));
+?></div>
<?php
-echo '<div class="Info">', sprintf(T('This page is only for Vanilla 2 addons.', 'This page is only for adding Vanilla 2 addons. If you want to add a Vanilla 1 addon click <a href="%s">here</a>.'), Url('/addon/addv1')), '</div>';
-echo $this->Form->Open(array('enctype' => 'multipart/form-data'));
-echo $this->Form->Errors();
+ echo $this->Form->Open(array('enctype' => 'multipart/form-data'));
+ echo $this->Form->Errors();
?>
<ul>
<li>
<?php
echo '<h3>', $this->Form->Label('Addon Archive (2mb max, must be a zip archive)', 'File'), '</h3>';
- echo '<div class="Info">', T('By uploading a file you certify that you have the right to distribute the file and that it does not violate the Terms of Service.'), '</div>';
echo $this->Form->Input('File', 'file', array('class' => 'File'));
+ echo '<div class="Info">', T('By uploading a file you certify that you have the right to distribute the file and that it does not violate the Terms of Service.'), '</div>';
?>
</li>
<li>
<?php
echo '<h3>', $this->Form->Label('Additional Description', 'Description2'), '</h3>';
- echo '<div class="Info">', T('Additional Description', 'Your addon file should contain a basic description in it\'s info array. Add an additional, more detailed description here. Html allowed.'), '</div>';
echo $this->Form->TextBox('Description2', array('multiline' => TRUE));
+ echo '<div class="Info">', T('Additional Description', 'Your addon file should contain a basic description in it\'s info array. Add an additional, more detailed description here. Html allowed.'), '</div>';
?>
</li>
</ul>
2  views/addon/addpicture.php
View
@@ -5,13 +5,13 @@
?>
<h1><?php echo T('Add a Picture'); ?></h1>
+<div class="Info"><?php echo T('By uploading a picture you certify that you have the right to distribute this picture and that it does not violate the Terms of Service.'); ?></div>
<?php
echo $this->Form->Open(array('enctype' => 'multipart/form-data'));
echo $this->Form->Errors();
?>
<ul>
<li>
- <div class="Info"><?php echo T('By uploading a picture you certify that you have the right to distribute this picture and that it does not violate the Terms of Service.'); ?></div>
<?php echo $this->Form->Label('Picture to Upload (2mb max)', 'Picture'); ?>
<?php echo $this->Form->Input('Picture', 'file', array('class' => 'File')); ?>
</li>
2  views/addon/icon.php
View
@@ -4,13 +4,13 @@
echo $this->FetchView('head');
?>
<h1><?php echo T('Upload Icon'); ?></h1>
+<div class="Info"><?php echo T('By uploading a file you certify that you have the right to distribute this picture and that it does not violate the Terms of Service.'); ?></div>
<?php
echo $this->Form->Open(array('enctype' => 'multipart/form-data'));
echo $this->Form->Errors();
?>
<ul>
<li>
- <div class="Info"><?php echo T('By uploading a file you certify that you have the right to distribute this picture and that it does not violate the Terms of Service.'); ?></div>
<?php echo $this->Form->Label('Choose Icon (2mb max)', 'Icon'); ?>
<?php echo $this->Form->Input('Icon', 'file', array('class' => 'File')); ?>
</li>
7 views/addon/newversion.php
View
@@ -5,14 +5,13 @@
?>
<h2><?php echo T('Upload a New Version'); ?></h2>
+<div class="Info"><?php echo T('By uploading a file you certify that you have the right to distribute this addon and that it does not violate the Terms of Service.'); ?></div>
<?php
-
-echo $this->Form->Open(array('enctype' => 'multipart/form-data'));
-echo $this->Form->Errors();
+ echo $this->Form->Open(array('enctype' => 'multipart/form-data'));
+ echo $this->Form->Errors();
?>
<ul>
<li>
- <div class="Info"><?php echo T('By uploading a file you certify that you have the right to distribute this addon and that it does not violate the Terms of Service.'); ?></div>
<?php echo $this->Form->Label('File to Upload (2mb max)', 'File'); ?>
<?php echo $this->Form->Input('File', 'file', array('class' => 'File')); ?>
</li>
Please sign in to comment.
Something went wrong with that request. Please try again.