#List of countries
It's time someone compiled a list of countries to use within a web application. This gist attempts to make a first move at that.
I've also compiled a list of nationalities
#List of countries
It's time someone compiled a list of countries to use within a web application. This gist attempts to make a first move at that.
I've also compiled a list of nationalities
A Pen by Scott Kennedy on CodePen.
| var css = '.QuickViewBtn { display: none !important; }', | |
| head = document.head || document.getElementsByTagName('head')[0], | |
| style = document.createElement('style'); | |
| style.type = 'text/css'; | |
| if (style.styleSheet){ | |
| style.styleSheet.cssText = css; | |
| } else { | |
| style.appendChild(document.createTextNode(css)); | |
| } | |
| head.appendChild(style); |
| //entity reference | |
|   //numeric entity reference | |
|   //hexadecimal entity |
| <ul id="main-menu" class="accordion"> | |
| {% for link in linklists.main-menu.links %} | |
| {% assign has_sub_menu = false %} | |
| {% assign parent_link_active = false %} | |
| {% assign child_list_handle = link.title | handle %} | |
| {% if linklists[child_list_handle] and linklists[child_list_handle].links.size > 0 %} | |
| {% assign has_sub_menu = true %} | |
| {% for l in linklists[child_list_handle].links %} | |
| {% if l.active %} | |
| {% assign parent_link_active = true %} |
| {% for link in linklists.main-menu.links %} | |
| {% comment %} | |
| Create a dropdown menu by naming a linklist the same as a link in the parent nav | |
| More info on dropdowns: | |
| - http://docs.shopify.com/manual/your-website/navigation/create-drop-down-menu | |
| {% endcomment %} | |
| {% assign child_list_handle = link.title | handleize %} | |
| {% if linklists[child_list_handle].links != blank %} | |
| <li class="site-nav__item site-nav__expanded-item site-nav--has-dropdown{% unless template == 'index' %}{% if link.active %} site-nav--active{% endif %}{% endunless%}" aria-haspopup="true"> |
| <?php | |
| namespace Library; | |
| class Pagination{ | |
| /* | |
| */ | |
| /*Default values*/ | |
| var $total_pages = -1;//items | |
| var $limit = null; | |
| var $target = ""; |
| {% if settings.show_multiple_currencies %} | |
| {{ "//cdn.shopify.com/s/javascripts/currencies.js" | script_tag }} | |
| {{ "jquery.currencies.min.js" | asset_url | script_tag }} | |
| <script> | |
| Currency.format = '{{ settings.currency_format | default: 'money_with_currency_format' }}'; | |
| var shopCurrency = '{{ shop.currency }}'; |
| $replace = [ | |
| '<' => '', '>' => '', ''' => '', '&' => '', | |
| '"' => '', 'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'Ae', | |
| 'Ä' => 'A', 'Å' => 'A', 'Ā' => 'A', 'Ą' => 'A', 'Ă' => 'A', 'Æ' => 'Ae', | |
| 'Ç' => 'C', 'Ć' => 'C', 'Č' => 'C', 'Ĉ' => 'C', 'Ċ' => 'C', 'Ď' => 'D', 'Đ' => 'D', | |
| 'Ð' => 'D', 'È' => 'E', 'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Ē' => 'E', | |
| 'Ę' => 'E', 'Ě' => 'E', 'Ĕ' => 'E', 'Ė' => 'E', 'Ĝ' => 'G', 'Ğ' => 'G', | |
| 'Ġ' => 'G', 'Ģ' => 'G', 'Ĥ' => 'H', 'Ħ' => 'H', 'Ì' => 'I', 'Í' => 'I', | |
| 'Î' => 'I', 'Ï' => 'I', 'Ī' => 'I', 'Ĩ' => 'I', 'Ĭ' => 'I', 'Į' => 'I', | |
| 'İ' => 'I', 'IJ' => 'IJ', 'Ĵ' => 'J', 'Ķ' => 'K', 'Ł' => 'K', 'Ľ' => 'K', |