Skip to content

Commit bdb5542

Browse files
authored
Merge pull request #418 from codepress/release/4.7.14
Release 4.7.14
2 parents 07ad494 + 77d1460 commit bdb5542

File tree

13 files changed

+119
-103
lines changed

13 files changed

+119
-103
lines changed

assets/js/table.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

classes/Helper/Html.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ public function get_ajax_modal_link(string $label, array $attributes = [], strin
180180
if (isset($attributes['download_link']) && $attributes['download_link']) {
181181
$attribute_markup[] = sprintf('data-modal-download-link="%s"', esc_url($attributes['download_link']));
182182
}
183+
if (isset($attributes['view_link']) && $attributes['view_link']) {
184+
$attribute_markup[] = sprintf('data-modal-view-link="%s"', esc_url($attributes['view_link']));
185+
}
183186
if (isset($attributes['class']) && $attributes['class']) {
184187
$attribute_markup[] = sprintf('data-modal-class="%s"', esc_attr($attributes['class']));
185188
}

classes/ListScreen.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,21 +509,21 @@ public function get_edit_link(): string
509509

510510
protected function set_meta_type(string $meta_type): void
511511
{
512-
_deprecated_function(__METHOD__, 'NEWVERSION');
512+
_deprecated_function(__METHOD__, '6.4');
513513

514514
$this->meta_type = $meta_type;
515515
}
516516

517517
public function deregister_column(string $column_name): void
518518
{
519-
_deprecated_function(__METHOD__, 'NEWVERSION');
519+
_deprecated_function(__METHOD__, '6.4');
520520

521521
unset($this->columns[$column_name]);
522522
}
523523

524524
public function set_layout_id(string $layout_id): void
525525
{
526-
_deprecated_function(__METHOD__, 'NEWVERSION', 'AC\ListScreen::set_id()');
526+
_deprecated_function(__METHOD__, '6.4', 'AC\ListScreen::set_id()');
527527

528528
if (ListScreenId::is_valid_id($layout_id)) {
529529
$this->id = new ListScreenId($layout_id);
@@ -532,7 +532,7 @@ public function set_layout_id(string $layout_id): void
532532

533533
protected function set_label(string $label): void
534534
{
535-
_deprecated_function(__METHOD__, 'NEWVERSION');
535+
_deprecated_function(__METHOD__, '6.4');
536536

537537
$this->label = $label;
538538
}

classes/Table/Screen.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ public function admin_scripts()
151151
'value_loading' => __('Loading...', 'codepress-admin-columns'),
152152
'edit' => __('Edit', 'codepress-admin-columns'),
153153
'download' => __('Download', 'codepress-admin-columns'),
154+
'view' => __('View', 'codepress-admin-columns'),
154155
]);
155156

156157
$script = new Asset\Script(

codepress-admin-columns.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/*
33
Plugin Name: Admin Columns
4-
Version: 4.7.13
4+
Version: 4.7.14
55
Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
66
Author: AdminColumns.com
77
Author URI: https://www.admincolumns.com
@@ -37,7 +37,7 @@
3737
}
3838

3939
define('AC_FILE', __FILE__);
40-
define('AC_VERSION', '4.7.13');
40+
define('AC_VERSION', '4.7.14');
4141

4242
require_once __DIR__ . '/classes/Dependencies.php';
4343

1 Byte
Binary file not shown.

languages/codepress-admin-columns-ro_RO.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the same license as the Plugins - Admin Columns - Stable (latest release) package.
33
msgid ""
44
msgstr ""
5-
"PO-Revision-Date: 2025-03-05 21:17:20+0000\n"
5+
"PO-Revision-Date: 2025-03-28 12:00:57+0000\n"
66
"MIME-Version: 1.0\n"
77
"Content-Type: text/plain; charset=UTF-8\n"
88
"Content-Transfer-Encoding: 8bit\n"
@@ -2199,7 +2199,7 @@ msgstr "Descriptor"
21992199

22002200
#: classes/Column/Post/Shortcodes.php:13
22012201
msgid "Shortcodes"
2202-
msgstr "Scurtcoduri"
2202+
msgstr "Scurt-coduri"
22032203

22042204
#: classes/Settings/Column/User.php:89
22052205
#: templates/admin/list-screen-settings-mockup.php:47

languages/codepress-admin-columns.pot

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Content-Transfer-Encoding: 8bit\n"
99
"Language-Team: Admin Columns <[email protected]>\n"
1010
"Last-Translator: Codepress <[email protected]\n"
11-
"POT-Creation-Date: 2025-03-19 12:14+0000\n"
11+
"POT-Creation-Date: 2025-04-30 08:27+0000\n"
1212
"X-Poedit-Basepath: ..\n"
1313
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
1414
"X-Poedit-SearchPath-0: .\n"
@@ -100,7 +100,7 @@ msgstr ""
100100
msgid "Get %s now"
101101
msgstr ""
102102

103-
#: classes/Check/Review.php:116, classes/Table/Screen.php:346, classes/Admin/MenuPageFactory/Menu.php:16, classes/Admin/MenuPageFactory/SubMenu.php:17
103+
#: classes/Check/Review.php:116, classes/Table/Screen.php:347, classes/Admin/MenuPageFactory/Menu.php:16, classes/Admin/MenuPageFactory/SubMenu.php:17
104104
msgid "Admin Columns"
105105
msgstr ""
106106

@@ -200,11 +200,11 @@ msgstr ""
200200
msgid "Default settings successfully restored."
201201
msgstr ""
202202

203-
#: classes/Helper/Html.php:495
203+
#: classes/Helper/Html.php:498
204204
msgid "%s more"
205205
msgstr ""
206206

207-
#: classes/Helper/Html.php:496
207+
#: classes/Helper/Html.php:499
208208
msgid "Hide"
209209
msgstr ""
210210

@@ -320,6 +320,10 @@ msgstr ""
320320
msgid "Edit"
321321
msgstr ""
322322

323+
#: classes/Table/Screen.php:154, templates/admin/edit-menu.php:27, classes/Column/Media/Preview.php:50, classes/Settings/Column/MediaLink.php:63
324+
msgid "View"
325+
msgstr ""
326+
323327
#: settings/translations/global.php:5
324328
msgid "Ok"
325329
msgstr ""
@@ -380,10 +384,6 @@ msgstr ""
380384
msgid "Select type"
381385
msgstr ""
382386

383-
#: templates/admin/edit-menu.php:27, classes/Column/Media/Preview.php:50, classes/Settings/Column/MediaLink.php:63
384-
msgid "View"
385-
msgstr ""
386-
387387
#: templates/admin/edit-submenu.php:10
388388
msgid "Table Views"
389389
msgstr ""

readme.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: admin, column, columns, table, tables
44
Requires at least: 4.7.3
55
Tested up to: 6.7.2
66
Requires PHP: 7.2
7-
Stable tag: 4.7.12
7+
Stable tag: 4.7.14
88
License: GPLv2
99
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1010

@@ -210,6 +210,11 @@ You can find a list of the available actions and filters (and examples on how to
210210

211211
== Changelog ==
212212

213+
= 4.7.14 =
214+
Release Date: April 30th, 2025
215+
216+
* [Improved] Column values with modals can now contain extra links
217+
213218
= 4.7.13 =
214219
Release Date: March 19th, 2025
215220

src/js/components/ValueModal.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
let title;
1919
let content;
2020
let editLink;
21+
let viewLink;
2122
let downloadLink;
2223
let source;
2324
let translation = getTableTranslation();
@@ -56,6 +57,7 @@
5657
content = `<span class="loading">${translation.value_loading}</span>`;
5758
editLink = item.editLink;
5859
downloadLink = item.downloadLink;
60+
viewLink = item.viewLink;
5961
if (source) {
6062
source.cancel();
6163
}
@@ -152,6 +154,9 @@
152154
{#if editLink }
153155
<a class="edit btn button" href="{editLink}">{translation.edit}</a>
154156
{/if}
157+
{#if viewLink }
158+
<a class="edit btn button" href="{viewLink}">{translation.view}</a>
159+
{/if}
155160
{#if downloadLink }
156161
<a class="edit btn button" href="{downloadLink}" download>{translation.download}</a>
157162
{/if}

0 commit comments

Comments
 (0)