<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/

return array(
  array(
    'title' => 'Poke - User Profile - Action Buttons',
    'description' => 'This widget displays Poke and all Actions that you have configured from the admin panel settings of this plugin. From this widget, users will be able to Poke and Send Action to the user whose profile is being viewed. Edit this widget to configure various settings. This widget should be placed on the Member Profile page.',
    'category' => 'Poke & Actions Plugin',
    'type' => 'widget',
    'name' => 'poke.button',
    'defaultParams' => array(
      'title' => '',
    ),
    'autoEdit' => true,
    'adminForm' => array(
      'elements' => array(
        array(
          'Select',
          'showIconText',
          array(
            'label' => 'Choose from below the details that you want to show in this widget.',
            'multiOptions' => array(
              "1" => "Only Icon",
              "2" => "Only Text",
              "3" => "Both Icon and Text",
            ),
          ),
        ),
      )
    )
  ),
  array(
    'title' => 'Poke - Response Button for Poke and Actions',
    'description' => 'This widget displays poke and actions logged in members have received from other members with the option to respond back the action to them.',
    'category' => 'Poke & Actions Plugin',
    'type' => 'widget',
    'name' => 'poke.back-button',
    'defaultParams' => array(
      'title' => '',
    ),
    'autoEdit' => true,
    'adminForm' => array(
      'elements' => array(
        array(
          'Select',
          'showType',
          array(
            'label' => 'Choose the View Type.',
            'multiOptions' => array(
              "1" => "Horizantal",
              "0" => "Vertical"
            ),
          ),
        ),
        array(
          'Text',
          'itemCount',
          array(
            'label' => 'Count (number of content to show)',
            'value' => 5,
            'validators' => array(
              array('Int', true),
              array('GreaterThan', true, array(0)),
            ),
          )
        ),
      )
    )
  ),
);
