/** * drone_widget_posts_list_on_setup_options action * * @internal action: drone_widget_posts_list_on_setup_options * @since 1.0 * * @param object $options * @param object $widget */ public function actionWidgetPostsListOnSetupOptions($options, $widget) { $options->addOption('select', 'orientation', 'scrollable', __('Orientation', 'everything'), '', array('options' => array('vertical' => __('Vertical', 'everything'), 'scrollable' => __('Scrollable', 'everything'))), 'count'); $options->addOption('boolean', 'thumbnail', true, '', '', array('caption' => __('Show thumbnail', 'everything')), 'author'); $options->addOption('boolean', 'date', true, '', '', array('caption' => __('Show date', 'everything')), 'author'); $options->deleteChild('author'); }
/** * Method to delete the rule conditions. * * @access public * @param string condId * @return true|false Return true if successfull, otherwise false. */ public function deleteChild($objCond) { return $this->_objChild->deleteChild($this->_id, $objCond->_id); }