diff --git a/lib.php b/lib.php index 75d9132..4faeeb8 100644 --- a/lib.php +++ b/lib.php @@ -53,7 +53,7 @@ public static function get_description() { return get_string('description', 'blocktype.linkedinprofile'); } - public static function get_css_icon() { + public static function get_css_icon($blocktypename) { return 'linkedin-square'; } @@ -61,7 +61,7 @@ public static function get_categories() { return array('internal'); } - public static function render_instance(BlockInstance $instance, $editing=false) { + public static function render_instance(BlockInstance $instance, $editing=false, $versioning=false) { $configdata = $instance->get('configdata'); $type = (isset($configdata['linkedindata']) ? $configdata['linkedindata'] : 'basicprofile'); $owner = $instance->get_view()->get('owner'); @@ -76,7 +76,7 @@ public static function has_instance_config() { return true; } - public static function instance_config_form($instance) { + public static function instance_config_form(BlockInstance $instance) { global $USER, $THEME; $configdata = $instance->get('configdata'); $data = get_record('usr_account_preference', 'usr', $USER->get('id'), 'field', 'linkedinprofile'); @@ -205,7 +205,7 @@ public static function get_config_options() { ); } - public static function save_config_options($form, $values) { + public static function save_config_options(Pieform $form, $values) { set_config_plugin('blocktype', 'linkedinprofile', 'apikey', $values['apikey']); set_config_plugin('blocktype', 'linkedinprofile', 'secretkey', $values['secretkey']); } diff --git a/version.php b/version.php index a47d98c..a8e60fd 100644 --- a/version.php +++ b/version.php @@ -12,5 +12,5 @@ defined('INTERNAL') || die(); $config = new StdClass; -$config->version = 2016122200; -$config->release = '16.12.0'; +$config->version = 2019061900; +$config->release = '18.10.0';