| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- class timekeeper_shortcodes extends e_shortcode
- {
- function sc_say_hello($parm='')
- {
- return "Hello ".USERNAME;
- }
-
- function sc_element_number($parm='')
- {
- return vartrue($this->var['number']);
- }
-
- function sc_element_symbol($parm='')
- {
- return vartrue($this->var['symbol']);
- }
-
- function sc_element_name($parm='')
- {
- return vartrue($this->var['name']);
- }
-
- function sc_element_phase($parm='')
- {
- return vartrue($this->var['phase']);
- }
-
- function sc_element_atomic_mass($parm='')
- {
- return '('.vartrue($this->var['atomic_mass']).')';
- }
- //{SAY_HELLO},{ELEMENT_SYMBOL}
-
- }
|