| 1 |
<?php |
| 2 |
/** |
| 3 |
* Share Buttons block template |
| 4 |
* |
| 5 |
* @var $attributes - block attributes |
| 6 |
* @var $options - layout options |
| 7 |
* |
| 8 |
* @link https://codesupply.co |
| 9 |
* @since 1.0.0 |
| 10 |
* |
| 11 |
* @package PowerKit |
| 12 |
* @subpackage PowerKit/templates |
| 13 |
*/ |
| 14 |
|
| 15 |
$params = array( |
| 16 |
'title' => esc_html__( 'Share Buttons', 'powerkit' ), |
| 17 |
'accounts' => $attributes['accounts'] ? : array(), |
| 18 |
'total' => $attributes['showTotal'], |
| 19 |
'icons' => $attributes['showIcons'], |
| 20 |
'labels' => $attributes['showLabels'], |
| 21 |
'counts' => $attributes['showCounts'], |
| 22 |
'titles' => $attributes['showTitles'], |
| 23 |
'title_location' => 'inside', |
| 24 |
'label_location' => 'inside', |
| 25 |
'count_location' => 'inside', |
| 26 |
'mode' => apply_filters( 'powerkit_share_buttons_block_counter_mode', 'mixed' ), |
| 27 |
'layout' => $attributes['layout'] ? : 'default', |
| 28 |
'scheme' => 'gutenberg-block', |
| 29 |
); |
| 30 |
|
| 31 |
echo '<div class="' . esc_attr( $attributes['className'] ) . '" ' . ( isset( $attributes['anchor'] ) ? ' id="' . esc_attr( $attributes['anchor'] ) . '"' : '' ) . '>'; |
| 32 |
|
| 33 |
powerkit_share_buttons( $params['accounts'], $params['total'], $params['icons'], $params['titles'], $params['labels'], $params['counts'], $params['title_location'], $params['label_location'], $params['count_location'], $params['mode'], $params['layout'], $params['scheme'], '' ); |
| 34 |
|
| 35 |
echo '</div>'; |
| 36 |
|