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

/administrator/components/com_easyblog/views/settings/tmpl/default_social_twitter_joomla.php

https://bitbucket.org/pastor399/newcastleunifc
PHP | 214 lines | 198 code | 6 blank | 10 comment | 3 complexity | 1923bdd2bab1851e09ed562575540e92 MD5 | raw file
  1. <?php
  2. /**
  3. * @package EasyBlog
  4. * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
  5. * @license GNU/GPL, see LICENSE.php
  6. * EasyBlog is free software. This version may have been modified pursuant
  7. * to the GNU General Public License, and as distributed it includes or
  8. * is derivative of works licensed under the GNU General Public License or
  9. * other free or open source software licenses.
  10. * See COPYRIGHT.php for copyright notices and details.
  11. */
  12. defined('_JEXEC') or die('Restricted access');
  13. ?>
  14. <table class="noshow">
  15. <tr>
  16. <td width="50%" valign="top">
  17. <fieldset class="adminform">
  18. <legend><?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_TWITTER_TITLE' ); ?></legend>
  19. <table class="admintable" cellspacing="1">
  20. <tbody>
  21. <tr>
  22. <td width="300" class="key">
  23. <span class="editlinktip">
  24. <?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_USE_TWITTER_BUTTON' ); ?>
  25. </span>
  26. </td>
  27. <td valign="top">
  28. <div class="has-tip">
  29. <div class="tip"><i></i><?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_USE_TWITTER_BUTTON_DESC' ); ?></div>
  30. <?php echo $this->renderCheckbox( 'main_twitter_button' , $this->config->get( 'main_twitter_button' ) );?>
  31. </div>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td width="300" class="key">
  36. <span class="editlinktip">
  37. <?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_SHOW_ON_FRONTPAGE' ); ?>
  38. </span>
  39. </td>
  40. <td valign="top">
  41. <div class="has-tip">
  42. <div class="tip"><i></i><?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_SHOW_ON_FRONTPAGE_DESC' ); ?></div>
  43. <?php echo $this->renderCheckbox( 'main_twitter_button_frontpage' , $this->config->get( 'main_twitter_button_frontpage' ) );?>
  44. </div>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td width="300" class="key">
  49. <span class="editlinktip">
  50. <?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_VIA_SCREEN_NAME' ); ?>
  51. </span>
  52. </td>
  53. <td valign="top">
  54. <div class="has-tip">
  55. <div class="tip"><i></i><?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_VIA_SCREEN_NAME_DESC' ); ?></div>
  56. <textarea name="main_twitter_button_via_screen_name" class="inputbox half-width" style="margin-bottom: 10px;height: 75px;"><?php echo $this->config->get( 'main_twitter_button_via_screen_name' );?></textarea>
  57. <div>
  58. <?php echo JText::_('COM_EASYBLOG_SETTINGS_SOCIALSHARE_VIA_SCREEN_NAME_EXAMPLE'); ?>
  59. </div>
  60. </div>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td width="300" class="key" style="vertical-align: top !important;">
  65. <span class="editlinktip">
  66. <?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_TWITTER_BUTTON_STYLE' ); ?>
  67. </span>
  68. </td>
  69. <td valign="top">
  70. <div class="has-tip">
  71. <div class="tip"><i></i><?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_TWITTER_BUTTON_STYLE_DESC' ); ?></div>
  72. <table width="70%" class="social-buttons-preview">
  73. <tr>
  74. <td valign="top">
  75. <div>
  76. <input type="radio" name="main_twitter_button_style" id="tweet_vertical" value="vertical"<?php echo $this->config->get('main_twitter_button_style') == 'vertical' ? ' checked="checked"' : '';?> />
  77. <label for="tweet_vertical"><?php echo JText::_('COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_LARGE');?></label>
  78. </div>
  79. <div style="text-align: center;margin-top: 5px;"><img src="<?php echo JURI::root() . 'administrator/components/com_easyblog/assets/images/tweet/button_vertical.png';?>" /></div>
  80. </td>
  81. <td valign="top">
  82. <div>
  83. <input type="radio" name="main_twitter_button_style" id="tweet_horizontal" value="horizontal"<?php echo $this->config->get('main_twitter_button_style') == 'horizontal' ? ' checked="checked"' : '';?> />
  84. <label for="tweet_horizontal"><?php echo JText::_('COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_SMALL');?></label>
  85. </div>
  86. <div style="text-align: center;margin-top: 5px;"><img src="<?php echo JURI::root() . 'administrator/components/com_easyblog/assets/images/tweet/button_horizontal.png';?>" /></div>
  87. </td>
  88. <td valign="top">
  89. <div>
  90. <input type="radio" name="main_twitter_button_style" id="tweet_button" value="none"<?php echo $this->config->get('main_twitter_button_style') == 'none' ? ' checked="checked"' : '';?> />
  91. <label for="tweet_button"><?php echo JText::_('COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_PLAIN');?></label>
  92. </div>
  93. <div style="text-align: center;margin-top: 5px;"><img src="<?php echo JURI::root() . 'administrator/components/com_easyblog/assets/images/tweet/button.png';?>" /></div>
  94. </td>
  95. </tr>
  96. </table>
  97. </div>
  98. </td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. </fieldset>
  103. <fieldset class="adminform">
  104. <legend><?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_CARDS_TITLE' ); ?></legend>
  105. <p><?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_CARDS_DESC' ); ?></p>
  106. <table class="admintable" cellspacing="1">
  107. <tbody>
  108. <tr>
  109. <td width="300" class="key">
  110. <span class="editlinktip">
  111. <?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_CARDS_ENABLE' ); ?>
  112. </span>
  113. </td>
  114. <td valign="top">
  115. <div class="has-tip">
  116. <div class="tip"><i></i><?php echo JText::_('COM_EASYBLOG_INTEGRATIONS_TWITTER_CARDS_ENABLE_DESC'); ?></div>
  117. <?php echo $this->renderCheckbox( 'main_twitter_cards' , $this->config->get( 'main_twitter_cards' ) );?>
  118. </div>
  119. </td>
  120. </tr>
  121. </table>
  122. </fieldset>
  123. </td>
  124. <td valign="top" width="50%">
  125. <fieldset class="adminform">
  126. <legend><?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_TITLE' ); ?></legend>
  127. <p><?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_INFO' ); ?></p>
  128. <table class="admintable" cellspacing="1">
  129. <tbody>
  130. <tr>
  131. <td width="300" class="key">
  132. <span class="editlinktip">
  133. <?php echo JText::sprintf( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_ENABLE', 'Twitter' ); ?>
  134. </span>
  135. </td>
  136. <td valign="top">
  137. <div class="has-tip">
  138. <div class="tip"><i></i><?php echo JText::sprintf('COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_ENABLE_DESC', 'Twitter'); ?></div>
  139. <?php echo $this->renderCheckbox( 'integrations_twitter_microblog' , $this->config->get( 'integrations_twitter_microblog', false ) );?>
  140. </div>
  141. </td>
  142. </tr>
  143. <tr>
  144. <td width="300" class="key" style="vertical-align: top !important;">
  145. <span class="editlinktip">
  146. <?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_SEARCH_HASHTAGS' ); ?>
  147. </span>
  148. </td>
  149. <td valign="top">
  150. <div class="has-tip">
  151. <div class="tip"><i></i><?php echo JText::_('COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_SEARCH_HASHTAGS_DESC' ); ?></div>
  152. <textarea name="integrations_twitter_microblog_hashes" class="inputbox half-width" style="margin-bottom: 10px;height: 75px;"><?php echo $this->config->get( 'integrations_twitter_microblog_hashes' );?></textarea>
  153. <div><?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_SEARCH_HASHTAGS_INSTRUCTIONS' ); ?></div>
  154. </div>
  155. </td>
  156. </tr>
  157. <tr>
  158. <td width="300" class="key">
  159. <span class="editlinktip">
  160. <?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_CATEGORY' ); ?>
  161. </span>
  162. </td>
  163. <td valign="top">
  164. <div class="has-tip">
  165. <div class="tip"><i></i><?php echo JText::_('COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_CATEGORY_DESC' ); ?></div>
  166. <?php echo EasyBlogHelper::populateCategories('', '', 'select', 'integrations_twitter_microblog_category', $this->config->get( 'integrations_twitter_microblog_category') , true); ?>
  167. </div>
  168. </td>
  169. </tr>
  170. <tr>
  171. <td width="300" class="key">
  172. <span class="editlinktip">
  173. <?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_PUBLISH_STATE' ); ?>
  174. </span>
  175. </td>
  176. <td valign="top">
  177. <div class="has-tip">
  178. <div class="tip"><i></i><?php echo JText::_('COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_PUBLISH_STATE_DESC' ); ?></div>
  179. <?php
  180. $publishFormat = array();
  181. $publishFormat[] = JHTML::_('select.option', '0', JText::_( 'COM_EASYBLOG_UNPUBLISHED_OPTION' ) );
  182. $publishFormat[] = JHTML::_('select.option', '1', JText::_( 'COM_EASYBLOG_PUBLISHED_OPTION' ) );
  183. $publishFormat[] = JHTML::_('select.option', '2', JText::_( 'COM_EASYBLOG_SCHEDULED_OPTION' ) );
  184. $publishFormat[] = JHTML::_('select.option', '3', JText::_( 'COM_EASYBLOG_DRAFT_OPTION' ) );
  185. $showdet = JHTML::_('select.genericlist', $publishFormat, 'integrations_twitter_microblog_publish', 'size="1" class="inputbox"', 'value', 'text', $this->config->get('integrations_twitter_microblog_publish' , '1' ) );
  186. echo $showdet;
  187. ?>
  188. </div>
  189. </td>
  190. </tr>
  191. <tr>
  192. <td width="300" class="key">
  193. <span class="editlinktip">
  194. <?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_FRONTPAGE' ); ?>
  195. </span>
  196. </td>
  197. <td valign="top">
  198. <div class="has-tip">
  199. <div class="tip"><i></i><?php echo JText::_('COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_FRONTPAGE_DESC' ); ?></div>
  200. <?php echo $this->renderCheckbox( 'integrations_twitter_microblog_frontpage' , $this->config->get( 'integrations_twitter_microblog_frontpage' ) );?>
  201. </div>
  202. </td>
  203. </tr>
  204. </table>
  205. </fieldset>
  206. </td>
  207. </tr>
  208. </table>