# getwid/2.0.6/includes/templates/template-parts/post-button.php

Getwid – Gutenberg Blocks, version 2.0.6. 12 lines.

- Page: https://pluginprobe.com/plugins/getwid/2.0.6/code/includes/templates/template-parts/post-button.php
- Raw: https://pluginprobe.com/plugins/getwid/2.0.6/raw/includes/templates/template-parts/post-button.php
- Modified: 2022-03-16T17:06:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/getwid/2.0.6/code/includes/templates/template-parts/post-button.php#L10-L20`.

```php
<?php

//extract styles & classes
extract($extra_attr);
?>

<div class="<?php echo esc_attr( $wrapper_class ); ?>" <?php if ( !empty($wrapper_style) ) { ?> style="<?php echo esc_attr($wrapper_style); ?>" <?php } ?>>
    <a href="<?php echo esc_url( get_permalink() ); ?>" <?php if ( !empty($link_style) ) { ?> style="<?php echo esc_attr($link_style); ?>" <?php } if ( !empty($link_class) ) { ?> class="<?php echo esc_attr($link_class); ?>" <?php } ?>>
		<?php echo wp_kses_post( $attributes['buttonText'] ); ?>
	</a>
</div>

```
