Browse Source

change menu order #15

main
ghost 1 year ago
parent
commit
762d72e913
  1. 40
      src/app/view/theme/default/module/profile.phtml

40
src/app/view/theme/default/module/profile.phtml

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
<div class="margin-y-8 padding-b-8 position-fixed width-180-px margin-l--196 background-color-night border-radius-3">
<!-- @TODO
<div class="padding-8 margin-b-8 border-bottom-default">
<?php if ($public) { ?>
<img class="border-radius-50 border-color-green border-width-2 margin-r-8 vertical-align-middle" src="<?php echo $identicon ?>" alt="identicon" />
@ -6,6 +7,7 @@ @@ -6,6 +7,7 @@
<img class="border-radius-50 border-color-pink border-width-2 margin-r-8 vertical-align-middle" src="<?php echo $identicon ?>" alt="identicon" />
<?php } ?>
</div>
-->
<?php if ($route == '') { ?>
<span class="padding-x-16 padding-y-8 display-block background-color-green cursor-default text-color-white">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" class="bi bi-house-door-fill" viewBox="0 0 16 16">
@ -25,25 +27,6 @@ @@ -25,25 +27,6 @@
</span>
</a>
<?php } ?>
<?php if ($route == 'submit') { ?>
<span class="padding-x-16 padding-y-8 display-block background-color-green cursor-default text-color-white">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" class="bi bi-plus-circle-fill" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3v-3z"/>
</svg>
<span class="margin-l-4">
<?php echo _('Submit') ?>
</span>
</span>
<?php } else { ?>
<a class="padding-x-16 padding-y-8 display-block background-color-hover-night-light text-color-default" href="submit">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" class="bi bi-plus-circle-fill" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3v-3z"/>
</svg>
<span class="margin-l-4">
<?php echo _('Submit') ?>
</span>
</a>
<?php } ?>
<?php if ($route == 'stars') { ?>
<span class="padding-x-16 padding-y-8 display-block background-color-green cursor-default text-color-white">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
@ -169,4 +152,23 @@ @@ -169,4 +152,23 @@
</span>
</a>
<?php } ?>
<?php if ($route == 'submit') { ?>
<span class="padding-x-16 padding-y-8 display-block background-color-green cursor-default text-color-white">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" class="bi bi-plus-circle-fill" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3v-3z"/>
</svg>
<span class="margin-l-4">
<?php echo _('Submit') ?>
</span>
</span>
<?php } else { ?>
<a class="padding-x-16 padding-y-8 display-block background-color-hover-night-light text-color-default" href="submit">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" class="bi bi-plus-circle-fill" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3v-3z"/>
</svg>
<span class="margin-l-4">
<?php echo _('Submit') ?>
</span>
</a>
<?php } ?>
</div>
Loading…
Cancel
Save