Skip to content

Commit

Permalink
Merge pull request #5 from issuu/add-show-detected-links
Browse files Browse the repository at this point in the history
Add show detected links
  • Loading branch information
augustovicente authored May 9, 2024
2 parents d2c7af0 + 92de1a3 commit d3ac4a9
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 4 deletions.
6 changes: 3 additions & 3 deletions issuu-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
Plugin Name: Issuu Panel
Plugin URI: https://github.com/issuu/issuu-panel
Description: Admin panel for Issuu. You can upload your documents, create folders and embed documents in posts.
Version: 2.0.0
Version: 2.0.1
Author: Pedro Marcelo and Issuu
Author URI: https://issuu.com
License: GPL3
*/

if (defined('ISSUU_PANEL_VERSION'))
{
switch (version_compare(ISSUU_PANEL_VERSION, '2.0.0')) {
switch (version_compare(ISSUU_PANEL_VERSION, '2.0.1')) {
case -1:
wp_die("A lower version of Issuu Panel plugin is already installed");
break;
Expand All @@ -30,7 +30,7 @@
|--------------------------------------
*/

define('ISSUU_PANEL_VERSION', '2.0.0');
define('ISSUU_PANEL_VERSION', '2.0.1');
define('ISSUU_PANEL_DIR', plugin_dir_path(__FILE__));
define('ISSUU_PANEL_URL', plugin_dir_url(__FILE__));
define('ISSUU_PANEL_PREFIX', 'issuu_painel_');
Expand Down
3 changes: 3 additions & 0 deletions lang/issuu-panel-domain-lang-pl_PL.po
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ msgstr "Zezwól na komentowanie"
msgid "Allow file download"
msgstr "Zezwól na pobieranie"

msgid "Show detected links"
msgstr "Pokaż wykryte linki"

msgid "Access"
msgstr "Dostęp"

Expand Down
3 changes: 3 additions & 0 deletions lang/issuu-panel-domain-lang-pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ msgstr "Permitir comentários"
msgid "Allow file download"
msgstr "Permitir download do arquivo"

msgid "Show detected links"
msgstr "Mostrar links detectados"

msgid "Access"
msgstr "Acesso"

Expand Down
3 changes: 3 additions & 0 deletions lang/issuu-panel-domain-lang-sv_SE.po
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ msgstr "Tillåt kommentarer"
msgid "Allow file download"
msgstr "Tillåt att fil kan laddas ner"

msgid "Show detected links"
msgstr "Visa upptäckta länkar"

msgid "Access"
msgstr "Behörighet"

Expand Down
9 changes: 8 additions & 1 deletion menu/document/forms/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@
<tr>
<th><label for="downloadable"><?php the_issuu_message('Allow file download'); ?></label></th>
<td>
<input type="checkbox" name="downloadable" id="downloadable" value="true"
<input type="checkbox" name="downloadable" id="downloadable" value="<?php echo ($doc[$slug]->downloadable == true)? 'true' : 'false'; ?>"
<?php echo ($doc[$slug]->downloadable == true)? 'checked' : ''; ?>>
</td>
</tr>
<tr>
<th><label for="showDetectedLinks"><?php the_issuu_message('Show detected links'); ?></label></th>
<td>
<input type="checkbox" name="showDetectedLinks" id="showDetectedLinks" value="<?php echo ($doc[$slug]->showDetectedLinks == true)? 'true' : 'false'; ?>"
<?php echo ($doc[$slug]->showDetectedLinks == true)? 'checked' : ''; ?>>
</td>
</tr>
<tr>
<th><label><?php the_issuu_message('Access'); ?></label></th>
<td>
Expand Down
4 changes: 4 additions & 0 deletions menu/document/forms/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
<th><label for="downloadable"><?php the_issuu_message('Allow file download'); ?></label></th>
<td><input type="checkbox" name="downloadable" id="downloadable" value="true"></td>
</tr>
<tr>
<th><label for="showDetectedLinks"><?php the_issuu_message('Show detected links'); ?></label></th>
<td><input type="checkbox" name="showDetectedLinks" id="showDetectedLinks" value="true"></td>
</tr>
<tr>
<th><label><?php the_issuu_message('Access'); ?></label></th>
<td>
Expand Down
4 changes: 4 additions & 0 deletions menu/document/forms/url-upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
<th><label for="downloadable"><?php the_issuu_message('Allow file download'); ?></label></th>
<td><input type="checkbox" name="downloadable" id="downloadable" value="true"></td>
</tr>
<tr>
<th><label for="showDetectedLinks"><?php the_issuu_message('Show detected links'); ?></label></th>
<td><input type="checkbox" name="showDetectedLinks" id="showDetectedLinks" value="true"></td>
</tr>
<tr>
<th><label><?php the_issuu_message('Access'); ?></label></th>
<td>
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ You can send the translation by e-mail. Send for [email protected]

== Changelog ==

= 2.0.1 =
* Updated: allow customizing show detected links option while creating and editing documents

= 2.0.0 =
* Updated: Improves for API usage

Expand Down

0 comments on commit d3ac4a9

Please sign in to comment.