PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

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

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