Merge pull request #13 from jack1142/jack1142-patch-1
Insert HTML line breaks before newlines in cog descriptions
This commit is contained in:
commit
d4f36b3231
@ -137,7 +137,7 @@ $cog_chunks = array_chunk($cogs, $per_page);
|
|||||||
<?php }else{ foreach($cog_chunks[$page - 1] as $cog){ ?>
|
<?php }else{ foreach($cog_chunks[$page - 1] as $cog){ ?>
|
||||||
<div>
|
<div>
|
||||||
<h><?php print($cog['id']);?><tag class="approval<?php if($cog['rx_category'] == 'approved'){?> active<?php } ?>"><?php print(ucwords($cog['rx_category']));?></tag> <?php foreach($cog['author'] as $tag){?><tag>@<?php print($tag); ?></tag><?php }?></h>
|
<h><?php print($cog['id']);?><tag class="approval<?php if($cog['rx_category'] == 'approved'){?> active<?php } ?>"><?php print(ucwords($cog['rx_category']));?></tag> <?php foreach($cog['author'] as $tag){?><tag>@<?php print($tag); ?></tag><?php }?></h>
|
||||||
<t><i><?php print(htmlentities($cog['description'] ?: $cog['short']));?></i></t>
|
<t><i><?php print(nl2br(htmlentities($cog['description'] ?: $cog['short'])));?></i></t>
|
||||||
<?php if(!empty($cog['end_user_data_statement'])) { ?>
|
<?php if(!empty($cog['end_user_data_statement'])) { ?>
|
||||||
<t><svg class="icon" viewBox="0 0 20 20">
|
<t><svg class="icon" viewBox="0 0 20 20">
|
||||||
<path d="M10,6.978c-1.666,0-3.022,1.356-3.022,3.022S8.334,13.022,10,13.022s3.022-1.356,3.022-3.022S11.666,6.978,10,6.978M10,12.267c-1.25,0-2.267-1.017-2.267-2.267c0-1.25,1.016-2.267,2.267-2.267c1.251,0,2.267,1.016,2.267,2.267C12.267,11.25,11.251,12.267,10,12.267 M18.391,9.733l-1.624-1.639C14.966,6.279,12.563,5.278,10,5.278S5.034,6.279,3.234,8.094L1.609,9.733c-0.146,0.147-0.146,0.386,0,0.533l1.625,1.639c1.8,1.815,4.203,2.816,6.766,2.816s4.966-1.001,6.767-2.816l1.624-1.639C18.536,10.119,18.536,9.881,18.391,9.733 M16.229,11.373c-1.656,1.672-3.868,2.594-6.229,2.594s-4.573-0.922-6.23-2.594L2.41,10l1.36-1.374C5.427,6.955,7.639,6.033,10,6.033s4.573,0.922,6.229,2.593L17.59,10L16.229,11.373z"></path> </svg><?php print($cog['end_user_data_statement']);?></t>
|
<path d="M10,6.978c-1.666,0-3.022,1.356-3.022,3.022S8.334,13.022,10,13.022s3.022-1.356,3.022-3.022S11.666,6.978,10,6.978M10,12.267c-1.25,0-2.267-1.017-2.267-2.267c0-1.25,1.016-2.267,2.267-2.267c1.251,0,2.267,1.016,2.267,2.267C12.267,11.25,11.251,12.267,10,12.267 M18.391,9.733l-1.624-1.639C14.966,6.279,12.563,5.278,10,5.278S5.034,6.279,3.234,8.094L1.609,9.733c-0.146,0.147-0.146,0.386,0,0.533l1.625,1.639c1.8,1.815,4.203,2.816,6.766,2.816s4.966-1.001,6.767-2.816l1.624-1.639C18.536,10.119,18.536,9.881,18.391,9.733 M16.229,11.373c-1.656,1.672-3.868,2.594-6.229,2.594s-4.573-0.922-6.23-2.594L2.41,10l1.36-1.374C5.427,6.955,7.639,6.033,10,6.033s4.573,0.922,6.229,2.593L17.59,10L16.229,11.373z"></path> </svg><?php print($cog['end_user_data_statement']);?></t>
|
||||||
|
Loading…
Reference in New Issue
Block a user