Making WordPress.org

Changeset 704


Ignore:
Timestamp:
06/13/2014 05:34:07 PM (11 years ago)
Author:
iandunn
Message:

Rosetta theme: Allow admins to customize the Contact form introduction.

If they change the page contents, the new contents will be displayed instead of the default introduction.
Fixes #489

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/contact.php

    r465 r704  
    164164
    165165<h3><?php _e('Contact', 'rosetta'); ?></h3>
    166 <p><?php _e('You can contact translators and this site administrators via this form:', 'rosetta'); ?></p>
    167 <p><?php /* translators: feel free to add links to places, where one can get support in your language. */ _e('<strong>Please, do not post support requests here!</strong> They will probably be ignored.', 'rosetta');?></p>
     166
     167<?php if ( "The contents of this page are filled automatically, you don't need to spend time here. Just change the title." == get_the_content() ) : ?>
     168    <p><?php _e('You can contact translators and this site administrators via this form:', 'rosetta'); ?></p>
     169    <p><?php /* translators: feel free to add links to places, where one can get support in your language. */ _e('<strong>Please, do not post support requests here!</strong> They will probably be ignored.', 'rosetta');?></p>
     170<?php else: ?>
     171    <?php the_content(); ?>
     172<?php endif; ?>
     173
    168174<form id="contactme" method="post" action="/contact/#return">
    169175  <table id="form">
Note: See TracChangeset for help on using the changeset viewer.