Answers.Body: <p>You should use Smarty:</p>
  
  <p>According to the CiviCRM <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Javascript+Reference#JavascriptReference-ProgressiveEnhancement" rel="nofollow">Javascript Reference</a>, public-facing pages should follow the principle of Progressive Enhancement.</p>
  
  <p>"Front-facing pages like contribution pages and event signups should adhere to the standards of PE. All front-end pages should be fully functional with js disabled."</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-14T07:52:42.970Z
Answers.Text: Can you please refer to me an example where the insertion is being used?
Answers.UserDisplayName: Siddharth Gupta
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-14T05:05:16.420Z
Answers.LastActivityDate: 2015-08-14T05:05:16.420Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I am working on a module extension which allow users to Register via different social media/oauth accounts. These login buttons need to be added below all the forms which are anonymously available.</p>
  
  <p>What is the best way I can achieve this? </p>
  
  <ul>
  <li>These buttons can be defined in a small smarty template file which can be inserted into the form.</li>
  <li>or can be created via JavaScript, which can be inserted into the page. </li>
  </ul>
  
  <p>Please suggest what should be the right way to do it.</p>
  
Tags: <extension><forms>
Title: Insert buttons in public registration forms
ThreadText: # Insert buttons in public registration forms
  
  (Asked by: username_0 on 2015-08-14)
  
  I am working on a module extension which allow users to Register via different social media/oauth accounts. These login buttons need to be added below all the forms which are anonymously available.
  
  What is the best way I can achieve this?
  
  * These buttons can be defined in a small smarty template file which can be inserted into the form.
  * or can be created via JavaScript, which can be inserted into the page.
  
  Please suggest what should be the right way to do it.
  
  **Tags:** extension, forms
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-08-14. Score: 2 | Accepted answer
  
  You should use Smarty:
  
  According to the CiviCRM [Javascript Reference](http://wiki.civicrm.org/confluence/display/CRMDOC/Javascript+Reference#JavascriptReference-ProgressiveEnhancement), public-facing pages should follow the principle of Progressive Enhancement.
  
  "Front-facing pages like contribution pages and event signups should adhere to the standards of PE. All front-end pages should be fully functional with js disabled."
  
  > **Comments:**
  > **username_0**: Can you please refer to me an example where the insertion is being used?  
  
  ---
  
  