This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php if ( is_front_page() ) : ?> | |
| <h2>Hooray! This is the front page!</h2> | |
| <p>Yep, we are on the frontpage, within this if-clause, we can do whatever we want. Pretty neat, eh?</p> | |
| <?php endif; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Makes theme available for the built-in localization | |
| **/ | |
| function xld_localization_support(){ | |
| $locale = get_locale(); | |
| load_theme_textdomain( 'textdomain', get_template_directory() . '/languages' ); | |
| $locale_file = get_template_directory() . "/languages/$locale.php"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Add textdomain for plugin | |
| */ | |
| function xld_add_textdomain() { | |
| load_plugin_textdomain( 'textdomain', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); | |
| } | |
| add_action( 'plugins_loaded', 'xld_add_textdomain' ) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.php [L] | |
| </IfModule> | |
NewerOlder