PageRenderTime 40ms CodeModel.GetById 9ms RepoModel.GetById 1ms app.codeStats 0ms

/admin228c4ef56/themes/default/template/controllers/modules/tab_module_line.tpl

https://gitlab.com/staging06/myproject
Smarty Template | 110 lines | 84 code | 1 blank | 25 comment | 20 complexity | 09f5f9b6d29281d0e3ebe41d83a09042 MD5 | raw file
  1. {*
  2. * 2007-2015 PrestaShop
  3. *
  4. * NOTICE OF LICENSE
  5. *
  6. * This source file is subject to the Academic Free License (AFL 3.0)
  7. * that is bundled with this package in the file LICENSE.txt.
  8. * It is also available through the world-wide-web at this URL:
  9. * http://opensource.org/licenses/afl-3.0.php
  10. * If you did not receive a copy of the license and are unable to
  11. * obtain it through the world-wide-web, please send an email
  12. * to license@prestashop.com so we can send you a copy immediately.
  13. *
  14. * DISCLAIMER
  15. *
  16. * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
  17. * versions in the future. If you wish to customize PrestaShop for your
  18. * needs please refer to http://www.prestashop.com for more information.
  19. *
  20. * @author PrestaShop SA <contact@prestashop.com>
  21. * @copyright 2007-2015 PrestaShop SA
  22. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  23. * International Registered Trademark & Property of PrestaShop SA
  24. *}
  25. <tr>
  26. <td class="fixed-width-sm center">
  27. <img class="img-thumbnail" alt="{$module->name}" src="{if isset($module->image)}{$module->image}{else}{$smarty.const._MODULE_DIR_}{$module->name}/{$module->logo}{/if}" />
  28. </td>
  29. <td>
  30. <div id="anchor{$module->name|ucfirst}" title="{$module->displayName}">
  31. <div class="module_name">
  32. <span style="display:none">{$module->name}</span>
  33. {$module->displayName}
  34. <small class="text-muted">v{$module->version} - by {$module->author}</small>
  35. {if isset($module->type) && $module->type == 'addonsBought'}
  36. - <span class="module-badge-bought help-tooltip text-warning" data-title="{l s="You bought this module on PrestaShop Addons. Thank You."}"><i class="icon-pushpin"></i> <small>{l s="Bought"}</small></span>
  37. {elseif isset($module->type) && $module->type == 'addonsMustHave'}
  38. - <span class="module-badge-popular help-tooltip text-primary" data-title="{l s="This module is available on PrestaShop Addons"}"><i class="icon-group"></i> <small>{l s="Popular"}</small></span>
  39. {elseif isset($module->type) && $module->type == 'addonsPartner'}
  40. - <span class="module-badge-partner help-tooltip text-warning" data-title="{l s="This module is available for free thanks to our partner."}"><i class="icon-pushpin"></i> <small>{l s="Official"}</small></span>
  41. {elseif isset($module->id) && $module->id gt 0}
  42. {if isset($module->version_addons) && $module->version_addons}
  43. <span class="label label-warning">{l s='Need update'}</span>
  44. {/if}
  45. {/if}
  46. </div>
  47. <p class="module_description">
  48. {if isset($module->description) && $module->description ne ''}
  49. {$module->description}
  50. {/if}
  51. {if isset($module->show_quick_view) && $module->show_quick_view}
  52. <br><a href="{$currentIndex|escape:'html':'UTF-8'}&amp;token={$token|escape:'html':'UTF-8'}&amp;ajax=1&amp;action=GetModuleQuickView&amp;module={$module->name|urlencode}" class="fancybox-quick-view"><i class="icon-search"></i> {l s='Read more'}</a>
  53. {/if}
  54. </p>
  55. {if isset($module->message) && (empty($module->name) !== false) && (!isset($module->type) || ($module->type != 'addonsMustHave' || $module->type !== 'addonsNative'))}<div class="alert alert-success"><button type="button" class="close" data-dismiss="alert">&times;</button>{$module->message}</div>{/if}
  56. </div>
  57. </td>
  58. {if isset($module->type) && $module->type == 'addonsMustHave'}
  59. <td>&nbsp;</td>
  60. <td style="text-align: right;">
  61. <p>
  62. <a href="{$module->addons_buy_url|replace:' ':'+'|escape:'html':'UTF-8'}" class="button updated _blank">
  63. <span class="btn btn-default">
  64. <i class="icon-shopping-cart"></i>{if isset($module->price)}{if $module->price|floatval == 0}{l s='Free'}{elseif isset($module->id_currency)} &nbsp;&nbsp;{displayPrice price=$module->price currency=$module->id_currency}{/if}{/if}
  65. </span>
  66. </a>
  67. </p>
  68. </td>
  69. {elseif !isset($module->not_on_disk)}
  70. <td>&nbsp;</td>
  71. <td class="actions">
  72. <div class="btn-group-action">
  73. {if $module->optionsHtml|count > 0}
  74. <div class="btn-group">
  75. {assign var=option value=$module->optionsHtml[0]}
  76. {$option}
  77. {if $module->optionsHtml|count > 1}
  78. <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" >
  79. <span class="caret">&nbsp;</span>
  80. </button>
  81. <ul class="dropdown-menu pull-right">
  82. {foreach $module->optionsHtml key=key item=option}
  83. {if $key != 0}
  84. {if strpos($option, 'title="divider"') !== false}
  85. <li class="divider"></li>
  86. {else}
  87. <li>{$option}</li>
  88. {/if}
  89. {/if}
  90. {/foreach}
  91. </ul>
  92. {/if}
  93. </div>
  94. {/if}
  95. </div>
  96. </td>
  97. {else}
  98. <td>&nbsp;</td>
  99. <td style="text-align: right;">
  100. <p>
  101. <a href="{$module->options.install_url|escape:'html':'UTF-8'}" class="btn btn-success">
  102. <i class="icon-plus-sign-alt"></i>
  103. {l s='Install'}
  104. </a>
  105. </p>
  106. </td>
  107. {/if}
  108. </tr>