65 lines
1.2 KiB
PHP
65 lines
1.2 KiB
PHP
<?php
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
class UserFeedback_Survey_Template_Content_Engagement extends UserFeedback_Survey_Template {
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
protected $template_key = 'content-engagement';
|
|
|
|
protected $categories = array(
|
|
'engagement'
|
|
);
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
protected $is_pro = false;
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function get_name() {
|
|
return __( 'Content Engagement', 'userfeedback-lite' );
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function get_description() {
|
|
return array(
|
|
'title' => __( 'Measure what content is engaging, and what content to create.', 'userfeedback-lite' )
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*
|
|
* @return array
|
|
*/
|
|
public function get_config() {
|
|
return array(
|
|
'questions' => array(
|
|
array(
|
|
'type' => 'radio-button',
|
|
'title' => __( 'Did you find this content engaging?', 'userfeedback-lite' ),
|
|
'config' => array(
|
|
'options' => array(
|
|
__( 'Yes', 'userfeedback-lite' ),
|
|
__( 'No', 'userfeedback-lite' ),
|
|
),
|
|
),
|
|
),
|
|
array(
|
|
'type' => 'long-text',
|
|
'title' => __( 'What content would you like us to create?', 'userfeedback-lite' ),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|