PageRenderTime 50ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/andreustimm/zurmo
PHP | 225 lines | 179 code | 8 blank | 38 comment | 2 complexity | afdddfcc02b3f03a27d8fe709d103d3f MD5 | raw file
Possible License(s): BSD-3-Clause, GPL-2.0, LGPL-3.0, LGPL-2.1, BSD-2-Clause
  1. <?php
  2. /*********************************************************************************
  3. * Zurmo is a customer relationship management program developed by
  4. * Zurmo, Inc. Copyright (C) 2015 Zurmo Inc.
  5. *
  6. * Zurmo is free software; you can redistribute it and/or modify it under
  7. * the terms of the GNU Affero 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 Affero General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Affero 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 27 North Wacker Drive
  24. * Suite 370 Chicago, IL 60606. or at email address contact@zurmo.com.
  25. *
  26. * The interactive user interfaces in original and modified versions
  27. * of this program must display Appropriate Legal Notices, as required under
  28. * Section 5 of the GNU Affero General Public License version 3.
  29. *
  30. * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
  31. * these Appropriate Legal Notices must retain the display of the Zurmo
  32. * logo and Zurmo copyright notice. If the display of the logo is not reasonably
  33. * feasible for technical reasons, the Appropriate Legal Notices must display the words
  34. * "Copyright Zurmo Inc. 2015. All rights reserved".
  35. ********************************************************************************/
  36. class AboutView extends View
  37. {
  38. protected function renderContent()
  39. {
  40. $zurmoVersion = self::getZurmoVersionDisplayContent();
  41. $yiiVersion = YiiBase::getVersion();
  42. if (method_exists('R', 'getVersion'))
  43. {
  44. $redBeanVersion = ZurmoRedBean::getVersion();
  45. }
  46. else
  47. {
  48. $redBeanVersion = '&lt; 1.2.9.1';
  49. }
  50. // Begin Not Coding Standard
  51. $content = '<div>
  52. <h1>Zurmo Open Source CRM</h1>';
  53. $content .= '<div id="aboutText" class="clearfix">
  54. <div id="leftCol">
  55. <div id="ZurmoLogo" class="zurmo-logo"></div>
  56. <div><p>';
  57. $content .= Zurmo::t('ZurmoModule', '<strong>Zurmo</strong> is a <strong>Customer Relationship Management</strong> system by <strong>Zurmo Inc.</strong>');
  58. $content .= '</p>';
  59. $content .= '<p>';
  60. $content .= Zurmo::t('ZurmoModule', 'Visit <strong>Zurmo Inc.</strong> at {url}.',
  61. array('{url}' => '<a href="http://www.zurmo.com">http://www.zurmo.com</a>'));
  62. $content .= '<br/>';
  63. $content .= '</p>';
  64. $content .= '<p>';
  65. $content .= Zurmo::t('ZurmoModule', '<strong>Achieve more with a Zurmo subscription</strong> {url}.',
  66. array('{url}' => '<a href="http://www.zurmo.com/needSupport.php?source=about">Learn More</a>'));
  67. $content .= '<br/>';
  68. $content .= '</p>';
  69. $content .= '</div>
  70. <div>
  71. <h3>Core Team</h3>
  72. <ul>
  73. <li>Amit Ashckenazi</li>
  74. <li>Laura Engel</li>
  75. <li>Jason Green</li>
  76. <li>Stafford McKay</li>
  77. <li>Sushil Meher</li>
  78. <li>Nabeel Mushtaq</li>
  79. <li>Ivica Nedeljkovic</li>
  80. <li>Nilesh Patkar</li>
  81. <li>Ross Peetoom</li>
  82. <li>SĂŠrgio Peixoto</li>
  83. <li>Muhammad Shoaib</li>
  84. <li>Mayank Singhai</li>
  85. <li>Ray Stoeckicht</li>
  86. </ul>
  87. </div>
  88. <div>
  89. <h3>Special Thanks</h3>
  90. <ul>
  91. <li>Richard Baldwin - CRM Processes</li>
  92. <li>Nev Delap - Infrastructure</li>
  93. <li>Sergey Fayngold - Language Infrastructure</li>
  94. <li>Theresa Neil - User Interface Design</li>
  95. <li>Mandy Robinson - Icons</li>
  96. <li>Sacha Telgenhof - Language Infrastructure</li>
  97. <li>Subtle Patterns - Background Textures</li>
  98. </ul>
  99. </div>';
  100. $content .= '<div>';
  101. $content .= '<p>';
  102. $content .= Zurmo::t('ZurmoModule', 'Visit the <strong>Zurmo Open Source Project</strong> at {url}.',
  103. array('{url}' => '<a href="http://www.zurmo.org">http://www.zurmo.org</a>'));
  104. $content .= '<br/>';
  105. $content .= '</p>';
  106. $content .= '<p>';
  107. $content .= Zurmo::t('ZurmoModule', '<strong>Zurmo</strong> is licensed under the AGPLv3. You can read the license <a href="http://www.zurmo.org/license">here</a>.');
  108. $content .= '</p></div>';
  109. $content .= '</div>';
  110. $content .= '<div id="rightCol">';
  111. $content .= static::renderSocialLinksContent();
  112. $content .= '<div><h3>Application Info</h3><p>';
  113. $content .= Zurmo::t('ZurmoModule', 'This is <strong>version {zurmoVersion}</strong> of <strong>Zurmo</strong>.',
  114. array('{zurmoVersion}' => $zurmoVersion));
  115. $content .= '</p>';
  116. $content .= '<p>';
  117. $content .= Zurmo::t('ZurmoModule', '<strong>Zurmo</strong> uses the following great Open Source tools and frameworks:');
  118. $content .= '<ul>';
  119. $content .= '<li>';
  120. $content .= Zurmo::t('ZurmoModule', '{url} (version {version} is installed)',
  121. array('{url}' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
  122. '{version}' => $yiiVersion));
  123. $content .= '</li>';
  124. $content .= '<li>';
  125. $content .= Zurmo::t('ZurmoModule', '{url} (version {version} is installed)',
  126. array('{url}' => '<a href="http://www.redbeanphp.com">RedBeanPHP ORM</a>',
  127. '{version}' => $redBeanVersion));
  128. $content .= '</li>';
  129. $content .= '<li>';
  130. $content .= '<a href="http://www.jquery.com">jQuery JavaScript Framework</a> (with Yii)';
  131. $content .= '</li>';
  132. $content .= '</ul></p></div>
  133. <div>
  134. <a class="twitter-timeline" width="300" height="300" href="https://twitter.com/ZurmoCRM" data-widget-id="400952809924730881">
  135. Tweets by @ZurmoCRM
  136. </a>
  137. <script>
  138. !function(d,s,id)
  139. {
  140. var js,
  141. fjs = d.getElementsByTagName(s)[0],
  142. p = /^http:/.test(d.location)?"http":"https";
  143. if(!d.getElementById(id))
  144. {
  145. js = d.createElement(s);
  146. js.id = id;
  147. js.src = p+"://platform.twitter.com/widgets.js";
  148. fjs.parentNode.insertBefore(js,fjs);
  149. }
  150. }
  151. (document,"script","twitter-wjs");
  152. </script>
  153. </div>
  154. </div>
  155. <div id="aboutContactDetails">
  156. <p>
  157. Zurmo Inc. <span>|</span>
  158. <strong>Phone: </strong> (888) 435.2221 <span>|</span>
  159. <strong>Address: </strong> 27 North Wacker Drive Suite 370, Chicago, IL 60606
  160. </p>
  161. </div>';
  162. $content .= '</div></div>';
  163. // End Not Coding Standard
  164. return $content;
  165. }
  166. protected static function getZurmoVersionDisplayContent()
  167. {
  168. if (defined('COMMERCIAL_VERSION'))
  169. {
  170. $zurmoVersion = COMMERCIAL_VERSION;
  171. // Remove REPO_ID from Zurmo version
  172. $zurmoVersion = 'pro.' . substr($zurmoVersion, 0, strpos($zurmoVersion, '(') - 1);
  173. }
  174. else
  175. {
  176. $zurmoVersion = VERSION;
  177. // Remove REPO_ID from Zurmo version
  178. $zurmoVersion = substr($zurmoVersion, 0, strpos($zurmoVersion, '(') - 1);
  179. }
  180. return $zurmoVersion;
  181. }
  182. public static function renderSocialLinksContent()
  183. {
  184. return '<ul class="social-links clearfix">
  185. <li>
  186. <a href="https://www.facebook.com/pages/Zurmo/117701404997971" class="facebook" title="zurmo on facebook" target="_blank">
  187. <span>Zurmo CRM on Facebook</span>
  188. </a>
  189. </li>
  190. <li>
  191. <a href="http://twitter.com/ZurmoCRM" class="twitter" title="zurmo on twitter" target="_blank">
  192. <span>Zurmo CRM on Twitter</span>
  193. </a>
  194. </li>
  195. <li>
  196. <a href="http://www.linkedin.com/company/zurmo-open-source" class="linkedin" title="zurmo on linkedin" target="_blank">
  197. <span>Zurmo CRM on LinkedIn</span>
  198. </a>
  199. </li>
  200. <li><a href="https://bitbucket.org/zurmo/" class="bitbucket" title="zurmo on bitbucket" target="_blank">
  201. <span>Zurmo CRM on BitBucket</span>
  202. </a></li>
  203. <li>
  204. <a href="https://www.pivotaltracker.com/projects/380027" class="pivotal" title="zurmo on pivotal tracker" target="_blank">
  205. <span>Zurmo CRM on Pivotal Tracker</span>
  206. </a>
  207. </li>
  208. <li>
  209. <a href="http://zurmo.org/feed" class="rss" title="zurmo rss" target="_blank">
  210. <span>Zurmo CRM RSS</span>
  211. </a>
  212. </li>
  213. </ul>';
  214. }
  215. }
  216. ?>