-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from infinum/development
added additional check if file exists
- Loading branch information
Showing
20 changed files
with
265 additions
and
167 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/node_modules | ||
/vendor | ||
.git |
This file contains 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
This file contains 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
This file contains 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
57 changes: 57 additions & 0 deletions
57
wp-content/themes/init_theme_name/includes/class-internationalization.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
/** | ||
* Define the internationalization functionality | ||
* | ||
* Loads and defines the internationalization files for this plugin | ||
* so that it is ready for translation. | ||
* | ||
* @since 2.0.0 | ||
* @package init_theme_name | ||
*/ | ||
|
||
namespace Inf_Theme\Includes; | ||
|
||
/** | ||
* Class Internationalization | ||
*/ | ||
class Internationalization { | ||
|
||
/** | ||
* Global theme name | ||
* | ||
* @var string | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
protected $theme_name; | ||
|
||
/** | ||
* Global theme version | ||
* | ||
* @var string | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
protected $theme_version; | ||
|
||
/** | ||
* Initialize class | ||
* | ||
* @param array $theme_info Load global theme info. | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
public function __construct( $theme_info = null ) { | ||
$this->theme_name = $theme_info['theme_name']; | ||
$this->theme_version = $theme_info['theme_version']; | ||
} | ||
|
||
/** | ||
* Load the plugin text domain for translation. | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
public function load_theme_textdomain() { | ||
load_theme_textdomain( $this->theme_name, get_template_directory() . '/languages' ); | ||
} | ||
} |
This file contains 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
Empty file.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.