Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FORUM THREAD for this issue:
- http://eventespresso.com/topic/where-can-i-find-this-page-to-edit-the-text-please/#post-49948
- ____________________________________
- <?php
- /* By taking advantage of hooks, filters, and the Custom Loop API, you can make Thesis
- * do ANYTHING you want. For more information, please see the following articles from
- * the Thesis Userβs Guide or visit the members-only Thesis Support Forums:
- *
- * Hooks: http://diythemes.com/thesis/rtfm/customizing-with-hooks/
- * Filters: http://diythemes.com/thesis/rtfm/customizing-with-filters/
- * Custom Loop API: http://diythemes.com/thesis/rtfm/custom-loop-api/
- ---:[ place your custom code below this line ]:---*/
- //Load admin area
- require_once('admin/functions.php');
- //Load custom files
- require_once('custom_scripts.php');
- require_once('custom_menus.php');
- //Load content
- require_once('content/overall_html.php');
- require_once('content/content_box.php');
- require_once('content/footer.php');
- require_once('content/page_nav.php');
- //Widgets
- require_once('widgets/category_list_widget.php');
- require_once('widgets/social_media_widget.php');
- //Default remove actions
- remove_action('thesis_hook_footer','thesis_attribution');
- /* --My Editing-- */
- /* This is for changing event esspresso text such as: Members only event */
- function mycustom_filter_gettext( $translated, $original, $domain ) {
- // This is an array of original strings
- // and what they should be replaced with
- $strings = array(
- /* 'Register' => 'Sign up', */
- /* 'Confirm and go to payment page' => 'Complete registration', */
- 'Member Only Event' => 'This is a Member Only Event. Please login or, if you have not yet registered with this website, please do that <a href="http://bridale-architectural-antiques.co.uk/yep_3/membership/" target="_blank">here (it's free to join) </a>',
- // Add some more strings here
- );
- // See if the current string is in the $strings array
- // If so, replace it's translation
- if ( isset( $strings[$original] ) ) {
- // This accomplishes the same thing as __()
- // but without running it through the filter again
- $translations = &get_translations_for_domain( $domain );
- $translated = $translations->translate( $strings[$original] );
- }
- return $translated;
- }
- add_filter( 'gettext', 'mycustom_filter_gettext', 10, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement