## The contents of this file are subject to the Common Public Attribution ## License Version 1.0. (the "License"); you may not use this file except in ## compliance with the License. You may obtain a copy of the License at ## http://code.reddit.com/LICENSE. The License is based on the Mozilla Public ## License Version 1.1, but Sections 14 and 15 have been added to cover use of ## software over a computer network and provide for limited attribution for the ## Original Developer. In addition, Exhibit A has been modified to be ## consistent with Exhibit B. ## ## Software distributed under the License is distributed on an "AS IS" basis, ## WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for ## the specific language governing rights and limitations under the License. ## ## The Original Code is reddit. ## ## The Original Developer is the Initial Developer. The Initial Developer of ## the Original Code is reddit Inc. ## ## All portions of the code written by reddit are Copyright (c) 2006-2012 ## reddit Inc. All Rights Reserved. ############################################################################### <%! from r2.lib.template_helpers import get_domain %> <% domain = get_domain(cname=False, subreddit=False) %>

${_("put %(site)s buttons on your site") % dict(site=c.site.name)}

${_('the reddit button is the smart way to get your content submitted to\ and discussed on reddit. pick the button you like from below, and then\ copy/paste the code into your HTML editor.')}

${_("commonly used buttons")}

${_('use one of these buttons to quickly add reddit links to your site, or \ see below for more options.')}

${_("buttons with points")}

${_("customizing the look of your buttons")}

${_('the buttons with points have three additional options.')}

${_('Example:')}

${point_option_example()}

${_('simple interactive button')}

${_('put this code on your page:')}

${capture(draw_interactive,False)}

${_("and you'll get something like this:")}

${draw_interactive(False)}

${_("more interactive buttons")}

${_('interactive button advanced settings')}

${_('Example:')}

${_('to make this button:')}

${draw_interactive_example()}

${_('use this code:')}

<% ex = websafe(capture(draw_interactive_example)) ex = ex.replace("\n", "
").replace(" ", " ") %> ${unsafe(ex)}

${_("more badges and buttons")}

<%def name="drawbadge(image)"> submit to reddit <%def name="demo(content)">
  • ${_("view code")} ${_("hide code")} ${unsafe(content)}
    ${content}
  • <%def name="draw_point_button(image)"> <%def name="point_option_example()" buffered="True"> <%def name="draw_interactive(type)"> %if type: %else: %endif <%def name="drawoption(option, val)" buffered="True"> <%def name="draw_interactive_example()">