PageRenderTime 46ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/administrator/components/com_sigpro/views/galleries/tmpl/default.php

https://gitlab.com/bilovus-andriy/voda_site
PHP | 193 lines | 182 code | 3 blank | 8 comment | 4 complexity | 8d164fbd67aba914106861b466a42a8c MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: default.php 2757 2013-04-08 16:41:42Z krikor $
  4. * @package Simple Image Gallery Pro
  5. * @author JoomlaWorks - http://www.joomlaworks.net
  6. * @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
  7. * @license http://www.joomlaworks.net/license
  8. */
  9. // no direct access
  10. defined('_JEXEC') or die;
  11. ?>
  12. <div class="sigTopWhiteFix"></div>
  13. <div class="sigGrayFix"></div>
  14. <div id="sigProModal">
  15. <a class="sig-icon sig-icon-cancel-circled sigProModalCloseButton"><i class="hidden"><?php echo JText::_('COM_SIGPRO_CLOSE'); ?></i></a>
  16. <?php if($this->type == 'k2'): ?>
  17. <h3 class="sigProNote"><?php echo JText::_('COM_SIGPRO_SELECT_A_K2_ITEM_TO_CREATE_THE_GALLERY'); ?></h3>
  18. <?php else: ?>
  19. <h3 class="sigProNote"><?php echo JText::_('COM_SIGPRO_ADD_A_GALLERY'); ?></h3>
  20. <span class="sigProSubNote"><?php echo JText::_('COM_SIGPRO_TYPE_A_FOLDER_NAME_TO_CREATE_THE_GALLERY'); ?></span>
  21. <?php endif; ?>
  22. <div class="sigProModalInner">
  23. <iframe src="<?php echo $this->frameSrc; ?>" width="800" height="<?php echo $this->frameHeight; ?>" class="<?php echo $this->frameClass; ?>" frameborder="0"></iframe>
  24. </div>
  25. </div>
  26. <div id="sigPro" class="J<?php echo $this->version; if($this->tmpl == 'component') { echo ' sigProModalSite'; } ?> sigProGalleries">
  27. <!--[if lt IE 8]>
  28. <div id="deprecatedOverlay"><div id="browserUpdateWrapper"><div id="frownie">:(</div><h1 id="sorry">We Are Sorry.</h1><h2 id="notSupported">Your web browser is not supported.</h2><div>Please <strong>upgrade</strong> your browser to it's latest version<br/>or <a href="http://browsehappy.com/" title="Upgrade your browser today!" target="_blank">install another one</a>.</div><div class="clr"></div><div id="modernBrowsers"><a href="http://www.mozilla.org/" title="Mozilla Firefox" target="_blank" id="ff"><span>Firefox</span></a><a href="https://www.google.com/chrome" title="Google Chrome" target="_blank" id="gc"><span>Chrome</span></a><a href="http://www.apple.com/safari/" title="Safari" target="_blank" id="as"><span>Safari</span></a><a href="http://www.opera.com/" title="Opera" target="_blank" id="op"><span>Opera</span></a><a href="http://windows.microsoft.com/en-US/internet-explorer/download-ie" title="Internet Explorer" target="_blank" id="ie"><span>IE</span></a></div></div></div>
  29. <![endif]-->
  30. <div class="sigProHeader sigLight sigStartMenu sigProClearFix">
  31. <div class="sigProTopRow"></div>
  32. <div class="sigProLogo sigFloatLeft">
  33. <i class="hidden"><?php echo JText::_('COM_SIGPRO'); ?></i>
  34. </div>
  35. <span class="sigMenuVersion"><?php echo JText::_('COM_SIGPRO_VERSION'); ?></span>
  36. <?php echo $this->menu; ?>
  37. </div>
  38. <div class="sigProClearFix"></div>
  39. <form action="index.php" method="post" name="adminForm" id="adminForm">
  40. <?php echo $this->sidebar; ?>
  41. <div class="sigProToolbar sigTransition sigBoxSizing sigSlidingItem">
  42. <div class="sigProUpperToolbar">
  43. <h3 class="sigProPageTitle sigPurple"><?php echo strip_tags($this->title); ?></h3>
  44. <a href="#" onclick="Joomla.submitbutton('add')" id="sigProUploader_browse" class="sigProBtnadd"><?php echo JText::_('COM_SIGPRO_ADD_NEW'); ?></a>
  45. <div class="sigFloatRight sigProOrdering">
  46. <label for="sorting"><?php echo JText::_('COM_SIGPRO_SORT'); ?>:</label>
  47. <?php echo $this->lists['sorting']; ?>
  48. </div>
  49. </div>
  50. <div class="sigProClearFix"></div>
  51. <div class="sigProLowerToolbar">
  52. <div class="sigFloatLeft sigThin sigPro50">
  53. <span id="selectedCount" class="sigPurple"></span> <?php echo JText::_('COM_SIGPRO_SELECTED'); ?>
  54. <span id="selectedItem">
  55. <span id="sigSel1" class="hidden"><?php echo JText::_('COM_SIGPRO_ITEM'); ?></span>
  56. <span id="sigSel2" class="hidden"><?php echo JText::_('COM_SIGPRO_ITEMS'); ?></span>
  57. </span>
  58. </div>
  59. <div class="sigFloatLeft sigPro50 sigProItemDeleteLinks">
  60. <a href="#" onclick="if (document.adminForm.boxchecked.value==0){alert('<?php echo JText::_('COM_SIGPRO_NO_ROWS_SELECTED', true); ?>');}else{if (confirm('<?php echo JText::_('COM_SIGPRO_YOU_ARE_GOING_TO_DELETE_PERMANENTLY_THE_SELECTED_FOLDERS_FROM_THE_SERVER_ARE_YOU_SURE', true); ?>')){Joomla.submitbutton('delete');}}" class="sig-icon-trash">Delete</a>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="sigProClearFix"></div>
  65. <div class="sigProGrid sigProClearFix sigTransition sigBoxSizing sigSlidingItem">
  66. <?php if ( $this->total == '0' ): ?>
  67. <div class="sigProGalleryEmpty">
  68. <div class="sigProGalleryEmptyMessage blockIt">
  69. <h2 class="sigTextCenter"><?php echo JText::_('COM_SIGPRO_CLICK_ON_THE_ADD_GALLERY_BUTTON_TO_UPLOAD_SOME_GALLERIES'); ?></h2>
  70. <div class="sigProGalleryEmptyBody sigTextCenter">
  71. <div class="sig-icon hugeNoGalleryIcon sig-icon-picture"></div>
  72. <?php echo JText::_('COM_SIGPRO_THIS_SITE_IS_EMPTY'); ?>
  73. </div>
  74. </div>
  75. </div>
  76. <?php endif; ?>
  77. <?php $counter = 0; foreach ($this->rows as $row): ?>
  78. <div class="sigProGallery sigProGridColumn">
  79. <div class="sigProGalleryInner">
  80. <div class="sigProImageContainer">
  81. <div class="sigProNumOfImages"><?php echo $row->numOfImages;?></div>
  82. <?php if($this->editorName): ?>
  83. <div class="sigProGalleryPreviewImage sigCover sigProGalleryImageLink" style="background-image: url(<?php echo $row->url; ?>);"></div>
  84. <div class="sigProGalleryActions">
  85. <a class="sigProGalleryAction sigProInsertButton" title="<?php echo JText::_('COM_SIGPRO_INSERT'); ?>" href="<?php echo $row->folder; ?>">
  86. <span class="sigIcon sig-icon-login"></span>
  87. <?php echo JText::_('COM_SIGPRO_INSERT'); ?>
  88. </a>
  89. <a class="sigProGalleryAction" href="<?php echo $row->link; ?>">
  90. <span class="sigIcon sig-icon-eye"></span>
  91. <?php echo JText::_('COM_SIGPRO_VIEW'); ?>
  92. </a>
  93. </div>
  94. <?php else: ?>
  95. <a class="sigProGalleryImageLink sigCover sigSafeTransition" href="<?php echo $row->link; ?>" style="background-image: url(<?php echo $row->url; ?>);">
  96. </a>
  97. <?php endif; ?>
  98. </div>
  99. <div class="sigCheckWrapper">
  100. <label class="sigCheckbox" for="cb<?php echo $counter; ?>">
  101. <span class="sigIcon"></span><span class="sigIconFade sig-icon-check"></span>
  102. <?php echo JHTML::_('grid.id', $counter, $row->folder, false, 'folder'); ?>
  103. </label>
  104. </div>
  105. <div class="sigProGalleryTextWrapper">
  106. <div class="sigProGalleryTitle sigProCollapse">
  107. <a class="sigProGalleryLink" href="<?php echo $row->link; ?>"><?php echo $row->title; ?></a>
  108. </div>
  109. <div class="sigProGalleryInfo">
  110. <div class="sigProGalleryPath sigProCollapse"><span><?php echo JText::_('COM_SIGPRO_PATH'); ?>:</span> <?php echo $row->folder;?></div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <?php $counter++; endforeach; ?>
  116. <div class="sigProClearFix"></div>
  117. <?php if($this->tmpl == 'component' && $this->type == 'site'): ?>
  118. <div class="sigProGallerySettings">
  119. <div class="sigProBtmRow"></div>
  120. <div class="sigProGallerySettingsInner">
  121. <h3><?php echo JText::_('COM_SIGPRO_GALLERY_SETTINGS'); ?>:</h3>
  122. <div class="innerSettingsBlock">
  123. <label><?php echo JText::_('COM_SIGPRO_THUMBNAIL_WIDTH'); ?></label>
  124. <input type="text" name="width" value="" size="4" />
  125. </div>
  126. <div class="innerSettingsBlock">
  127. <label><?php echo JText::_('COM_SIGPRO_THUMBNAIL_HEIGHT'); ?></label>
  128. <input type="text" name="height" value="" size="4" />
  129. </div>
  130. <div class="innerSettingsBlock">
  131. <label><?php echo JText::_('COM_SIGPRO_DISPLAY_MODE'); ?></label>
  132. <?php echo $this->displayMode; ?>
  133. </div>
  134. <div class="innerSettingsBlock">
  135. <label><?php echo JText::_('COM_SIGPRO_CAPTIONS_MODE'); ?></label>
  136. <?php echo $this->captionsMode; ?>
  137. </div>
  138. </div>
  139. </div>
  140. <?php endif; ?>
  141. </div>
  142. <div class="sigProPagination sigProClearFix sigBoxSizing">
  143. <div class="sigProPagiWrap">
  144. <div class="sigFloatLeft sigProPageItem">
  145. <input id="jToggler" type="checkbox" name="toggle" value="" onclick="<?php echo (version_compare(JVERSION, '1.6.0', 'ge'))? 'Joomla.checkAll(this);':'checkAll('.count($this->rows).');'; ?>" />
  146. <label for="jToggler" class="sigProLabel"><?php echo JText::_('COM_SIGPRO_SELECT_ALL'); ?></label>
  147. </div>
  148. <?php echo $this->pagination; ?>
  149. <div class="sigFloatRight sigProPageItem">
  150. <strong><?php echo $this->total; ?></strong> <span class="sigPurple thin"><?php echo JText::_('COM_SIGPRO_GALLERIES'); ?></span>
  151. </div>
  152. </div>
  153. </div>
  154. <input type="hidden" name="option" value="com_sigpro" />
  155. <input type="hidden" name="view" value="galleries" />
  156. <input type="hidden" name="task" value="" />
  157. <input type="hidden" name="tmpl" value="<?php echo $this->tmpl; ?>" />
  158. <input type="hidden" name="editorName" value="<?php echo $this->editorName; ?>" />
  159. <input type="hidden" name="type" value="<?php echo $this->type; ?>" />
  160. <input type="hidden" name="boxchecked" value="0" />
  161. <input type="hidden" name="newFolder" value="" />
  162. <?php echo JHTML::_('form.token'); ?>
  163. </form>
  164. </div>
  165. <div class="sigBtmWhiteFix"></div>