Download all files FTP
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
class DrawAttention_URL_Action extends DrawAttention_Action {
|
||||
function add_action_fields( $group_details ) {
|
||||
if ( ! $this->is_active() ) {
|
||||
return $group_details;
|
||||
}
|
||||
|
||||
$group_details['fields'][0]['fields']['action']['options']['url'] = __( 'Go to URL', 'draw-attention' );
|
||||
|
||||
$group_details['fields'][0]['fields']['action-url-url'] = array(
|
||||
'name' => __('URL', 'draw-attention' ),
|
||||
'id' => 'action-url-url',
|
||||
'type' => 'text_url',
|
||||
'attributes' => array(
|
||||
'placeholder' => site_url( 'custom/url/' ),
|
||||
'data-action' => 'url',
|
||||
),
|
||||
);
|
||||
|
||||
$group_details['fields'][0]['fields']['action-url-open-in-window'] = array(
|
||||
'name' => __('Open in New Window', 'draw-attention' ),
|
||||
'id' => 'action-url-open-in-window',
|
||||
'type' => 'checkbox',
|
||||
'attributes' => array(
|
||||
'data-action' => 'url',
|
||||
),
|
||||
);
|
||||
|
||||
return $group_details;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user