| @@ -50,8 +50,13 @@ | ||
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * |
| 53 | 53 | */ |
| 54 | + const CJT_SCRTIPS_WEB_SITE_DOMAIN = 'cjt-scripts.com'; | |
| 55 | + | |
| 56 | + /** | |
| 57 | + * | |
| 58 | + */ | |
| 54 | 59 | const CJT_WEB_SITE_DOMAIN = 'css-javascript-toolbox.com'; |
| 55 | 60 | |
| 56 | 61 | /** |
| 57 | 62 | * put your comment there... |
| @@ -136,9 +141,9 @@ | ||
| 136 | 141 | /** |
| 137 | 142 | * put your comment there... |
| 138 | 143 | * |
| 139 | 144 | */ |
| 140 | - public function getCJTWebSiteURL($path = null) { | |
| 145 | + public static function getCJTWebSiteURL($path = null) { | |
| 141 | 146 | $domain = self::CJT_WEB_SITE_DOMAIN; |
| 142 | 147 | return "http://{$domain}/{$path}"; |
| 143 | 148 | } |
| 144 | 149 | |
| @@ -165,9 +170,9 @@ | ||
| 165 | 170 | /** |
| 166 | 171 | * put your comment there... |
| 167 | 172 | * |
| 168 | 173 | */ |
| 169 | - public function getSecurityToken() { | |
| 174 | + public static function getSecurityToken() { | |
| 170 | 175 | return wp_create_nonce(CJTController::NONCE_ACTION); |
| 171 | 176 | } |
| 172 | 177 | |
| 173 | 178 | /** |
| @@ -174,9 +179,9 @@ | ||
| 174 | 179 | * put your comment there... |
| 175 | 180 | * |
| 176 | 181 | * @param mixed $text |
| 177 | 182 | */ |
| 178 | - public function getText($text) { | |
| 183 | + public static function getText($text) { | |
| 179 | 184 | // Make sure to don't use $this while calling! |
| 180 | 185 | // $this might be an object other than CssJSToolbox! |
| 181 | 186 | return self::__callStatic('cssJSToolbox.ongettext', array(__($text, CJTOOLBOX_TEXT_DOMAIN))); |
| 182 | 187 | } |