Created
July 8, 2017 01:09
-
-
Save BAGELreflex/6d0f810b4fd215b7535c0f862e88df5c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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