Skip to content

Commit

Permalink
v1.6.1
Browse files Browse the repository at this point in the history
- Fixed Wrong language file loaded
- Changed Move CSS file to theme folder
- Changed Delete Twig macro in html template
  • Loading branch information
IMC-GER committed Oct 12, 2024
1 parent ff0b76b commit dc7f7bf
Show file tree
Hide file tree
Showing 42 changed files with 18 additions and 65 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ Go to "ACP" > "Extensions" > "External Links settings" and customize "External L

## Changelog

### v1.6.1 (12-10-2024)
- Fixed Wrong language file loaded
- Changed Move CSS file to theme folder
- Changed Delete Twig macro in html template

### v1.6.0 (04-10-2024)
- Fixed No storage of user data during registration if the board e-mail is deactivated
- Added Free selection of the Font Awesome icon for marking external links
Expand Down
2 changes: 1 addition & 1 deletion externallinks_version.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"stable": {
"1.6": {
"current": "1.6.0",
"current": "1.6.1",
"announcement": "https://www.phpbb.de/community/viewtopic.php?t=245923",
"download": "https://github.com/IMC-GER/phpBB-External-Links/tags",
"eol": null,
Expand Down
5 changes: 5 additions & 0 deletions imcger/externallinks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ Go to "ACP" > "Extensions" > "External Links settings" and customize "External L

## Changelog

### v1.6.1 (12-10-2024)
- Fixed Wrong language file loaded
- Changed Move CSS file to theme folder
- Changed Delete Twig macro in html template

### v1.6.0 (04-10-2024)
- Fixed No storage of user data during registration if the board e-mail is deactivated
- Added Free selection of the Font Awesome icon for marking external links
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/acp/main_info.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/acp/main_module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
5 changes: 2 additions & 3 deletions imcger/externallinks/adm/style/acp_ext_link_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*
#}

{% INCLUDECSS '@imcger_externallinks/acp_toggle.css' %}
{% INCLUDECSS '@imcger_externallinks/acp_externallinks.css' %}
{% include 'overall_header.html' %}
{% import '@imcger_externallinks/twig_macros.html' as common %}
{% set switch_type = TOGGLECTRL_TYPE ?? 'toggle' %}
Expand Down Expand Up @@ -120,6 +122,3 @@ <h1>{{ lang('EXT_LINK_TITLE') }}</h1>
</p>

{% include 'overall_footer.html' %}

{% INCLUDECSS '@imcger_externallinks/acp_toggle.css' %}
{% INCLUDECSS '@imcger_externallinks/acp_externallinks.css' %}
15 changes: 2 additions & 13 deletions imcger/externallinks/adm/style/acp_ext_link_user_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*
#}

{% INCLUDECSS '@imcger_externallinks/acp_toggle.css' %}
{% INCLUDECSS '@imcger_externallinks/acp_externallinks.css' %}
{% include 'overall_header.html' %}
{% import '@imcger_externallinks/twig_macros.html' as common %}
{% set switch_type = TOGGLECTRL_TYPE ?? 'toggle' %}
Expand Down Expand Up @@ -80,16 +82,3 @@ <h1>{{ lang('EXT_LINK_TITLE') }}</h1>
</p>

{% include 'overall_footer.html' %}

{% INCLUDECSS '@imcger_externallinks/acp_toggle.css' %}
{% INCLUDECSS '@imcger_externallinks/acp_externallinks.css' %}

{% macro switch(name, checked = false, type = 'toggle') -%}
{% if type == 'toggle' || type == 'checkbox' -%}
<input type="checkbox"{{ type == 'toggle' ? ' class="toggle"' }} name="{{ name }}" value="1"{{ checked ? ' checked' }}>
{%- elseif type == 'radio' -%}
<label><input type="radio" class="radio" name="{{ name }}" value="1"{{ checked ? ' checked' }}> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="{{ name }}" value="0"{{ !checked ? ' checked' }}> {{ lang('NO') }}</label>
{%- endif %}
{%- endmacro %}

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*
#}

{% INCLUDECSS '@imcger_externallinks/acp_externallinks.css' %}
{% include 'overall_header.html' %}

<h1>{{ lang('EXT_LINK_TITLE') }}</h1>
Expand All @@ -31,5 +32,3 @@ <h1>{{ MESSAGE_TITLE }}</h1>
</form>

{% include 'overall_footer.html' %}

{% INCLUDECSS '@imcger_externallinks/acp_externallinks.css' %}
1 change: 0 additions & 1 deletion imcger/externallinks/adm/style/acp_externallinks.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
4 changes: 2 additions & 2 deletions imcger/externallinks/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"type": "phpbb-extension",
"description": "With this extension it is possible to influence the display of links and pictures. Some settings are available in the User Control Panel. This allows the user to decide for himself what is more important to him. Secure data transfer, comfortable display or fast loading times of the forum page. Open external links in a new tab/window.",
"homepage": "https://github.com/IMC-GER/phpBB-External-Links",
"version": "1.6.0",
"time": "2024-10-04",
"version": "1.6.1",
"time": "2024-10-12",
"license": "GPL-2.0-only",
"authors": [{
"name": "Thorsten Ahlers",
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/controller/admin_controller.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
3 changes: 0 additions & 3 deletions imcger/externallinks/event/main_listener.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down Expand Up @@ -118,8 +117,6 @@ public function set_template_vars()
'EXTLINK_SYMBOL' => $this->config['imcger_ext_link_symbol'],
'S_EXTLINK_SYMBOL_POS' => $this->config['imcger_ext_link_symbol_pos'],
]);

$this->language->add_lang('recenttopics', 'paybas/recenttopics');
}

/**
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/event/ucp_listener.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/ext.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/language/de/common.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/language/de/externallinks_lang.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/language/de/ucp_externallinks.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/language/de_x_sie/common.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/language/en/common.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/language/en/externallinks_lang.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/language/en/ucp_externallinks.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/migrations/add_ucp_settings.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/migrations/install_acp_module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/migrations/permission.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/migrations/up01_acp_module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/migrations/up02_ucp_settings.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/migrations/up03_permission.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/migrations/up04_acp_module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/migrations/up05_acp_module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/migrations/up06_acp_module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
1 change: 0 additions & 1 deletion imcger/externallinks/migrations/up07_acp_module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* External Links
* An extension for the phpBB Forum Software package.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,3 @@
</dd>
</dl>
<hr>

{% macro switch(name, checked = false, type = 'toggle') -%}
{% if type == 'toggle' || type == 'checkbox' -%}
<input type="checkbox"{{ type == 'toggle' ? ' class="toggle"' }} name="{{ name }}" value="1"{{ checked ? ' checked' }}>
{%- elseif type == 'radio' -%}
<label><input type="radio" class="radio" name="{{ name }}" value="1"{{ checked ? ' checked' }}> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="{{ name }}" value="0"{{ !checked ? ' checked' }}> {{ lang('NO') }}</label>
{%- endif %}
{%- endmacro %}

0 comments on commit dc7f7bf

Please sign in to comment.