Skip to content

Commit f9ff430

Browse files
authored
Merge pull request #323 from codepress/release/4.3.2
Release/4.3.2
2 parents 8f79fee + 7850ce7 commit f9ff430

File tree

14 files changed

+94
-13
lines changed

14 files changed

+94
-13
lines changed

assets/js/admin-page-columns.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.

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/Column/Media/Album.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace AC\Column\Media;
4+
5+
/**
6+
* @since 4.3.2
7+
*/
8+
class Album extends Meta {
9+
10+
public function __construct() {
11+
parent::__construct();
12+
13+
$this->set_type( 'column-meta_album' );
14+
$this->set_label( __( 'Album', 'codepress-admin-columns' ) );
15+
}
16+
17+
protected function get_sub_key() {
18+
return 'album';
19+
}
20+
21+
public function get_value( $id ) {
22+
$meta = $this->get_raw_value( $id );
23+
24+
return empty( $meta[ $this->get_sub_key() ] )
25+
? $this->get_empty_char()
26+
: $meta[ $this->get_sub_key() ];
27+
}
28+
29+
}

classes/Column/Media/Artist.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace AC\Column\Media;
4+
5+
/**
6+
* @since 4.3.2
7+
*/
8+
class Artist extends Meta {
9+
10+
public function __construct() {
11+
parent::__construct();
12+
13+
$this->set_type( 'column-meta_artist' );
14+
$this->set_label( __( 'Artist', 'codepress-admin-columns' ) );
15+
}
16+
17+
protected function get_sub_key() {
18+
return 'artist';
19+
}
20+
21+
public function get_value( $id ) {
22+
$meta = $this->get_raw_value( $id );
23+
24+
return empty( $meta[ $this->get_sub_key() ] )
25+
? $this->get_empty_char()
26+
: $meta[ $this->get_sub_key() ];
27+
}
28+
29+
}

classes/Form/Element/Checkbox.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public function render() {
3636
return false;
3737
}
3838

39-
$template = '<div class="%s-labels %s">%s</div>';
39+
$template = '<div class="%s">%s</div>';
4040

41-
return sprintf( $template, $this->get_type(), implode( ' ', $this->get_classes() ), implode( "\n", $elements ) );
41+
return sprintf( $template, implode( ' ', $this->get_classes() ), implode( "\n", $elements ) );
4242
}
4343

4444
private function get_elements() {

classes/Table/Screen.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,15 @@ public function screen_options( $html ) {
462462

463463
<fieldset class='acp-screen-option-prefs'>
464464
<legend><?= __( 'Admin Columns', 'codepress-admin-columns' ); ?></legend>
465+
<div class="acp-so-container">
465466
<?php
466467

467468
foreach ( $this->screen_options as $option ) {
468469
echo $option->render();
469470
}
470471

471472
?>
473+
</div>
472474
</fieldset>
473475

474476
<?php

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.3.1
4+
Version: 4.3.2
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
@@ -36,7 +36,7 @@
3636
}
3737

3838
define( 'AC_FILE', __FILE__ );
39-
define( 'AC_VERSION', '4.3.1' );
39+
define( 'AC_VERSION', '4.3.2' );
4040

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

2 Bytes
Binary file not shown.

languages/codepress-admin-columns-pl_PL.po

Lines changed: 3 additions & 3 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: 2018-11-13 17:50:42+0000\n"
5+
"PO-Revision-Date: 2021-06-14 13:45:04+0000\n"
66
"MIME-Version: 1.0\n"
77
"Content-Type: text/plain; charset=UTF-8\n"
88
"Content-Transfer-Encoding: 8bit\n"
@@ -1599,7 +1599,7 @@ msgstr "szerokość"
15991599
#: classes/Settings/Column/CustomFieldType.php:173
16001600
#: classes/Settings/Column/Image.php:112 classes/ColumnGroups.php:16
16011601
msgid "Custom"
1602-
msgstr "Własne"
1602+
msgstr "Własny"
16031603

16041604
#: classes/Settings/Column/DateTimeFormat.php:62
16051605
msgid "This will determine how the date will be displayed."
@@ -1633,7 +1633,7 @@ msgstr "Zarejestrowany"
16331633
#: classes/Settings/Column/CustomFieldType.php:101
16341634
#: classes/ListScreenGroups.php:13
16351635
msgid "Post Type"
1636-
msgstr "Typ wpisu"
1636+
msgstr "Typ treści"
16371637

16381638
#: classes/Column/User/PostCount.php:15
16391639
msgid "Post Count"

languages/codepress-admin-columns.pot

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,10 +956,18 @@ msgstr ""
956956
msgid "Word Count"
957957
msgstr ""
958958

959+
#: classes/Column/Media/Album.php:14
960+
msgid "Album"
961+
msgstr ""
962+
959963
#: classes/Column/Media/AlternateText.php:14
960964
msgid "Alternative Text"
961965
msgstr ""
962966

967+
#: classes/Column/Media/Artist.php:14
968+
msgid "Artist"
969+
msgstr ""
970+
963971
#: classes/Column/Media/AvailableSizes.php:17
964972
msgid "Available Sizes"
965973
msgstr ""

0 commit comments

Comments
 (0)