Created
December 30, 2019 15:25
-
-
Save giucu91/004f94830c07554accba4f57e6ed96dc to your computer and use it in GitHub Desktop.
Modula Placeholders
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
class Modula_SEO { | |
private $separators = array( | |
'separator_dash' => '-', | |
"separator_pipe" => '|', | |
"separator_colon" => ':', | |
"separator_tilde" => '~', | |
"separator_greater" => '>', | |
"separator_less" => '<', | |
"separator_shift_right" => '»', | |
"separator_shift_left" => '«', | |
"separator_bullet" => '•', | |
"separator_middle_dot" => '·', | |
"separator_none" => ' ' | |
); | |
public function get_separator( $separator ){ | |
if ( isset( $this->$separators[ $separator ] ) ) { | |
return $this->$separators[ $separator ]; | |
} | |
return '-'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment