Skip to content

Commit

Permalink
Fixed merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Whitacre committed Mar 11, 2014
2 parents 11148fc + 77bde9c commit a9f8d7b
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 35 deletions.
9 changes: 7 additions & 2 deletions application/helpers/view_helper.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<?php defined("BASEPATH") or exit("No direct script access allowed");

// Checks the count and makes the string plural (well adds an s) if it's longer than 1 or 0.
function determinePlurality($num, $str)
function determinePlurality($num, $str, $show_num=true)
{
if ($num == 0) { return "No ". $str . "s"; }
return ($num > 1) ? $num . " " . $str . "s" : $num . " " . $str;
if ($show_num) {
return ($num > 1) ? $num . " " . $str . "s" : $num . " " . $str;
} else {
return ($num > 1) ? $str . "s" : $str;
}

}


Expand Down
3 changes: 2 additions & 1 deletion application/views/layouts/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
<div class="sidebar-block">
<div class="sidebar-inner">
<a href="javascript:(function()%7Bl%3D%22<?php print getFullUrl(); ?>%2Fmark%2Fadd%3Furl%3D%22%2BencodeURIComponent(window.location.href)%2B%22%26title%3D%22%2BencodeURIComponent(document.title)%2B%22%26v%3D1%26nowindow%3Dyes%26%22%3Bvar%20e%3Dwindow.open(l%2B%22noui%3D1%22%2C%22Unmark%22%2C%22location%3D0%2Clinks%3D0%2Cscrollbars%3D0%2Ctoolbar%3D0%2Cwidth%3D594%2Cheight%3D485%22)%3Breturn%20false%7D)()" class="btn">Unmark+</a>
<p class="clear sidenote">To add Marks, drag this button into your bookmark toolbar. <a href="http://help.unmark.it/bookmarklet" target="_blank">Learn how</a>.</p>
<p class="clear sidenote">To add Marks, drag this button into your bookmark toolbar.
<br /> Checkout our <a href="https://chrome.google.com/webstore/detail/unmark/cdhnljlbeehjgddokagghpfgahhlifch" target="_blank">Chrome Plugin</a> or to see more tools in <a href="http://help.unmark.it/bookmarklet" target="_blank">our help docs.</a></p>
</div>
</div>
<?php $this->load->view('layouts/sidebar/sidebar_notices'); ?>
Expand Down
2 changes: 1 addition & 1 deletion application/views/layouts/sidebar/sidebar_notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="sidebar-block">
<div class="sidebar-inner">
<p>Thanks for checking out Unmark. We hope you enjoy using it.</p>
<p>For usage tips follow us on Twitter! Please tell your friends about Unmark.</p>
<p>For usage tips <a target="_blank" href="https://twitter.com/unmarkit">follow us on Twitter</a>! Please tell your friends about Unmark.</p>
<p>
<a href="https://twitter.com/unmarkit" class="twitter-follow-button" data-show-count="false" data-size="large" data-dnt="true">Follow @unmarkit</a>
<span class="sidebar-spacer"></span>
Expand Down
2 changes: 1 addition & 1 deletion application/views/marks/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// Variable Setup
$heading = array();
$link_plural = " ".determinePlurality($total, "mark")." ";
$link_plural = " ".determinePlurality($total, "mark", false)." ";
$search_term = (isset($_GET['q'])) ? $_GET['q'] : '';
$label_name = (isset($active_label['label_name'])) ? $active_label['label_name'] : '';
$tag_name = (isset($active_tag['tag_name'])) ? $active_tag['tag_name'] : '';
Expand Down
2 changes: 1 addition & 1 deletion assets/css/unmark.css

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions assets/css/unmark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -729,14 +729,16 @@ ul.nav-list {
width: auto;
box-sizing: border-box;
float: left;
color: $color_white;
text-decoration:none;
}
a {
color: $color_dark;
text-decoration: underline;
}
.sidenote {
padding: 10px 0 0 5px;
margin-bottom: 0;
a {
color: $color_dark;
text-decoration: underline;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion assets/js/production/unmark.bookmarklet.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/production/unmark.loggedin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/production/unmark.loggedout.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a9f8d7b

Please sign in to comment.