| 1 |
<?php |
| 2 |
/** |
| 3 |
* Social Links 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__( 'Social Links', 'powerkit' ), |
| 17 |
'template' => $attributes['template'], |
| 18 |
'align' => isset( $attributes['aligning'] ) ? $attributes['aligning'] : 'default', |
| 19 |
'scheme' => 'gutenberg-block', |
| 20 |
'maximum' => $attributes['count'], |
| 21 |
'cache' => true, |
| 22 |
'labels' => $attributes['showLabels'], |
| 23 |
'titles' => $attributes['showTitles'], |
| 24 |
'counts' => $attributes['showCounts'], |
| 25 |
'mode' => apply_filters( 'powerkit_social_links_counter_mode', 'mixed' ), |
| 26 |
); |
| 27 |
|
| 28 |
echo '<div class="' . esc_attr( $attributes['className'] ) . '" ' . ( isset( $attributes['anchor'] ) ? ' id="' . esc_attr( $attributes['anchor'] ) . '"' : '' ) . '>'; |
| 29 |
|
| 30 |
powerkit_social_links_appearance( $params ); |
| 31 |
|
| 32 |
echo '</div>'; |
| 33 |
|