PageRenderTime 52ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/sanbrar/zurmo_invoice
PHP | 209 lines | 178 code | 5 blank | 26 comment | 3 complexity | 6d3b58cf3855e4551de63b186237104f MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1, LGPL-3.0, BSD-2-Clause, GPL-3.0
  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 = self::getZurmoVersionDisplayContent();
  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. // Begin Not Coding Standard
  41. $content = '<div>
  42. <h1>Zurmo Open Source CRM</span></h1>';
  43. $content .= '<div id="aboutText" class="clearfix">
  44. <div id="leftCol">
  45. <div id="ZurmoLogo" class="zurmo-logo"></div>
  46. <div>
  47. <p><strong>Zurmo</strong> is a <strong>Customer Relationship Management</strong> system by <strong>Zurmo Inc.</strong>
  48. </p>';
  49. $content .= '<p>';
  50. $content .= Yii::t('Default', 'Visit the <strong>Zurmo Open Source Project</strong> at {url}.',
  51. array('{url}' => '<a href="http://www.zurmo.org">http://www.zurmo.org</a>'));
  52. $content .= '<br/>';
  53. $content .= '</p>';
  54. $content .= '<p>';
  55. $content .= Yii::t('Default', 'Visit <strong>Zurmo Inc.</strong> at {url}.',
  56. array('{url}' => '<a href="http://www.zurmo.com">http://www.zurmo.com</a>'));
  57. $content .= '<br/>';
  58. $content .= '</p>';
  59. $content .= '<p>';
  60. $content .= Yii::t('Default', '<strong>Zurmo</strong> is licensed under the GPLv3. You can read the license <a href="http://www.zurmo.org/license">here</a>.');
  61. $content .= '</p></div>
  62. <div>
  63. <h3>Core Team</h3>
  64. <ul>
  65. <li>Amit Ashckenazi</li>
  66. <li>Laura Engel</li>
  67. <li>Jason Green</li>
  68. <li>Stafford McKay</li>
  69. <li>Ivica Nedeljkovic</li>
  70. <li>Nilesh Patkar</li>
  71. <li>Ross Peetoom</li>
  72. <li>Ray Stoeckicht</li>
  73. </ul>
  74. </div>
  75. <div>
  76. <h3>Special Thanks</h3>
  77. <ul>
  78. <li>Richard Baldwin - CRM Processes</li>
  79. <li>Camilo Calderรณn - Documentation</li>
  80. <li>Nev Delap - Infrastructure</li>
  81. <li>Ramin Farmani - Farsi Translation</li>
  82. <li>Evan Fazio - Gamification</li>
  83. <li>Justin Ferguson - Documentation</li>
  84. <li>Theresa Neil - User Interface Design</li>
  85. <li>Mandy Robinson - Icons</li>
  86. <li>Hisateru Tanaka - Japanese Translation</li>
  87. <li>Sacha Telgenhof - Language Infrastructure</li>
  88. <li>Holy Xing - Chinese Translation</li>
  89. </ul>
  90. </div>
  91. </div>';
  92. $content .= '<div id="rightCol">
  93. <ul class="social-links clearfix">
  94. <li>
  95. <a href="https://www.facebook.com/pages/Zurmo/117701404997971" class="facebook" title="zurmo on facebook" target="_blank">
  96. <span>Zurmo CRM on Facebook</span>
  97. </a>
  98. </li>
  99. <li>
  100. <a href="http://twitter.com/ZurmoCRM" class="twitter" title="zurmo on twitter" target="_blank">
  101. <span>Zurmo CRM on Twitter</span>
  102. </a>
  103. </li>
  104. <li>
  105. <a href="http://www.linkedin.com/company/zurmo-open-source" class="linkedin" title="zurmo on linkedin" target="_blank">
  106. <span>Zurmo CRM on LinkedIn</span>
  107. </a>
  108. </li>
  109. <li><a href="https://bitbucket.org/zurmo/" class="bitbucket" title="zurmo on bitbucket" target="_blank">
  110. <span>Zurmo CRM on BitBucket</span>
  111. </a></li>
  112. <li>
  113. <a href="https://www.pivotaltracker.com/projects/380027" class="pivotal" title="zurmo on pivotal tracker" target="_blank">
  114. <span>Zurmo CRM on Pivotal Tracker</span>
  115. </a>
  116. </li>
  117. <li>
  118. <a href="http://zurmo.org/feed" class="rss" title="zurmo rss" target="_blank">
  119. <span>Zurmo CRM RSS</span>
  120. </a>
  121. </li>
  122. </ul>
  123. <div><h3>Application Info</h3><p>';
  124. $content .= Yii::t('Default', 'This is <strong>version {zurmoVersion}</strong> of <strong>Zurmo</strong>.',
  125. array('{zurmoVersion}' => $zurmoVersion));
  126. $content .= '</p>';
  127. $content .= '<p>';
  128. $content .= Yii::t('Default', '<strong>Zurmo</strong> uses the following great Open Source tools and frameworks:');
  129. $content .= '<ul>';
  130. $content .= '<li>';
  131. $content .= Yii::t('Default', '{url} (version {version} is installed)',
  132. array('{url}' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
  133. '{version}' => $yiiVersion));
  134. $content .= '</li>';
  135. $content .= '<li>';
  136. $content .= Yii::t('Default', '{url} (version {version} is installed)',
  137. array('{url}' => '<a href="http://www.redbeanphp.com">RedBeanPHP ORM</a>',
  138. '{version}' => $redBeanVersion));
  139. $content .= '</li>';
  140. $content .= '<li>';
  141. $content .= '<a href="http://www.jquery.com">jQuery JavaScript Framework</a> (with Yii)';
  142. $content .= '</li>';
  143. $content .= '</ul></p></div>
  144. <div>
  145. <script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
  146. <script>
  147. new TWTR.Widget(
  148. {
  149. version: 2,
  150. type: "profile",
  151. rpp: 4,
  152. interval: 30000,
  153. width: "auto",
  154. height: 300,
  155. theme:
  156. {
  157. shell:
  158. {
  159. background: "#f4f4f4",
  160. color: "#262777"
  161. }
  162. ,
  163. tweets:
  164. {
  165. background: "#f4f4f4",
  166. color: "#545454",
  167. links: "#262777"
  168. }
  169. }
  170. ,
  171. features:
  172. {
  173. scrollbar: false,
  174. loop: false,
  175. live: false,
  176. behavior: "all"
  177. }
  178. }).render().setUser("ZurmoCRM").start();
  179. </script>
  180. </div>
  181. </div>
  182. <div id="aboutContactDetails">
  183. <p>
  184. Zurmo Inc. <span>|</span>
  185. <strong>Phone: </strong> (888) 435.2221 <span>|</span>
  186. <strong>Address: </strong> 113 McHenry Road Suite 207, Buffalo Grove IL 60089
  187. </p>
  188. </div>';
  189. $content .= '</div></div>';
  190. // End Not Coding Standard
  191. return $content;
  192. }
  193. protected static function getZurmoVersionDisplayContent()
  194. {
  195. $zurmoVersion = VERSION;
  196. if (substr($zurmoVersion, -2) == '()')
  197. {
  198. $zurmoVersion = substr($zurmoVersion, 0, -2);
  199. }
  200. return $zurmoVersion;
  201. }
  202. }
  203. ?>