Comment
8 years ago
Link
8 years ago
Media
8 years ago
Post
8 years ago
User
8 years ago
Actions.php
8 years ago
AjaxValue.php
8 years ago
CustomField.php
8 years ago
Menu.php
8 years ago
Meta.php
8 years ago
Placeholder.php
8 years ago
RelationInterface.php
8 years ago
Taxonomy.php
8 years ago
WooCommercePlaceholder.php
8 years ago
Actions.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * Base class for columns containing action links for items. |
| 9 | * |
| 10 | * @since 2.2.6 |
| 11 | */ |
| 12 | class AC_Column_Actions extends AC_Column { |
| 13 | |
| 14 | /** |
| 15 | * @since 2.2.6 |
| 16 | */ |
| 17 | public function __construct() { |
| 18 | $this->set_type( 'column-actions' ); |
| 19 | $this->set_label( __( 'Actions', 'codepress-admin-columns' ) ); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * @since 2.2.6 |
| 24 | */ |
| 25 | public function get_value( $id ) { |
| 26 | if ( $this->get_option( 'use_icons' ) ) { |
| 27 | return '<span class="cpac_use_icons"></span>'; |
| 28 | } |
| 29 | |
| 30 | return ''; |
| 31 | } |
| 32 | |
| 33 | public function register_settings() { |
| 34 | $this->add_setting( new AC_Settings_Column_ActionIcons( $this ) ); |
| 35 | } |
| 36 | |
| 37 | } |
| 38 |