# powerkit/2.3.6/modules/twitter/public/class-powerkit-twitter-public.php

Powerkit – Supercharge your WordPress Site, version 2.3.6. 66 lines.

- Page: https://pluginprobe.com/plugins/powerkit/2.3.6/code/modules/twitter/public/class-powerkit-twitter-public.php
- Raw: https://pluginprobe.com/plugins/powerkit/2.3.6/raw/modules/twitter/public/class-powerkit-twitter-public.php
- Modified: 2020-09-19T14:20:04+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/powerkit/2.3.6/code/modules/twitter/public/class-powerkit-twitter-public.php#L10-L20`.

```php
<?php
/**
 * The public-facing functionality of the module.
 *
 * @link       https://codesupply.co
 * @since      1.0.0
 *
 * @package    Powerkit
 * @subpackage Modules/public
 */

/**
 * The public-facing functionality of the module.
 */
class Powerkit_Twitter_Public extends Powerkit_Module_Public {

	/**
	 * Initialize
	 */
	public function initialize() {
		add_action( 'init', array( $this, 'register_templates' ) );
		add_filter( 'powerkit_twitter_templates', array( $this, 'template_default' ) );
	}

	/**
	 * Register Templates
	 *
	 * @since    1.0.0
	 * @access   private
	 *
	 * @param array $templates List of Templates.
	 */
	public function register_templates( $templates = array() ) {
		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/twitter-template.php';
	}

	/**
	 * Filter Register Templates
	 *
	 * @since    1.0.0
	 * @access   private
	 *
	 * @param array $templates List of Templates.
	 */
	public function template_default( $templates = array() ) {
		$templates = array(
			'default' => array(
				'name' => 'Default',
				'func' => 'powerkit_twitter_default_template',
			),
		);

		return $templates;
	}

	/**
	 * Register the stylesheets for the public-facing side of the site.
	 */
	public function wp_enqueue_scripts() {
		wp_enqueue_style( 'powerkit-twitter', powerkit_style( plugin_dir_url( __FILE__ ) . 'css/public-powerkit-twitter.css' ), array(), powerkit_get_setting( 'version' ), 'all' );

		// Add RTL support.
		wp_style_add_data( 'powerkit-twitter', 'rtl', 'replace' );
	}
}

```
