SproutCMS

This is the code documentation for the SproutCMS project

source of /modules/Demo/Helpers/FbHack.php

  1. <?php
  2. /*
  3.  * Copyright (C) 2017 Karmabunny Pty Ltd.
  4.  *
  5.  * This file is a part of SproutCMS.
  6.  *
  7.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  8.  * of the GNU General Public License as published by the Free Software Foundation, either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * For more information, visit <http://getsproutcms.com>.
  12.  */
  13.  
  14. namespace SproutModules\Karmabunny\Demo\Helpers;
  15.  
  16.  
  17. /**
  18.  * A basic demonstration of hacky things that can be done in addition to using {@see Fb} on JSON forms
  19.  */
  20. class FbHack {
  21. // Bunch of languages with ISO 639-1 codes starting with e
  22. const E_LANGS = [
  23. 'en' => 'English',
  24. 'ee' => 'Eʋegbe',
  25. 'el' => 'ελληνικά',
  26. 'eo' => 'Esperanto',
  27. 'es' => 'Español',
  28. 'et' => 'eesti keel',
  29. 'eu' => 'euskara',
  30. ];
  31.  
  32. public static function hack() {
  33. return '<span style="color: #090;">Hello world from the FbHack::hack() method!</span>';
  34. }
  35.  
  36. }
  37.