home *** CD-ROM | disk | FTP | other *** search
/ Neil's C++ Stuff / 2016-02-neilstuff-weebly.iso / files / templateArtifacts.js < prev   
Text File  |  2016-02-05  |  14KB  |  27 lines

  1. // Gets converted to _W
  2. Weebly = window.Weebly || {};
  3. Weebly.templates = {
  4.         'membership/login-signup': "{{!\n\tNOTES:\n\t- The login-section class is used to show\/hide this section\n\t- The signup-link class is used to toggle to the signup-section\n\t- The signup-section class is used to show\/hide this section\n\t- The login-link class is used to toggle to the login-section\n}}\n\n<div class=\"wsite-membership-box\">\n\n\t<div class=\"login-section\">\n\t\t<h1 class=\"login-title\">\n\t\t\t{{#tl}}Log In{{\/tl}}\n\t\t\t{{#allow_signup}}\n\t\t\t\t|\n\t\t\t\t<a href=\"javascript:;\" class=\"signup-link\">{{#tl}}Register{{\/tl}}<\/a>\n\t\t\t{{\/allow_signup}}\n\t\t<\/h1>\n\t\t{{> membership\/login-form}}\n\t<\/div>\n\n\t{{#allow_signup}}\n\t\t<div class=\"signup-section\" style=\"display: none\">\n\t\t\t<h1 class=\"signup-title\">\n\t\t\t\t<a href=\"javascript:;\" class=\"login-link\">{{#tl}}Log In{{\/tl}}<\/a>\n\t\t\t\t|\n\t\t\t\t{{#tl}}Register{{\/tl}}\n\t\t\t<\/h1>\n\t\t\t{{> membership\/signup-form}}\n\t\t<\/div>\n\t{{\/allow_signup}}\n<\/div>\n",
  5.         'membership/login-form': "{{! Designer Note: The id is used for form submission }}\n<form id=\"membership-login-form\" method=\"post\" action=\"\">\n\t{{#allow_signup}}<div class=\"caret caret-login\"><\/div>{{\/allow_signup}}\n\t<input name=\"login-email\" type=\"text\" class=\"wsite-page-membership-text-input large login-email\" placeholder=\"{{#esc_attr}}{{#tl}}Email Address{{\/tl}}{{\/esc_attr}}\" \/>\n\t<input name=\"login-password\" type=\"password\" class=\"wsite-page-membership-text-input large login-password\" placeholder=\"{{#esc_attr}}{{#tl}}Password{{\/tl}}{{\/esc_attr}}\" \/>\n\t{{! Designer Note: The login-error class is used to display errors }}\n\t<p class=\"login-error error message\"><\/p>\n\n\t<input class=\"redirect\" type=\"hidden\"{{#redirect}} value=\"{{{redirect}}}\"{{\/redirect}}><\/input>\n\t{{! Designer Note: The reset-password class is used for password reset }}\n\t<a class=\"membership-left-action reset-password\" href=\"\/apps\/member\/reset_password\">{{#tl}}Reset password{{\/tl}}<\/a>\n\t<button data-formId=\"membership-login-form\" class=\"btn-com btn-info membership-right-action btn-forward\">{{#tl}}Log in{{\/tl}}<\/button>\n<\/form>",
  6.         'membership/signup-form': "<form id=\"membership-signup-form\" method=\"post\" action=\"\">\n\t<div class=\"caret caret-signup\"><\/div>\n\t<input name=\"signup-name\" type=\"text\" class=\"wsite-page-membership-text-input large signup-name\" placeholder=\"{{#esc_attr}}{{#tl}}Name (optional){{\/tl}}{{\/esc_attr}}\" \/>\n\t<input name=\"signup-email\" type=\"text\" class=\"wsite-page-membership-text-input large signup-email\" placeholder=\"{{#esc_attr}}{{#tl}}Email Address{{\/tl}}{{\/esc_attr}}\" \/>\n\t<input name=\"signup-password\" type=\"password\" class=\"wsite-page-membership-text-input large signup-password\" placeholder=\"{{#esc_attr}}{{#tl}}Password{{\/tl}}{{\/esc_attr}}\" \/>\n\t{{! Designer Note: The signup-error class is used to display errors }}\n\t<p class=\"signup-error error message\"><\/p>\n\n\t<button data-formId=\"membership-signup-form\" class=\"btn-com btn-info membership-right-action btn-forward register\">{{#tl}}Register{{\/tl}}<\/button>\n<\/form>\n<input class=\"redirect\" type=\"hidden\"{{#redirect}} value=\"{{{redirect}}}\"{{\/redirect}}><\/input>\n{{! Designer Note: The signup-response-message class is used to display the success on signup message }}\n<p class=\"signup-response-message\" style=\"display: none\"><\/p>\n{{! Designer Note: The button-area class is used to append a button after signing up }}\n<div class=\"button-area\"><\/div>",
  7.         'membership/reset-password': "<div class=\"wsite-membership-box\">\n\t<h1>{{#tl}}Reset Password{{\/tl}}<\/h1>\n\n\t{{> membership\/reset-password-form}}\n<\/div>\n",
  8.         'membership/reset-password-form': "<div class=\"form\">\n\t{{#ask_email}}\n\t\t{{! Designer Note: The id is used to hide this form after successful submission }}\n\t\t<form method=\"GET\" action=\"\" id=\"membership-email-form\">\n\t\t\t<p>{{#tl}}Enter your email to reset your password.{{\/tl}}<\/p>\n\n\t\t\t<input type=\"text\" name=\"email\" class=\"wsite-page-membership-text-input large email\" placeholder=\"{{#esc_attr}}{{#tl}}Email Address{{\/tl}}{{\/esc_attr}}\" \/>\n\n\t\t\t{{#invalid_email}}\n\t\t\t\t<p class=\"membership-error\">{{#tl}}Email address not found.{{\/tl}}<\/p>\n\t\t\t{{\/invalid_email}}\n\n\t\t\t{{#no_password}}\n\t\t\t\t<p class=\"membership-error\">{{#tl}}Password not set on this account.{{\/tl}}<\/p>\n\t\t\t{{\/no_password}}\n\n\t\t\t{{! Designer Note: When the class email-submit is clicked the form is submited }}\n\t\t\t<button class='btn-com btn-info membership-right-action btn-forward membership-form-submit email-submit' data-formId=\"membership-reset-form\">{{#tl}}Continue{{\/tl}}<\/button>\n\t\t<\/form>\n\t{{\/ask_email}}\n\n\t{{#have_email}}\n\t\t<form method=\"POST\" action=\"\" id=\"membership-reset-form\">\n\t\t\t<p>{{#tl}}Please enter a new password below{{\/tl}}<\/p>\n\t\t\t<input name=\"password\" type=\"password\" class=\"wsite-page-membership-text-input large password\" placeholder=\"{{#esc_attr}}{{#tl}}Type Password{{\/tl}}{{\/esc_attr}}\" \/>\n\t\t\t<input name=\"password2\" type=\"password\" class=\"wsite-page-membership-text-input large password-confirmation\" placeholder=\"{{#esc_attr}}{{#tl}}Retype Password{{\/tl}}{{\/esc_attr}}\" \/>\n\t\t\t<input type=\"hidden\" name=\"access_token\" value=\"{{#esc_attr}}{{access_token}}{{\/esc_attr}}\" class=\"access-token\" \/>\n\n\t\t\t{{! Designer Note: The error class is used to display errors }}\n\t\t\t<p class=\"membership-error error message\"><\/p>\n\n\t\t\t{{! Designer Note: When the class reset-submit is clicked the form is submited }}\n\t\t\t<button class='btn-com btn-info membership-right-action btn-forward membership-form-submit reset-submit' data-formId=\"membership-reset-form\">{{#tl}}Continue{{\/tl}}<\/button>\n\t\t<\/form>\n\t{{\/have_email}}\n\n\t{{#invalid_token}}\n\t\t<p class=\"membership-reset-padded\">{{#tl}}This password link is expired or invalid. Please <a href=\"\/apps\/member\/reset_password\">request a new one<\/a>.{{\/tl}}<\/p>\n\t{{\/invalid_token}}\n<\/div>\n\n{{! Designer Note: The message class is used to display responses from the server }}\n<p class=\"message membership-reset-padded\" style=\"display: none;\"><\/p>\n{{! Designer Note: The button-area class is used to append a button after submitting an email }}\n<div class=\"button-area\"><\/div>",
  9.         'membership/denied': "<div class=\"wsite-membership-box access-denied\">\n\t<h1>{{#tl}}Access Denied{{\/tl}}<\/h1>\n\t<p>{{#tl}}You do not have permission to access this page.{{\/tl}}<\/p>\n\t<p>{{#tl}}Try <a href=\"\/apps\/member\/logout\">logging out<\/a> and log in with a different account.{{\/tl}}<\/p>\n<\/div>\n",
  10.         'membership/account': "<div class=\"wsite-membership-box member-account\">\n\t<h1>{{#tl}}My Account{{\/tl}}<\/h1>\n\n\t{{#has_pages}}\n\t\t{{#is_owner}}\n\t\t\t<h3 style=\"text-align: center;\">\n\t\t\t\t{{#tl}}You are the owner of this site.{{\/tl}}\n\t\t\t<\/h3>\n\t\t{{\/is_owner}}\n\t\t{{^is_owner}}\n\t\t\t<h3 style=\"margin-bottom: 15px; color: #8e8e8e;\">\n\t\t\t\t{{#tl}}Choose a Page to Access{{\/tl}}\n\t\t\t<\/h3>\n\t\t\t<div class=\"accessible-pages\">\n\t\t\t\t<table class=\"entity-list\" cellspacing=\"0\">\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t{{#accessible_pages}}\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"accessible-page\" width=\"100%\"><a href=\"{{url}}\">{{{title}}}<\/a><\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t{{\/accessible_pages}}\n\t\t\t\t\t<\/tbody>\n\t\t\t\t<\/table>\n\t\t\t<\/div>\n\t\t{{\/is_owner}}\n\t{{\/has_pages}}\n\t{{^has_pages}}\n\t\t<h3 style=\"text-align: center;\">\n\t\t\t{{#tl}}If you have access to private pages, they will be listed here.{{\/tl}}\n\t\t<\/h3>\n\t{{\/has_pages}}\n\n\t<a class=\"logout-link\" href=\"\/apps\/member\/logout\">\n\t\t{{#tl}}Log Out{{\/tl}}\n\t<\/a>\n<\/div>",
  11.         'search/filter/search-facet-color': "<li class=\"wsite-search-facet wsite-search-facet-color\">\n\t<h3>{{facet_name}}<\/h3>\n\t<form name=\"{{column_name}}\">\n\t\t<ul class=\"wsite-search-facet-entries clearfix\">\n\t\t\t{{#facet_entries}}\n\t\t\t\t<li>\n\t\t\t\t\t<label title=\"{{name}}\" style=\"background-color:{{display_value}};\" {{#active}}class=\"active\"{{\/active}}>\n\t\t\t\t\t\t<input type=\"checkbox\" class=\"w-input-offscreen\" name=\"{{filter_text}}\" value=\"1\" tabindex=\"-1\" \/>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/li>\n\t\t\t{{\/facet_entries}}\n\t\t<\/ul>\n\t<\/form>\n<\/li>\n",
  12.         'search/filter/search-facet-checkbox': "<li class=\"wsite-search-facet wsite-search-facet-checkbox\">\n\t<h3>{{facet_name}}<\/h3>\n\t<form name=\"{{column_name}}\">\n\t\t<ul class=\"wsite-search-facet-entries\">\n\t\t\t{{#facet_entries}}\n\t\t\t\t<li>\n\t\t\t\t\t<label>\n\t\t\t\t\t\t<input type=\"checkbox\" name=\"{{filter_text}}\" value=\"1\" \/><!--\n\t\t\t\t\t\t{{! Commenting 'hack' to remove spaces }}\n\t\t\t\t\t\t--><a> {{! These aren't real links, used to use theme colors }}\n\t\t\t\t\t\t\t{{display_value}}\n\t\t\t\t\t\t\t<span class=\"count\">(<span class=\"count-inner\">{{count}}<\/span>)<\/span>\n\t\t\t\t\t\t<\/a>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/li>\n\t\t\t{{\/facet_entries}}\n\t\t<\/ul>\n\t<\/form>\n<\/li>\n",
  13.         'search/filter/search-facet-price': "<li class=\"wsite-search-facet wsite-search-facet-price\">\n\t<h3>{{#tl}}Price{{\/tl}}<\/h3>\n\t<form name=\"{{column_name}}\">\n\t\t<input type=\"text\" class=\"wsite-form-input\" name=\"lowprice\" pattern=\"[0-9]*\" placeholder=\"—\" value=\"{{lowprice}}\" \/><!--\n\t\t{{! Commenting 'hack' to get inline-block to not have spaces }}\n\t\t--><span>{{#tl}}to{{\/tl}}<\/span><!--\n\t\t{{! Commenting 'hack' to get inline-block to not have spaces }}\n\t\t--><input type=\"text\" class=\"wsite-form-input\" name=\"highprice\" pattern=\"[0-9]*\" placeholder=\"—\" value=\"{{highprice}}\" \/>\n\t<\/form>\n<\/li>\n",
  14.         'search/filter/search-facet-availability': "<li class=\"wsite-search-facet wsite-search-facet-availability\">\n\t<h3>{{#tl}}Availability{{\/tl}}<\/h3>\n\t<form name=\"availability-facet\">\n\t\t<ul class=\"wsite-search-facet-entries\">\n\t\t\t<li>\n\t\t\t\t<label>\n\t\t\t\t\t<input type=\"checkbox\" name=\"outofstock\" value=\"1\" \/><!--\n\t\t\t\t\t{{! Commenting 'hack' to remove spaces }}\n\t\t\t\t\t--><a> {{! These aren't real links, used to use theme colors }}\n\t\t\t\t\t\t{{#tl}}Include out of stock{{\/tl}}\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/label>\n\t\t\t<\/li>\n\t\t<\/ul>\n\t<\/form>\n<\/li>\n",
  15.         'search/filter/search-filter': "<li class=\"wsite-search-filter\">\n\t<h3>{{filter_name}}<\/h3>\n\t<ul class=\"wsite-search-filter-entries\">\n\t\t{{#filters}}\n\t\t\t<li style=\"{{style}}\">\n\t\t\t\t<a data-filter=\"{{filter_data}}\" href=\"{{url}}{{query_string}}\" {{#active}}class=\"active\"{{\/active}}>\n\t\t\t\t\t{{filter_name}}\n\t\t\t\t\t<span class=\"count\">(<span class=\"count-inner\">{{count}}<\/span>)<\/span>\n\t\t\t\t<\/a>\n\t\t\t<\/li>\n\t\t{{\/filters}}\n\t<\/ul>\n<\/li>\n",
  16.         'search/filter/search-filters': "<ul id=\"wsite-search-sidebar\">\n\t{{#filters}}\n\t\t{{{.}}}\n\t{{\/filters}}\n\t{{#facets}}\n\t\t{{{.}}}\n\t{{\/facets}}\n<\/ul>\n",
  17.         'search/search-results-list-items': "{{#has_product_results}}\n\t{{> search\/results\/product-group}}\n{{\/has_product_results}}\n\n{{#page_results}}\n\t{{> search\/results\/normal}}\n{{\/page_results}}\n\n{{#no_results}}\n\t{{> search\/results\/empty}}\n{{\/no_results}}\n\n{{#error_result}}\n\t{{> search\/results\/error}}\n{{\/error_result}}\n",
  18.         'search/results/product-group': "<li id=\"wsite-search-product-result-section\">\n\t<h3>{{#tl}}Products{{\/tl}}<\/h3>\n\t<ul id=\"wsite-search-product-results\" class=\"clearfix\">\n\t\t{{#products}}\n\t\t\t{{> search\/results\/product}}\n\t\t{{\/products}}\n\t<\/ul>\n<\/li>",
  19.         'search/results/product': "<li class=\"wsite-search-product-result\">\n\t<a href=\"{{url}}\">\n\t\t<div class=\"wsite-search-product-image-container\" style=\"background-image:url({{image_url}})\" title=\"{{title}}\">\n\t\t<\/div>\n\t\t<span class=\"wsite-search-product-name\" title=\"{{title_html}}\">{{{title_html}}}<\/span>\n\t<\/a>\n\t<span class=\"wsite-search-product-price\">\n\t\t{{#high_price_number}}\n\t\t\t<span class=\"wsite-search-product-price-low\">\n\t\t\t\t{{{currency_html}}}{{low_price_number}}\n\t\t\t<\/span>\n\t\t\t - \n\t\t\t<span class=\"wsite-search-product-price-high\">\n\t\t\t\t{{{currency_html}}}{{high_price_number}}\n\t\t\t<\/span>\n\t\t{{\/high_price_number}}\n\t\t{{^high_price_number}}\n\t\t\t<span class=\"wsite-search-product-price-low\">\n\t\t\t\t{{{currency_html}}}{{low_price_number}}\n\t\t\t<\/span>\n\t\t{{\/high_price_number}}\n\t<\/span>\n<\/li>\n",
  20.         'search/results/normal': "<li>\n\t<a href=\"{{url}}\">\n\t\t<h3>\n\t\t\t{{#title_html}}\n\t\t\t\t{{{title_html}}}\n\t\t\t{{\/title_html}}\n\t\t\t{{^title_html}}\n\t\t\t\t{{#tl}}(No title){{\/tl}}\n\t\t\t{{\/title_html}}\n\t\t<\/h3>\n\t<\/a>\n\t<p>{{{content_html}}}<\/p>\n<\/li>\n",
  21.         'search/results/empty': "<li class=\"no-results\">\n\t<p>{{#tl}}No results found for <strong>{{query}}<\/strong>.{{\/tl}}<\/p>\n<\/li>\n",
  22.         'search/results/error': "<li class=\"no-results\">\n\t<p>{{#tl}}An error has occured <strong>{{error}}<\/strong>.{{\/tl}}<\/p>\n<\/li>\n",
  23.         'search/core-pagination-list': "<ol id=\"wsite-search-pagenav\">\n\t{{#pagination_items}}\n\t\t{{> search\/pagination-item}}\n\t{{\/pagination_items}}\n<\/ol>",
  24.         'search/pagination-item': "{{!\n\tNOTE: if an ellipsis is being displayed, there won't be an anchor tag and only the label will be displayed.\n}}\n\n<li>\n\t{{#url}}\n\t\t<a\n\t\t\t{{#is_active}}class=\"active\"{{\/is_active}}\n\t\t\t{{#is_disabled}}class=\"disabled\"{{\/is_disabled}}\n\t\t\thref=\"{{url}}\"\n\t\t\t>\n\t{{\/url}}\n\n\t\t{{text}}\n\n\t{{#url}}\n\t\t<\/a>\n\t{{\/url}}\n<\/li>\n",
  25.     '': null // handle the trailing comma
  26. };
  27. delete Weebly.templates[''];