get( 'Author' ); } public static function get_heart_icon() { return '♥'; } /** * Get all data */ public static function get_data() { return array( 'current_year' => self::get_current_year(), 'site_title' => self::get_site_title(), 'theme_author' => self::get_theme_author(), 'heart_icon' => self::get_heart_icon(), ); } public static function replace_variables( $content ) { $content = str_replace( '[current_year]', self::get_current_year(), $content ); $content = str_replace( '[theme_author]', self::get_theme_author(), $content ); $content = str_replace( '[site_title]', self::get_site_title(), $content ); $content = str_replace( '[heart_icon]', self::get_heart_icon(), $content ); return $content; } }