HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/dodolodge-net/wp-content/themes/hotel-wp/inc/widgets/copyright/copyright.php
<?php

/**
 * Created by PhpStorm.
 * User: dongc
 * Date: 05/23/2018
 * Time: 5:30 PM
 */
class Copyright_Widget extends Thim_Widget {

	function __construct() {

		parent::__construct(
			'copyright',
			esc_attr__( 'Thim: Copyright', 'hotel-wp' ),
			array(
				'description'   => esc_attr__( 'Copyright', 'hotel-wp' ),
				'help'          => '',
				'panels_groups' => array( 'thim_widget_group' ),
			),
			array(),
			array(
				'first_text'      => array(
					'type'    => 'text',
					'label'   => esc_attr__( 'First Text', 'hotel-wp' ),
					'default' => '&copy;'
				),
				'year'      => array(
					'type'    => 'text',
					'label'   => esc_attr__( 'Year', 'hotel-wp' ),
					'default' => '2018'
				),
				'site_name' => array(
					'type'    => 'text',
					'label'   => esc_attr__( 'Site Name', 'hotel-wp' ),
					'default' => 'ThimPress'
				),
				'link_site' => array(
					'type'    => 'text',
					'label'   => esc_attr__( 'Link Site', 'hotel-wp' ),
					'default' => 'https://thimpress.com/'
				),
				'last_text'      => array(
					'type'    => 'text',
					'label'   => esc_attr__( 'Last Text', 'hotel-wp' ),
					'default' => 'All rights reserved. Powered by WordPress.',
					'allow_html_formatting' => true
				),
			),
			THIM_DIR . 'inc/widgets/copyright/'
		);
	}

	/**
	 * Initialize the CTA widget
	 */

	function get_template_name( $instance ) {
		return 'base';
	}

	function get_style_name( $instance ) {
		return false;
	}
}

function thim_copyright_widget() {
	register_widget( 'Copyright_Widget' );
}

add_action( 'widgets_init', 'thim_copyright_widget' );