<?php
$footer->addSubSection( array(
	'name'     => esc_html__( 'Copyright Options', 'cakeart' ),
	'id'       => 'display_copyright',
	'position' => 12,
) );

$footer->createOption( array(
	'name'    => esc_html__( 'Back To Top', 'cakeart' ),
	'id'      => 'show_to_top',
	'type'    => 'checkbox',
	'des'     => esc_html__( 'show or hide back to top', 'cakeart' ),
	'default' => true,
) );

$footer->createOption( array(
	'name'        => esc_html__( 'Background Color', 'cakeart' ),
	'id'          => 'copyright_bg_color',
	'type'        => 'color-opacity',
	'default'     => '#1b1b1b',
	'livepreview' => '$("#powered").css("background-color", value);'
) );

$footer->createOption( array(
	'name'        => esc_html__( 'Text Color', 'cakeart' ),
	'id'          => 'copyright_text_color',
	'type'        => 'color-opacity',
	'default'     => '#666666',
	'livepreview' => '$("#powered").css("color", value);'
) );
$copy_right = 'http://www.thimpress.com';
$copy_text = 'Copyright' . date('Y'). 'by';
$footer->createOption( array(
	'name'        => esc_html__( 'Text', 'cakeart' ),
	'id'          => 'copyright_text',
	'type'        => 'textarea',
	'default'     => '<div class="col-md-6 col-sm-6 col-xs-12">' . esc_html__( $copy_text, 'cakeart' ) . ' <span>' . esc_html( 'CAKEART' ) . '</span>' . esc_html__( '. Powered by WordPress.', 'cakeart' ) . '</div>
					 <div class="col-md-6 col-sm-6 col-xs-12 right">' . esc_html__( 'Designed By', 'cakeart' ) . ' <a href="' . esc_url( $copy_right ) . '">' . esc_html( 'ThimPress' ) . '</a></div>',
	'livepreview' => '$("#powered").html(function(){return "<p>"+ value + "</p>";})'
) );