PageRenderTime 57ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/ferhatelmas/zurmo
PHP | 213 lines | 180 code | 6 blank | 27 comment | 1 complexity | a59c391b466411a731c517752d5c6a3e MD5 | raw file
Possible License(s): LGPL-3.0, LGPL-2.1, BSD-2-Clause, GPL-3.0, BSD-3-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 = 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>SĂŠrgio Peixoto - Portugese Translation and Development</li>
  86. <li>Mandy Robinson - Icons</li>
  87. <li>Hisateru Tanaka - Japanese Translation</li>
  88. <li>Sacha Telgenhof - Language Infrastructure</li>
  89. <li>Holy Xing - Chinese Translation</li>
  90. </ul>
  91. </div>
  92. </div>';
  93. $content .= '<div id="rightCol">';
  94. $content .= static::renderSocialLinksContent();
  95. $content .= '<div><h3>Application Info</h3><p>';
  96. $content .= Yii::t('Default', 'This is <strong>version {zurmoVersion}</strong> of <strong>Zurmo</strong>.',
  97. array('{zurmoVersion}' => $zurmoVersion));
  98. $content .= '</p>';
  99. $content .= '<p>';
  100. $content .= Yii::t('Default', '<strong>Zurmo</strong> uses the following great Open Source tools and frameworks:');
  101. $content .= '<ul>';
  102. $content .= '<li>';
  103. $content .= Yii::t('Default', '{url} (version {version} is installed)',
  104. array('{url}' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
  105. '{version}' => $yiiVersion));
  106. $content .= '</li>';
  107. $content .= '<li>';
  108. $content .= Yii::t('Default', '{url} (version {version} is installed)',
  109. array('{url}' => '<a href="http://www.redbeanphp.com">RedBeanPHP ORM</a>',
  110. '{version}' => $redBeanVersion));
  111. $content .= '</li>';
  112. $content .= '<li>';
  113. $content .= '<a href="http://www.jquery.com">jQuery JavaScript Framework</a> (with Yii)';
  114. $content .= '</li>';
  115. $content .= '</ul></p></div>
  116. <div>
  117. <script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
  118. <script>
  119. new TWTR.Widget(
  120. {
  121. version: 2,
  122. type: "profile",
  123. rpp: 4,
  124. interval: 30000,
  125. width: "auto",
  126. height: 300,
  127. theme:
  128. {
  129. shell:
  130. {
  131. background: "#f4f4f4",
  132. color: "#262777"
  133. }
  134. ,
  135. tweets:
  136. {
  137. background: "#f4f4f4",
  138. color: "#545454",
  139. links: "#262777"
  140. }
  141. }
  142. ,
  143. features:
  144. {
  145. scrollbar: false,
  146. loop: false,
  147. live: false,
  148. behavior: "all"
  149. }
  150. }).render().setUser("ZurmoCRM").start();
  151. </script>
  152. </div>
  153. </div>
  154. <div id="aboutContactDetails">
  155. <p>
  156. Zurmo Inc. <span>|</span>
  157. <strong>Phone: </strong> (888) 435.2221 <span>|</span>
  158. <strong>Address: </strong> 113 McHenry Road Suite 207, Buffalo Grove IL 60089
  159. </p>
  160. </div>';
  161. $content .= '</div></div>';
  162. // End Not Coding Standard
  163. return $content;
  164. }
  165. protected static function getZurmoVersionDisplayContent()
  166. {
  167. $zurmoVersion = VERSION;
  168. // Remove REPO_ID from Zurmo version
  169. $zurmoVersion = substr($zurmoVersion, 0, strpos($zurmoVersion, '(') - 1);
  170. return $zurmoVersion;
  171. }
  172. public static function renderSocialLinksContent()
  173. {
  174. return '<ul class="social-links clearfix">
  175. <li>
  176. <a href="https://www.facebook.com/pages/Zurmo/117701404997971" class="facebook" title="zurmo on facebook" target="_blank">
  177. <span>Zurmo CRM on Facebook</span>
  178. </a>
  179. </li>
  180. <li>
  181. <a href="http://twitter.com/ZurmoCRM" class="twitter" title="zurmo on twitter" target="_blank">
  182. <span>Zurmo CRM on Twitter</span>
  183. </a>
  184. </li>
  185. <li>
  186. <a href="http://www.linkedin.com/company/zurmo-open-source" class="linkedin" title="zurmo on linkedin" target="_blank">
  187. <span>Zurmo CRM on LinkedIn</span>
  188. </a>
  189. </li>
  190. <li><a href="https://bitbucket.org/zurmo/" class="bitbucket" title="zurmo on bitbucket" target="_blank">
  191. <span>Zurmo CRM on BitBucket</span>
  192. </a></li>
  193. <li>
  194. <a href="https://www.pivotaltracker.com/projects/380027" class="pivotal" title="zurmo on pivotal tracker" target="_blank">
  195. <span>Zurmo CRM on Pivotal Tracker</span>
  196. </a>
  197. </li>
  198. <li>
  199. <a href="http://zurmo.org/feed" class="rss" title="zurmo rss" target="_blank">
  200. <span>Zurmo CRM RSS</span>
  201. </a>
  202. </li>
  203. </ul>';
  204. }
  205. }
  206. ?>