From d99a1253721f7a06bc4ac963f5fd24bccf3aa97e Mon Sep 17 00:00:00 2001 From: Matheus Garcia Date: Wed, 14 Aug 2019 10:53:41 -0300 Subject: [PATCH] =?UTF-8?q?Parametriza=C3=A7=C3=A3o=20para=20exibir=20curs?= =?UTF-8?q?o=20em=20destaque=20na=20p=C3=A1gina=20inicial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/frontpage_ilb.php | 14 ++++- pix/engitec.jpg | Bin 0 -> 23724 bytes settings.php | 88 +++++++------------------------ templates/frontpage_ilb.mustache | 12 +++++ version.php | 2 +- 5 files changed, 44 insertions(+), 72 deletions(-) create mode 100644 pix/engitec.jpg diff --git a/layout/frontpage_ilb.php b/layout/frontpage_ilb.php index 27537f5..2c2360c 100644 --- a/layout/frontpage_ilb.php +++ b/layout/frontpage_ilb.php @@ -28,6 +28,12 @@ require_once($CFG->libdir . '/../config.php'); $bodyattributes = $OUTPUT->body_attributes([]); + +$habilitar_destaque = $this->page->theme->settings->habilitar_destaque; +$curso_destaque = $this->page->theme->settings->curso_destaque; +$imagem_destaque = $this->page->theme->settings->imagem_destaque; + + if (isloggedin()) { user_preference_allow_ajax_update('drawer-open-nav', PARAM_ALPHA); require_once($CFG->libdir . '/behat/lib.php'); @@ -78,6 +84,9 @@ if (isloggedin()) { 'moodle_url' => $CFG->wwwroot, 'userpictureurl' => $user_picture_url, 'userprofileurl' => $user_profile_url, + 'habilitar_destaque' => $habilitar_destaque, + 'imagem_destaque' => $imagem_destaque, + 'curso_destaque' => $curso_destaque ]; @@ -100,7 +109,10 @@ if (isloggedin()) { 'output' => $OUTPUT, 'bodyattributes' => $bodyattributes, 'moodle_url' => $CFG->wwwroot, - 'logintoken' => s(\core\session\manager::get_login_token()) + 'logintoken' => s(\core\session\manager::get_login_token()), + 'habilitar_destaque' => $habilitar_destaque, + 'imagem_destaque' => $imagem_destaque, + 'curso_destaque' => $curso_destaque ]; } diff --git a/pix/engitec.jpg b/pix/engitec.jpg new file mode 100644 index 0000000000000000000000000000000000000000..24ab3acf05ed2dc662a1e19190179995a3a568d7 GIT binary patch literal 23724 zcmd42by$>J_b`0J07EDU(vr?lB7%f810pRTAT1#s(jv_eB8qeh(vnglrF4e@5(3gg zH$x9Kd^dW|dCv3uuJ60v_x)tE&s=e0D`RMr!a79^ONglw#!2t}wf57=T zAPW!@5I_m=387FZ5fLHrCCbZ}NJuWxQCuaXWTal^ah%S*_qP={XmYQdXt=z{Vpdr zFTbGh{l|*Rs_L3gpKDv&+B-VCx_iD13=aJq9vS^LhMJw5UszmPURmAV+1=YeIK&(s zU+{$kK>o1x4`=^_FLIDCTs%Ao9`u4Q99$3Z10l!5XT428A)^6(>~i%we;^^{-I%QM z79yB{CYs93wV#+8E{I~=zF_S)Xa8%A1^pj!_77wK;cE=I1i=9h4?+$gfL%Mz>;~Cy z#GKgy|F?aFVCbomTk-CKmF(YG-8kO7TcCpmxphev-D)sYI|pJl&w>3V;a$63BVpx+ zpPLa?&)IG7Zrz|$00O*YR=Gt~>!wu%lv;;t9%^ORsv??e53=Czc@ps>z6gAq;bNHy z437)C9Zh)n{&?wml?hpA>=fLABrRL-O#+mzr5lflOk*r1)yZO?tz~S(=5fD)fmCq8 z+6X%d;iVAiTk`=0WOtSJmmq~L&9hbe>Y-zs3Fd4Qukrft<>u^Iz_TNjSOTLZD^z

