Template/Update (Part 38)
* split Screenshot upload & management into separate endpoints * move shared functions to manager classes * cleanup javascript * move test for config screenshot min size to cfg class
This commit is contained in:
parent
3d3e2211e5
commit
a369244908
35 changed files with 1546 additions and 1031 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<?php namespace Aowow; ?>
|
||||
<?php namespace Aowow\Template; ?>
|
||||
|
||||
<h2><img src="<?=Cfg::get('STATIC_URL'); ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">Reminder</h2>
|
||||
<h2><img src="<?=$this->gStaticUrl; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">Reminder</h2>
|
||||
Your screenshot will <b class="q10">not</b> be approved if it doesn't correspond to the following guidelines.
|
||||
|
||||
<ul>
|
||||
|
|
|
|||
12
template/localized/ssReminder_2.tpl.php
Normal file
12
template/localized/ssReminder_2.tpl.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php namespace Aowow\Template; ?>
|
||||
|
||||
<h2><img src="<?=$this->gStaticUrl; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">Rappel</h2>
|
||||
Votre capture d'écran <b class="q10">ne</b> sera pas approuvée si elle ne respecte pas les directives suivantes.
|
||||
|
||||
<ul>
|
||||
<li><div>Assurez-vous d'augmenter vos <u><b>paramètres graphiques</b></u> pour que la capture soit de bonne qualité !</div></li>
|
||||
<li><div>Les captures d'écran du <u><b>visualiseur de modèles</b></u> sont supprimées immédiatement (cela inclut généralement la sélection de personnage).</div></li>
|
||||
<li><div>N'incluez pas le <u><b>texte à l'écran</b></u> ni le <u><b>cercle de sélection</b></u> d'un PNJ.</div></li>
|
||||
<li><div>N'incluez aucune <u><b>interface utilisateur</b></u> dans la capture si possible.</div></li>
|
||||
<li><div>Utilisez l'<u><b>outil de recadrage</b></u> pour vous concentrer autant que possible sur l'objet et réduire l'environnement inutile, afin de mieux mettre en valeur l'objet sur la vignette qui apparaîtra sur la page de l'objet.</div></li>
|
||||
</ul>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php namespace Aowow; ?>
|
||||
<?php namespace Aowow\Template; ?>
|
||||
|
||||
<h2><img src="<?=Cfg::get('STATIC_URL'); ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">Hinweis</h2>
|
||||
<h2><img src="<?=$this->gStaticUrl; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">Hinweis</h2>
|
||||
Euer Screenshot wird <b class="q10">nicht</b> zugelassen werden, wenn er nicht unseren Richtlinien entspricht.
|
||||
|
||||
<ul>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php namespace Aowow; ?>
|
||||
<?php namespace Aowow\Template; ?>
|
||||
|
||||
<h2><img src="<?=Cfg::get('STATIC_URL'); ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">提醒</h2>
|
||||
你的截图将<b class="q10">不会</b> 通过审查假设不符合下列准则。
|
||||
<h2><img src="<?=$this->gStaticUrl; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">提醒</h2>
|
||||
如果您的截图不符合以下指南,将<b class="q10">不会</b>被通过审核。
|
||||
|
||||
<ul>
|
||||
<li><div>Be sure to turn up your <u><b>graphics settings</b></u> to make sure the shot looks good!</div></li>
|
||||
<li><div><u><b>Model viewer</b></u> shots are deleted on sight (this also includes character select, typically).</div></li>
|
||||
<li><div>Don't include the <u><b>onscreen text</b></u> and the <u><b>selection circle</b></u> of a NPC.</div></li>
|
||||
<li><div>Don't include any <u><b>UI</b></u> in the shot if you can help it.</div></li>
|
||||
<li><div>Use the screenshot <u><b>cropping tool</b></u> to focus on the item as much as possible and reduce any unnecessary surrounding, as to better show off the item in question when reduced to the thumbnail that will be present on the item's page.</div></li>
|
||||
<li><div>请确保将您的<u><b>图形设置</b></u>调高,以保证截图质量!</div></li>
|
||||
<li><div>使用<u><b>模型查看器</b></u>的截图会被直接删除(包括角色选择界面)。</div></li>
|
||||
<li><div>请勿包含NPC的<u><b>屏幕文字</b></u>和<u><b>选择圈</b></u>。</div></li>
|
||||
<li><div>如有可能,请勿在截图中包含任何<u><b>用户界面</b></u>元素。</div></li>
|
||||
<li><div>请使用<u><b>截图裁剪工具</b></u>尽量聚焦于物品本身,减少不必要的背景,以便在物品页面的缩略图中更好地展示该物品。</div></li>
|
||||
</ul>
|
||||
|
|
|
|||
12
template/localized/ssReminder_6.tpl.php
Normal file
12
template/localized/ssReminder_6.tpl.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php namespace Aowow\Template; ?>
|
||||
|
||||
<h2><img src="<?=$this->gStaticUrl; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">Recordatorio</h2>
|
||||
Su captura de pantalla <b class="q10">no</b> será aprobada si no cumple con las siguientes directrices.
|
||||
|
||||
<ul>
|
||||
<li><div>¡Asegúrese de subir la <u><b>configuración gráfica</b></u> para que la imagen se vea bien!</div></li>
|
||||
<li><div>Las capturas de <u><b>model viewer</b></u> se eliminan automáticamente (esto también incluye la selección de personaje, normalmente).</div></li>
|
||||
<li><div>No incluya el <u><b>texto en pantalla</b></u> ni el <u><b>círculo de selección</b></u> de un PNJ.</div></li>
|
||||
<li><div>No incluya ninguna <u><b>interfaz de usuario</b></u> en la imagen si puede evitarlo.</div></li>
|
||||
<li><div>Utilice la <u><b>herramienta de recorte de capturas</b></u> para centrarse en el objeto tanto como sea posible y reducir el entorno innecesario, para mostrar mejor el objeto en la miniatura que aparecerá en la página del objeto.</div></li>
|
||||
</ul>
|
||||
12
template/localized/ssReminder_8.tpl.php
Normal file
12
template/localized/ssReminder_8.tpl.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php namespace Aowow\Template; ?>
|
||||
|
||||
<h2><img src="<?=$this->gStaticUrl; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">Напоминание</h2>
|
||||
Ваш скриншот <b class="q10">не</b> будет одобрен, если он не соответствует следующим рекомендациям.
|
||||
|
||||
<ul>
|
||||
<li><div>Обязательно увеличьте свои <u><b>настройки графики</b></u>, чтобы скриншот выглядел хорошо!</div></li>
|
||||
<li><div>Скриншоты из <u><b>просмотрщика моделей</b></u> удаляются сразу (это также касается выбора персонажа).</div></li>
|
||||
<li><div>Не включайте <u><b>текст на экране</b></u> и <u><b>круг выделения</b></u> NPC.</div></li>
|
||||
<li><div>Не включайте никакой <u><b>интерфейс пользователя</b></u> в скриншот, если это возможно.</div></li>
|
||||
<li><div>Используйте <u><b>инструмент обрезки скриншотов</b></u>, чтобы максимально сфокусироваться на предмете и уменьшить ненужное окружение, чтобы лучше показать предмет на миниатюре, которая будет на странице предмета.</div></li>
|
||||
</ul>
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
<?php namespace Aowow; ?>
|
||||
|
||||
<?php $this->brick('header'); ?>
|
||||
<?php
|
||||
namespace Aowow\Template;
|
||||
|
||||
$this->brick('header');
|
||||
?>
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
|
@ -12,7 +13,7 @@ $this->brick('announcement');
|
|||
$this->brick('pageTemplate');
|
||||
?>
|
||||
<div class="text">
|
||||
<h1><?=$this->name; ?></h1>
|
||||
<h1><?=$this->h1; ?></h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
|
|
@ -24,13 +25,7 @@ $this->brick('pageTemplate');
|
|||
<td>Page: </td>
|
||||
<td>
|
||||
<select id="pagetype">
|
||||
<?php
|
||||
foreach (Type::getFileStringsFor() as $i => $str):
|
||||
if (Lang::game($str) && Type::checkClassAttrib($i, 'contribute', CONTRIBUTE_SS)):
|
||||
echo " <option value=\"".$i."\">".Util::ucFirst(Lang::game($str))."</option>\n";
|
||||
endif;
|
||||
endforeach;
|
||||
?>
|
||||
<?=$this->makeOptionsList($this->pageTypes, null, 32); ?>
|
||||
</select>
|
||||
</td>
|
||||
<td>#<input type="number" size="6" id="pagetypeid"></td>
|
||||
|
|
@ -42,20 +37,20 @@ endforeach;
|
|||
<thead><tr><th style="width:135px;"><div>Menu</div></th><th style="width:400px;">Pages</th><th>Screenshots: <span id="screenshotTotal"></span></th></tr></thead>
|
||||
<tbody><tr>
|
||||
<td id="menu-container" style="vertical-align: top;">
|
||||
<div id="show-all-pages"><?=($this->ssNFound ? ' – <a href="?admin=screenshots&all">Show All</a> ('.$this->ssNFound.')' : null); ?></div>
|
||||
<div id="show-all-pages"><?=($this->ssNFound ? ' – <a href="?admin=screenshots&all">Show All</a> ('.$this->ssNFound.')' : ''); ?></div>
|
||||
<h4>Mass Select</h4>
|
||||
– <a href="#" onClick="ssm_MassSelect(1);">Select All</a><br>
|
||||
– <a href="#" onClick="ssm_MassSelect(0);">Deselect All</a><br>
|
||||
– <a href="#" onClick="ssm_MassSelect(-1);">Toggle Selection</a><br>
|
||||
– <a href="#" onClick="ssm_MassSelect(2);">Select All Pending</a><br>
|
||||
– <a href="#" onClick="ssm_MassSelect(5);">Select All Unique</a><br>
|
||||
– <a href="#" onClick="ssm_MassSelect(3);">Select All Approved</a><br>
|
||||
– <a href="#" onClick="ssm_MassSelect(4);">Select All Sticky</a><br>
|
||||
– <a href="#" onClick="ssm_MassSelect(1);">Select All</a><br />
|
||||
– <a href="#" onClick="ssm_MassSelect(0);">Deselect All</a><br />
|
||||
– <a href="#" onClick="ssm_MassSelect(-1);">Toggle Selection</a><br />
|
||||
– <a href="#" onClick="ssm_MassSelect(2);">Select All Pending</a><br />
|
||||
– <a href="#" onClick="ssm_MassSelect(5);">Select All Unique</a><br />
|
||||
– <a href="#" onClick="ssm_MassSelect(3);">Select All Approved</a><br />
|
||||
– <a href="#" onClick="ssm_MassSelect(4);">Select All Sticky</a><br />
|
||||
<div id="withselected" style="display:none;">
|
||||
<h4>Mass Action <b>(0)</b></h4>
|
||||
– <a href="#" id="massapprove">Approve All</a><br>
|
||||
– <a href="#" id="massdelete">Delete All</a><br>
|
||||
– <a href="#" id="masssticky">Sticky All</a><br>
|
||||
– <a href="#" id="massapprove">Approve All</a><br />
|
||||
– <a href="#" id="massdelete">Delete All</a><br />
|
||||
– <a href="#" id="masssticky">Sticky All</a><br />
|
||||
</div>
|
||||
</td>
|
||||
<td id="pages-container" style="vertical-align: top;"></td>
|
||||
|
|
@ -124,10 +119,10 @@ if ($this->getAll):
|
|||
echo " var ss_getAll = true;\n";
|
||||
endif;
|
||||
if ($this->ssPages):
|
||||
echo " var ssm_screenshotPages = ".Util::toJSON($this->ssPages).";\n";
|
||||
echo " var ssm_screenshotPages = ".$this->json($this->ssPages).";\n";
|
||||
echo " ssm_UpdatePages();\n";
|
||||
elseif ($this->ssData):
|
||||
echo " var ssm_screenshotData = ".Util::toJSON($this->ssData).";\n";
|
||||
echo " var ssm_screenshotData = ".$this->json($this->ssData).";\n";
|
||||
echo " ssm_UpdateList();\n";
|
||||
endif;
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
<?php namespace Aowow; ?>
|
||||
<?php
|
||||
namespace Aowow\Template;
|
||||
|
||||
<?php $this->brick('header'); ?>
|
||||
use \Aowow\Lang;
|
||||
|
||||
$this->brick('header');
|
||||
?>
|
||||
<div class="main" id="main">
|
||||
<div class="main-precontents" id="main-precontents"></div>
|
||||
<div class="main-contents" id="main-contents">
|
||||
|
|
@ -15,12 +18,12 @@ $this->brick('infobox');
|
|||
|
||||
?>
|
||||
<div class="text">
|
||||
<h1><?=$this->name; ?></h1>
|
||||
<h1><?=$this->h1; ?></h1>
|
||||
|
||||
<span><?=Lang::screenshot('cropHint'); ?></span>
|
||||
<div class="pad"></div>
|
||||
<div id="ss-container"></div><script type="text/javascript">//<![CDATA[
|
||||
var myCropper = new Cropper(<?=Util::toJSON($this->cropper); ?>);
|
||||
var myCropper = new Cropper(<?=$this->json($this->cropper); ?>);
|
||||
//]]></script>
|
||||
|
||||
<div class="pad"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue