/** * Front-end display of widget. * * @param array $args Widget arguments. * @param array $instance Saved values from database. */ public function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); echo $before_widget; if (!empty($title)) { echo $before_title . $title . $after_title; } $timeline = new TwitterTimeline($instance); $timeline->show(); echo $after_widget; }
<?php // Copyright SQCRM. For licensing, reuse, modification and distribution see license.txt /** * @author Abhik Chakraborty */ $idmodule = (int) $_GET["idmodule"]; $sqcrm_record_id = (int) $_GET["sqrecord"]; $module_name = $modules_info[$idmodule]['name']; $do_module_object = new $module_name(); $pk = $do_module_object->getPrimaryKey(); $do_twitter_timeline = new TwitterTimeline(); $twitter_handlers = $do_twitter_timeline->get_twitter_handler($sqcrm_record_id, $idmodule, $pk); include_once 'view/plugin_view.php';