timekeeper_shortcodes.php 812 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /*
  3. * To change this license header, choose License Headers in Project Properties.
  4. * To change this template file, choose Tools | Templates
  5. * and open the template in the editor.
  6. */
  7. class timekeeper_shortcodes extends e_shortcode
  8. {
  9. function sc_element_number($parm='')
  10. {
  11. return vartrue($this->var['number']);
  12. }
  13. function sc_element_symbol($parm='')
  14. {
  15. return vartrue($this->var['symbol']);
  16. }
  17. function sc_element_name($parm='')
  18. {
  19. return vartrue($this->var['name']);
  20. }
  21. function sc_element_phase($parm='')
  22. {
  23. return vartrue($this->var['phase']);
  24. }
  25. function sc_element_atomic_mass($parm='')
  26. {
  27. return '('.vartrue($this->var['atomic_mass']).')';
  28. }
  29. //{SAY_HELLO},{ELEMENT_SYMBOL}
  30. }