This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% if page.signup.is_all_info_collected? == false %} | |
| {% if request.sorta_logged_in? %} | |
| <div id="bablic-submit"> | |
| {% submit_tag "Update info", class:"submit-button" %} | |
| </div> | |
| {% else %} | |
| <div id="bablic-submit"> | |
| {% submit_tag "Signup", class:"submit-button" %} | |
| </div> | |
| {% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- inputs - replace these exmaples with the custom fields for your nation --> | |
| <input type="text" id="utmCampaign" /> | |
| <input type="text" id="utmSource" /> | |
| <input type="text" id="utmMedium" /> | |
| <input type="text" id="utmContent" /> | |
| <input type="text" id="utmTerm" /> | |
| <script> | |
| // Parse URL Queries Method - this scrapes the URL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h4>Mailing Address</h4> | |
| <div class="row-fluid"> | |
| <div class="span12"><label for="signup_mailing_address_address1">street name</label>{% text_field "mailing_address.street_name", class:"text", placeholder:"Street Name" %}</div> | |
| </div> | |
| <div class="row-fluid"> | |
| <div class="span12"><label for="signup_mailing_address_address1">street number</label>{% text_field "mailing_address.street_number", class:"integer", placeholder:"Street Number" %}</div> | |
| </div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% include "breadcrumbs" %} | |
| {% if page.headline.size > 0 %} | |
| <h2 class="headline">{{ page.headline }}</h2> | |
| {% endif %} | |
| <div id="content"> | |
| {% if page.signup.content.size > 0 %} | |
| <div id="intro" class="intro"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% assign NationSlug = '' %} <!-- zero out variable at top of page --> | |
| {% capture ThemeURLString %}{{ theme[''] }}{% endcapture %} <!-- capture a dummy theme call which gives us a URL string containing the non-custom domain --> | |
| {% assign url_parts = ThemeURLString | split:'/' %} <br> <!-- split this URL on /'s to extract the domain (aka slug) --> | |
| {% assign SubDomain = url_parts[2] | split:'.' %} <!-- split the subdomain from nationbuilder.com --> | |
| {% if SubDomain[0] contains '-' %} <!-- if subdomain contains hyphen aka if site is not primary site --> | |
| {% assign NationSlugParts = SubDomain[0] | split:'-' %} <!-- split site.slug from nation.slug --> | |
| {% assign NationSlug = NationSlugParts[1] %} | |
| {% else %} <!-- if subdomain doesn't contain hyphen --> | |
| {% assign NationSlug = SubDomain[0] %} <!-- assign subdomain (aka nation slug) as NationSlug variable --> | |
| {% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // To create a reliable string of page tags to use for comparison in Liquid conditional statements, place this in layout.html between the <head> and <body>: | |
| {% assign tags_list = "" %} | |
| {% for tag in page.tags %} | |
| {% assign tags_list = tag.name | append: ", " | append: tags_list %} | |
| {% endfor %} | |
| // We'll need a consistent tag naming convention that contains a 'trigger' phrase and an 'id' to use in the link to the embedded widget. | |
| // In this case, we need an ID for a Phone2Action widget, so we'll be using the tag format 'p2a-12345' | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'nationbuilder' | |
| require 'csv' | |
| slug = 'NATION' | |
| token = 'INSERT TOKEN HERE' | |
| client = NationBuilder::Client.new(slug, token) | |
| i = CSV.open("/Users/jeffdunne/Desktop/iwf-first_upload-profiles.csv", headers: true).count | |
| CSV.foreach("/Users/jeffdunne/Desktop/iwf-first_upload-profiles.csv", headers: true) do |row| | |
| begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h2 class="headline">{{ page.headline }}</h2> | |
| <div id="content"> | |
| {% if page.signup.content.size > 0 %} | |
| <div id="intro" class="intro">{{ page.signup.content }}</div> | |
| {% endif %} | |
| {% if page.show_social_slider? and page.public_activities_count > 0 %} | |
| {% include "social_slider" %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| $(document).ready(function () { | |
| $('#signup_type_organization').change(function () { | |
| if (this.checked) | |
| // ^ | |
| $('#signup_first_name_row').fadeOut('slow'); | |
| else | |
| $('#signup_first_name_row').fadeIn('slow'); | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
| "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <meta name="viewport" content="initial-scale=1.0"> <!-- So that mobile webkit will display zoomed in --> | |
| <meta name="format-detection" content="telephone=no"> <!-- disable auto telephone linking in iOS --> | |
| <title>{{ broadcaster.name }}</title> | |
| {% assign preheader_text = body | strip_html %} <!-- optional pre-header text; text must be in "quotes" --> |
NewerOlder