Browse Source

Modification de l'affichage des modes de partage

Ajout de la numérotation des modes de partage pour rendre l'utilisation des raccourcis plus aisée.
Alexis Degrugillier 12 years ago
parent
commit
f8be8eb41b

+ 8 - 8
app/views/helpers/view/normal_view.phtml

@@ -147,49 +147,49 @@ if (!empty($this->entries)) {
 						<ul class="dropdown-menu">
 						<ul class="dropdown-menu">
 							<li class="dropdown-close"><a href="#close">❌</a></li>
 							<li class="dropdown-close"><a href="#close">❌</a></li>
 							<?php if ($shaarli) { ?>
 							<?php if ($shaarli) { ?>
-							<li class="item">
+							<li class="item share">
 								<a target="_blank" href="<?php echo $shaarli . '?post=' . $link . '&amp;title=' . $title . '&amp;source=FreshRSS'; ?>">
 								<a target="_blank" href="<?php echo $shaarli . '?post=' . $link . '&amp;title=' . $title . '&amp;source=FreshRSS'; ?>">
 									<?php echo Minz_Translate::t ('shaarli'); ?>
 									<?php echo Minz_Translate::t ('shaarli'); ?>
 								</a>
 								</a>
 							</li>
 							</li>
 							<?php } if ($wallabag) { ?>
 							<?php } if ($wallabag) { ?>
-							<li class="item">
+							<li class="item share">
 								<a target="_blank" href="<?php echo $wallabag . '?action=add&amp;url=' . base64_encode (urldecode($link)); ?>">
 								<a target="_blank" href="<?php echo $wallabag . '?action=add&amp;url=' . base64_encode (urldecode($link)); ?>">
 									<?php echo Minz_Translate::t ('wallabag'); ?>
 									<?php echo Minz_Translate::t ('wallabag'); ?>
 								</a>
 								</a>
 							</li>
 							</li>
 							<?php } if ($diaspora) { ?>
 							<?php } if ($diaspora) { ?>
-							<li class="item">
+							<li class="item share">
 								<a target="_blank" href="<?php echo $diaspora . '/bookmarklet?url=' . $link . '&amp;title=' . $title; ?>">
 								<a target="_blank" href="<?php echo $diaspora . '/bookmarklet?url=' . $link . '&amp;title=' . $title; ?>">
 									<?php echo Minz_Translate::t ('diaspora'); ?>
 									<?php echo Minz_Translate::t ('diaspora'); ?>
 								</a>
 								</a>
 							</li>
 							</li>
 							<?php } if ($twitter) { ?>
 							<?php } if ($twitter) { ?>
-							<li class="item">
+							<li class="item share">
 								<a target="_blank" href="https://twitter.com/share?url=<?php echo $link; ?>&amp;text=<?php echo $title; ?>">
 								<a target="_blank" href="https://twitter.com/share?url=<?php echo $link; ?>&amp;text=<?php echo $title; ?>">
 									<?php echo Minz_Translate::t ('twitter'); ?>
 									<?php echo Minz_Translate::t ('twitter'); ?>
 								</a>
 								</a>
 							</li>
 							</li>
 							<?php } if ($google_plus) { ?>
 							<?php } if ($google_plus) { ?>
-							<li class="item">
+							<li class="item share">
 								<a target="_blank" href="https://plus.google.com/share?url=<?php echo $link; ?>">
 								<a target="_blank" href="https://plus.google.com/share?url=<?php echo $link; ?>">
 									<?php echo Minz_Translate::t ('g+'); ?>
 									<?php echo Minz_Translate::t ('g+'); ?>
 								</a>
 								</a>
 							</li>
 							</li>
 							<?php } if ($facebook) { ?>
 							<?php } if ($facebook) { ?>
-							<li class="item">
+							<li class="item share">
 								<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $link; ?>&amp;t=<?php echo $title; ?>">
 								<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $link; ?>&amp;t=<?php echo $title; ?>">
 									<?php echo Minz_Translate::t ('facebook'); ?>
 									<?php echo Minz_Translate::t ('facebook'); ?>
 								</a>
 								</a>
 							</li>
 							</li>
 							<?php } if ($email) { ?>
 							<?php } if ($email) { ?>
-							<li class="item">
+							<li class="item share">
 								<a href="mailto:?subject=<?php echo urldecode($title); ?>&amp;body=<?php echo $link; ?>">
 								<a href="mailto:?subject=<?php echo urldecode($title); ?>&amp;body=<?php echo $link; ?>">
 									<?php echo Minz_Translate::t ('by_email'); ?>
 									<?php echo Minz_Translate::t ('by_email'); ?>
 								</a>
 								</a>
 							</li>
 							</li>
 							<?php } if ($print) { ?>
 							<?php } if ($print) { ?>
-							<li class="item">
+							<li class="item share">
 								<a href="#" class="print-article">
 								<a href="#" class="print-article">
 									<?php echo Minz_Translate::t ('print'); ?>
 									<?php echo Minz_Translate::t ('print'); ?>
 								</a>
 								</a>

+ 5 - 0
p/themes/Dark/global.css

@@ -407,6 +407,11 @@ input, select, textarea {
 				padding: 0 25px;
 				padding: 0 25px;
 				line-height: 30px;
 				line-height: 30px;
 			}
 			}
+			.dropdown-menu > .item.share > a {
+				display: list-item;
+				list-style-position:inside;
+				list-style-type:decimal;
+			}
 			.dropdown-menu > .item:hover {
 			.dropdown-menu > .item:hover {
 				background: #26303F;
 				background: #26303F;
 				color: #888;
 				color: #888;

+ 5 - 0
p/themes/Flat/global.css

@@ -403,6 +403,11 @@ input, select, textarea {
 				padding: 0 25px;
 				padding: 0 25px;
 				line-height: 30px;
 				line-height: 30px;
 			}
 			}
+			.dropdown-menu > .item.share > a {
+				display: list-item;
+				list-style-position:inside;
+				list-style-type:decimal;
+			}
 			.dropdown-menu > .item:hover > a {
 			.dropdown-menu > .item:hover > a {
 				background: #2980b9;
 				background: #2980b9;
 				color: #fff;
 				color: #fff;

+ 5 - 0
p/themes/Origine/global.css

@@ -419,6 +419,11 @@ input, select, textarea {
 				padding: 0 25px;
 				padding: 0 25px;
 				line-height: 30px;
 				line-height: 30px;
 			}
 			}
+			.dropdown-menu > .item.share > a {
+				display: list-item;
+				list-style-position:inside;
+				list-style-type:decimal;
+			}
 			.dropdown-menu > .item:hover {
 			.dropdown-menu > .item:hover {
 				background: #0062BE;
 				background: #0062BE;
 				color: #fff;
 				color: #fff;