PATH:
home
/
letacommog
/
letaweb
/
admin
/
modules
/
share_buttons
<?php $buttons = getIndex($this->module_data, 'buttons', '', 'array'); $layout_type = getIndex($this->module_data, 'layout_type', 0, 'integer'); $social_share_buttons = include dirname(__FILE__).'/../../social_buttons/share_buttons.php'; $service_map = array(1,0,0,3,1,0,0); $bts = array(); foreach ($buttons as $button) { $type = $service_map[$layout_type]; if (isset($social_share_buttons[$button]) && $social_share_buttons[$button]['type'] === $type) { $bts[] = $button; } } $this->includeViewFile('share_buttons_item'.$layout_type, array('buttons' => $bts)); ?> <script type="text/javascript"> var e = $('#<?php echo $this->page_id ?> .addthis_toolbox'); if(window.addthis) addthis.toolbox(e[0]); </script>
[+]
..
[-] frontend_script.php
[edit]
[-] frontend_view.php
[edit]
[-] frontend_class.php
[edit]
[-] backend.php
[edit]
[-] backend.js
[edit]