PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/app/protected/modules/zurmo/views/AboutView.php

https://bitbucket.org/codevarun/zurmo-invoice-example
PHP | 81 lines | 56 code | 1 blank | 24 comment | 1 complexity | e1128c5bbb2a2bde5b23608d63cfa333 MD5 | raw file
Possible License(s): GPL-3.0, BSD-3-Clause, LGPL-2.1, BSD-2-Clause
  1. <?php
  2. /*********************************************************************************
  3. * Zurmo is a customer relationship management program developed by
  4. * Zurmo, Inc. Copyright (C) 2012 Zurmo Inc.
  5. *
  6. * Zurmo is free software; you can redistribute it and/or modify it under
  7. * the terms of the GNU General Public License version 3 as published by the
  8. * Free Software Foundation with the addition of the following permission added
  9. * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
  10. * IN WHICH THE COPYRIGHT IS OWNED BY ZURMO, ZURMO DISCLAIMS THE WARRANTY
  11. * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
  12. *
  13. * Zurmo is distributed in the hope that it will be useful, but WITHOUT
  14. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU General Public License along with
  19. * this program; if not, see http://www.gnu.org/licenses or write to the Free
  20. * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  21. * 02110-1301 USA.
  22. *
  23. * You can contact Zurmo, Inc. with a mailing address at 113 McHenry Road Suite 207,
  24. * Buffalo Grove, IL 60089, USA. or at email address contact@zurmo.com.
  25. ********************************************************************************/
  26. class AboutView extends View
  27. {
  28. protected function renderContent()
  29. {
  30. $zurmoVersion = VERSION;
  31. $yiiVersion = YiiBase::getVersion();
  32. if (method_exists('R', 'getVersion'))
  33. {
  34. $redBeanVersion = R::getVersion();
  35. }
  36. else
  37. {
  38. $redBeanVersion = '&lt; 1.2.9.1';
  39. }
  40. $content = '<div id="LoginLogo" class="zurmo-logo"></div>';
  41. $content .= '<p>';
  42. $content .= Yii::t('Default', 'This is <b>version {zurmoVersion}</b> of <b>Zurmo</b>.',
  43. array('{zurmoVersion}' => $zurmoVersion));
  44. $content .= '</p>';
  45. $content .= '<p>';
  46. $content .= Yii::t('Default', '<b>Zurmo</b> is a <b>Customer Relationship Management</b> system by <b>Zurmo Inc.</b>');
  47. $content .= '</p>';
  48. $content .= '<p>';
  49. $content .= Yii::t('Default', 'Visit the <b>Zurmo Open Source Project</b> at {url}.',
  50. array('{url}' => '<a href="http://www.zurmo.org">http://www.zurmo.org</a>'));
  51. $content .= '<br/>';
  52. $content .= '</p>';
  53. $content .= '<p>';
  54. $content .= Yii::t('Default', 'Visit <b>Zurmo Inc.</b> at {url}.',
  55. array('{url}' => '<a href="http://www.zurmo.com">http://www.zurmo.com</a>'));
  56. $content .= '<br/>';
  57. $content .= '</p>';
  58. $content .= '<p>';
  59. $content .= Yii::t('Default', '<b>Zurmo</b> is licensed under the GPLv3. You can read the license <a href="http://www.zurmo.org/license">here</a>.');
  60. $content .= '</p>';
  61. $content .= '<p>';
  62. $content .= Yii::t('Default', '<b>Zurmo</b> uses the following great Open Source tools and frameworks:');
  63. $content .= '</p>';
  64. $content .= '<p>';
  65. $content .= Yii::t('Default', '{url} (version {version} is installed)',
  66. array('{url}' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
  67. '{version}' => $yiiVersion));
  68. $content .= '<br/>';
  69. $content .= Yii::t('Default', '{url} (version {version} is installed)',
  70. array('{url}' => '<a href="http://www.redbeanphp.com">RedBeanPHP ORM</a>',
  71. '{version}' => $redBeanVersion));
  72. $content .= '<br/>';
  73. $content .= Yii::t('Default', '{url} (installed with Yii)',
  74. array('{url}' => '<a href="http://www.jquery.com">jQuery JavaScript Framework</a>'));
  75. $content .= '<br/>';
  76. $content .= '</p>';
  77. return $content;
  78. }
  79. }
  80. ?>