Azk1mZ(s?v@St!c-WzI`+p;U(v^KTwxj+9Zu zuavnxOf{S=-Cku^DTE5$8JWHph97%IL?9UB>@3VcA-&S~=wPkGcI6x(tCuSdV`S|ezVB9#@QWQT->($y(lZm_C)z2Rr6&9lwBeFx zmE1O1>fwFNl&XMQ?5v=OHNLjYT7X`FIxN7gyI{Pnw$-T5=Gfs&pVKv!8~o(uH1P61 z+O^7W8ef7Z|Vr=wi`otO{! z{zD7;p(mLXh%4MmN^H;8@4ohCb9P;++eG`X+n$f=N-Q|SOv zi7w7UP296qMTjV{-`tJo_9%f^X*I2VcCbQ+_=cg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20R2()KR^JZ|8GG5DT>4$x=0rw zDDsbq0YQIR%no*_nGC?r|4%c{Z+|R?>~j0Nn<( zs43)MQFL;r1jq~H@6Jfulltree) { - $settings = new theme_ilb_admin_settingspage_tabs('themesettingilb', get_string('configtitle', 'theme_ilb')); - $page = new admin_settingpage('theme_ilb_general', get_string('generalsettings', 'theme_ilb')); - - // Preset. - $name = 'theme_ilb/preset'; - $title = get_string('preset', 'theme_ilb'); - $description = get_string('preset_desc', 'theme_ilb'); - $default = 'default.scss'; - - $context = context_system::instance(); - $fs = get_file_storage(); - $files = $fs->get_area_files($context->id, 'theme_ilb', 'preset', 0, 'itemid, filepath, filename', false); - - $choices = []; - foreach ($files as $file) { - $choices[$file->get_filename()] = $file->get_filename(); - } - // These are the built in presets. - $choices['default.scss'] = 'default.scss'; - $choices['plain.scss'] = 'plain.scss'; - - $setting = new admin_setting_configselect($name, $title, $description, $default, $choices); - $setting->set_updatedcallback('theme_reset_all_caches'); - $page->add($setting); - - // Preset files setting. - $name = 'theme_ilb/presetfiles'; - $title = get_string('presetfiles','theme_ilb'); - $description = get_string('presetfiles_desc', 'theme_ilb'); - - $setting = new admin_setting_configstoredfile($name, $title, $description, 'preset', 0, - array('maxfiles' => 20, 'accepted_types' => array('.scss'))); - $page->add($setting); - - // Background image setting. - $name = 'theme_ilb/backgroundimage'; - $title = get_string('backgroundimage', 'theme_ilb'); - $description = get_string('backgroundimage_desc', 'theme_ilb'); - $setting = new admin_setting_configstoredfile($name, $title, $description, 'backgroundimage'); - $setting->set_updatedcallback('theme_reset_all_caches'); - $page->add($setting); - - // Variable $body-color. - // We use an empty default value because the default colour should come from the preset. - $name = 'theme_ilb/brandcolor'; - $title = get_string('brandcolor', 'theme_ilb'); - $description = get_string('brandcolor_desc', 'theme_ilb'); - $setting = new admin_setting_configcolourpicker($name, $title, $description, ''); - $setting->set_updatedcallback('theme_reset_all_caches'); - $page->add($setting); - - // Must add the page after definiting all the settings! - $settings->add($page); - - // Advanced settings. - $page = new admin_settingpage('theme_ilb_advanced', get_string('advancedsettings', 'theme_ilb')); - - // Raw SCSS to include before the content. - $setting = new admin_setting_scsscode('theme_ilb/scsspre', - get_string('rawscsspre', 'theme_ilb'), get_string('rawscsspre_desc', 'theme_ilb'), '', PARAM_RAW); - $setting->set_updatedcallback('theme_reset_all_caches'); - $page->add($setting); - - // Raw SCSS to include after the content. - $setting = new admin_setting_scsscode('theme_ilb/scss', get_string('rawscss', 'theme_ilb'), - get_string('rawscss_desc', 'theme_ilb'), '', PARAM_RAW); - $setting->set_updatedcallback('theme_reset_all_caches'); - $page->add($setting); - - $settings->add($page); + + // Habilitar destaque + $setting = new admin_setting_configcheckbox('theme_ilb/habilitar_destaque', + 'Habilitar destaque', + 'Indica se deve ser exibido destaque na página inicial', 0); + $settings->add($setting); + + // Imagem destaque + $setting = new admin_setting_configtext('theme_ilb/imagem_destaque', + 'Imagem de destaque', + 'Imagem a ser exibida como destaque', '', PARAM_TEXT, 50); + $settings->add($setting); + + // Curso de destaque + $setting = new admin_setting_configtext('theme_ilb/curso_destaque', + 'Curso de destaque', + 'ID do curso acessado ao clicar na imagem de destaque', '', PARAM_TEXT, 4); + $settings->add($setting); } diff --git a/templates/frontpage_ilb.mustache b/templates/frontpage_ilb.mustache index 563a9ae..ee5c145 100644 --- a/templates/frontpage_ilb.mustache +++ b/templates/frontpage_ilb.mustache @@ -705,7 +705,16 @@ + {{#habilitar_destaque}}

+ + + +
+ {{/habilitar_destaque}} + {{^habilitar_destaque}} +
+
@@ -717,6 +726,9 @@
+ {{/habilitar_destaque}} + + diff --git a/version.php b/version.php index aa4507a..a9c38bd 100644 --- a/version.php +++ b/version.php @@ -24,6 +24,6 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2019050200; +$plugin->version = 2019081401; $plugin->requires = 2018112800; $plugin->component = 'theme_ilb';