Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BAGELreflex/6d0f810b4fd215b7535c0f862e88df5c to your computer and use it in GitHub Desktop.
Save BAGELreflex/6d0f810b4fd215b7535c0f862e88df5c to your computer and use it in GitHub Desktop.
diff --git a/user/classes/output/myprofile/renderer.php b/user/classes/output/myprofile/renderer.php
index c463496..d330fe8 100644
--- a/user/classes/output/myprofile/renderer.php
+++ b/user/classes/output/myprofile/renderer.php
@@ -60,7 +60,7 @@ class renderer extends \plugin_renderer_base {
public function render_category(category $category) {
$classes = $category->classes;
if (empty($classes)) {
- $return = \html_writer::start_tag('section', array('class' => 'node_category'));
+ $return = \html_writer::start_tag('section', array('class' => 'node_category', 'style' => 'border: 1px solid #F1F2F2; padding: 10px; margin-bottom: 20px;'));
} else {
$return = \html_writer::start_tag('section', array('class' => 'node_category ' . $classes));
}
@@ -70,7 +70,7 @@ class renderer extends \plugin_renderer_base {
// No nodes, nothing to render.
return '';
}
- $return .= \html_writer::start_tag('ul');
+ $return .= \html_writer::start_tag('ul', array('style' => 'list-style-type: none;'));
foreach ($nodes as $node) {
$return .= $this->render($node);
}
@@ -101,7 +101,7 @@ class renderer extends \plugin_renderer_base {
$classes = $node->classes;
if (!empty($content)) {
// There is some content to display below this make this a header.
- $return = \html_writer::tag('dt', $header);
+ $return = \html_writer::tag('dt', $header, array('style' => 'width: 100%; text-overflow: clip;'));
$return .= \html_writer::tag('dd', $content);
$return = \html_writer::tag('dl', $return);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment