<!-- FOOTER SETTINGS -->
<?php

$tdb_footer_template_is_set = false;

if ( td_global::is_tdb_registered() ) {

    $tdb_footer_templates = array();

    // read the tdb category templates
    $wp_query_templates = new WP_Query( array(
            'post_type' => 'tdb_templates',
		    'posts_per_page' => -1
	    )
    );

    if ( !empty( $wp_query_templates->posts ) ) {

        foreach ( $wp_query_templates->posts as $post ) {

            $tdb_template_type = get_post_meta( $post->ID, 'tdb_template_type', true );

            if ( $tdb_template_type === 'footer' ) {
                $tdb_footer_templates[] = array(
                    'text' => $post->post_title,
                    'val' => 'tdb_template_' . $post->ID
                );
            }

            $tdb_footer_template = td_options::get( 'tdb_footer_template' );

            if ( $tdb_template_type === 'footer' && $tdb_footer_template === 'tdb_template_' . $post->ID ) {
                $tdb_footer_template_is_set = true;
            }
        }
    }


?>

<!-- Cloud Library Category template -->
<?php echo td_panel_generator::box_start(); ?>

    <div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title"><?php _e('Cloud Library Template', TD_THEME_NAME); ?></span>
        <p>Set a <a href="<?php echo admin_url( 'edit.php?post_type=tdb_templates&meta_key=tdb_template_type&meta_value=footer#/' ) ?>" target="_blank">Cloud Library</a> footer template for all website.</p>
    </div>
    <div class="td-box-control-full">

        <?php

        $option_id = 'tdb_footer_template';
        if (class_exists('SitePress', false)) {
            global $sitepress;
            $sitepress_settings = $sitepress->get_settings();
            $translation_mode = (int) $sitepress_settings['custom_posts_sync_option'][ 'tdb_templates'];
            if ( 1 === $translation_mode ) {
                $option_id .= $sitepress->get_current_language();
            }
        }

        echo td_panel_generator::dropdown(array(
            'ds' => 'td_option',
            'option_id' => $option_id,
            'values' => array_merge(
                array(
                    array('text' => '- No Template -' , 'val' => ''),
                ),
                $tdb_footer_templates
            )
        ));

        ?>

    </div>
</div>
<?php echo td_panel_generator::box_end();?>
<hr>
<?php } ?>
<?php if( 'Newsmag' == TD_THEME_NAME || ( 'Newspaper' == TD_THEME_NAME && defined('TD_STANDARD_PACK') ) ) {
    echo td_panel_generator::box_start(__('Footer settings', TD_THEME_NAME), true, 'tdb-hide');
    ?>

    <div class="td-box-row">
        <div class="td-box-description td-box-full">
            <span class="td-box-title"><?php _e('More information:', TD_THEME_NAME); ?></span>
            <p><?php _e('The footer uses sidebars to show information. Here you can customize the number of sidebars and the layout. To add content to the footer head go to the widgets section and drag widget to the Footer 1, Footer 2 and Footer 3 sidebars.', TD_THEME_NAME); ?></p>
            <p><?php _e('Some footer templates contain predefined content, like <strong>Info content</strong> and can be set from <strong>Footer info content</strong> section.', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-row-margin-bottom"></div>
    </div>


    <!-- Enable footer -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('SHOW FOOTER', TD_THEME_NAME); ?></span>
            <p><?php _e('Show or hide the footer', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::checkbox(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer',
                'true_value' => '',
                'false_value' => 'no'
            ));
            ?>
        </div>
    </div>



    <!-- LAYOUT -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('Footer templates', TD_THEME_NAME); ?></span>
            <p><?php _e('Set the footer template', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::visual_select_o(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_template',
                'values' => td_api_footer_template::_helper_to_panel_values()
            ));
            ?>
        </div>
    </div>

<?php } ?>



<!-- PAGE FOOTER -->
<?php if ('Newspaper' == TD_THEME_NAME && defined('TD_STANDARD_PACK')) { ?>
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title"><?php _e('Footer page', TD_THEME_NAME); ?></span>
        <p><?php _e('Set the footer page', TD_THEME_NAME); ?></p>
    </div>
    <div class="td-box-control-full td-footer-page-container">
        <?php

        $page_values = array();

        $pages = get_pages(array());
        foreach ( $pages as $page ) {

	        $text = $page->post_title;
	        if ( empty( $text ) ) {
		        $text = '#' . $page->ID . '(no title)';
	        }

	        $page_values[] = array(
		        'text' => $text,
		        'val' => $page->ID
	        );
        }

        echo td_panel_generator::dropdown(array(
            'ds' => 'td_option',
            'option_id' => 'tds_footer_page',
            'values' => array_merge(
	            array(
                    array('text' => '- No page -' , 'val' => ''),
	            ),
	            $page_values
            )
        ));

        $href = '#';
        $style = 'display: none';

        $tds_footer_page = td_util::get_option('tds_footer_page');

        if ('' !== $tds_footer_page && 'publish' === get_post_status( intval($tds_footer_page))) {
			$href = admin_url() . 'post.php?post_id=' . td_util::get_option('tds_footer_page') . '&td_action=tdc&tdbTemplateType=page';
	        $style = '';
        }

        echo '<a class="td-view-footer-page" href="' . $href . '" style="' . $style . '" target="_blank">Edit footer page</a>';

        ?>
    </div>
</div>
<?php } ?>

<?php
if( 'Newsmag' == TD_THEME_NAME || ( 'Newspaper' == TD_THEME_NAME && defined('TD_STANDARD_PACK') ) ) {
	echo td_panel_generator::box_end();
}
?>


<!-- FOOTER INSTAGRAM SETTINGS -->
<?php if( 'Newsmag' == TD_THEME_NAME || ( 'Newspaper' == TD_THEME_NAME && defined('TD_STANDARD_PACK') ) ) {
    echo td_panel_generator::box_start(__('Instagram settings', TD_THEME_NAME), false, 'tdb-hide'); ?>

    <div class="td-box-row">
        <div class="td-box-description td-box-full">
            <p><?php _e('From this section you can set and configure the <strong>Footer Instagram Section</strong> - this area
                appears above the footer section on all pages', TD_THEME_NAME); ?></p>
            <ul>
                <li> <?php _e('Note: When you enable this make sure you also enter an Instagram ID in the <strong>INSTAGRAM
                        ID</strong> field!', TD_THEME_NAME); ?>
                </li>
            </ul>
        </div>


        <div class="td-box-row-margin-bottom"></div>
    </div>

    <!-- Enable Instagram -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('SHOW THE FOOTER INSTAGRAM SECTION', TD_THEME_NAME); ?></span>
            <p><?php _e('Show or hide the instagram section', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::checkbox(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_instagram',
                'true_value' => 'show',
                'false_value' => ''
            ));
            ?>
        </div>
    </div>

    <!-- Instagram ID -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('Instagram ID', TD_THEME_NAME); ?></span>
            <p><?php _e('Enter the ID as it appears after the instagram url ( ex. instagram.com/<strong>myID</strong> )', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::input(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_instagram_id'
            ));
            ?>
        </div>
    </div>
<?php if (TD_DEPLOY_MODE === 'dev' || TD_DEPLOY_MODE === 'demo') { ?>
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('Instagram demo ids', TD_THEME_NAME); ?></span>
            <p><?php _e('Enter data separated by comma in this order (avatar, followers number, images ids)', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::textarea(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_instagram_data'
            ));
            ?>
        </div>
    </div>
<?php } ?>
    <!-- number of images per row -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('Number of images per row:', TD_THEME_NAME); ?></span>
            <p><?php _e('Set the number of images displayed on each row (default is 3)', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::dropdown(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_instagram_on_row_images_number',
                'values' => array(
                    array('text' => '- Default -', 'val' => ''),
                    array('text' => '1', 'val' => 1),
                    array('text' => '2', 'val' => 2),
                    array('text' => '3', 'val' => 3),
                    array('text' => '4', 'val' => 4),
                    array('text' => '5', 'val' => 5),
                    array('text' => '6', 'val' => 6),
                    array('text' => '7', 'val' => 7),
                    array('text' => '8', 'val' => 8),
                )
            ));
            ?>
        </div>
    </div>

    <!-- number of rows -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('Number of rows:', TD_THEME_NAME); ?></span>
            <p><?php _e('Set on how many rows to display the images (default is 1)', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::dropdown(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_instagram_rows_number',
                'values' => array(
                    array('text' => '- Default -', 'val' => ''),
                    array('text' => '1', 'val' => 1),
                    array('text' => '2', 'val' => 2),
                    array('text' => '3', 'val' => 3),
                    array('text' => '4', 'val' => 4),
                    array('text' => '5', 'val' => 5)
                )
            ));
            ?>
        </div>
    </div>

    <!-- size of images -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('Image size:', TD_THEME_NAME); ?></span>
            <p><?php _e('Set the size of the images ( by default the full image size will be used )', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::dropdown(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_instagram_image_size',
                'values' => array(
                    array('text' => '- Default - Full -', 'val' => ''),
                    array('text' => 'Small - 150px', 'val' => 'td_150x0'),
                    array('text' => 'Small - 300px', 'val' => 'td_300x0'),
                    array('text' => 'Medium - 696px', 'val' => 'td_696x0'),
                    array('text' => 'Large - 1068px', 'val' => 'td_1068x0')
                )
            ));
            ?>
        </div>
    </div>

    <!-- image gap -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('Image gap', TD_THEME_NAME); ?></span>
            <p><?php _e('Set a gap between images (default: No gap)', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::dropdown(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_instagram_image_gap',
                'values' => array(
                    array('text' => 'No gap', 'val' => ''),
                    array('text' => '2 px', 'val' => 2),
                    array('text' => '5 px', 'val' => 5)
                )
            ));
            ?>
        </div>
    </div>


    <?php echo td_panel_generator::box_end(); ?>


    <!-- FOOTER PREDEFINED CONTENT -->
    <?php echo td_panel_generator::box_start(__('Footer info content', TD_THEME_NAME), false, 'tdb-hide'); ?>

    <div class="td-box-row">
        <div class="td-box-description td-box-full">
            <ul>
                <li><?php _e('Footer logo - different one from the header logo. If footer logo is not specified, the site will
                    load the default normal logo.', TD_THEME_NAME); ?>
                </li>
                <li><?php _e('Footer text - usually it\'s a text about your sites topic', TD_THEME_NAME); ?></li>
                <li><?php _e('Your contact email address', TD_THEME_NAME); ?></li>
                <li><?php _e('Social icons - to customize what social icons appear in the footer, go to <strong>Social
                        Networks</strong> section.', TD_THEME_NAME); ?>
                </li>
            </ul>
        </div>
        <div class="td-box-row-margin-bottom"></div>
    </div>

    <!-- logo -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('FOOTER LOGO', TD_THEME_NAME); ?></span>
            <p><?php _e('Upload your logo', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::upload_image(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_logo_upload'
            ));
            ?>
        </div>
    </div>

    <!-- logo retina -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('FOOTER RETINA LOGO', TD_THEME_NAME); ?></span>
            <p><?php _e('Upload your retina logo (double size)', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::upload_image(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_retina_logo_upload'
            ));
            ?>
        </div>
    </div>

    <!-- footer logo alt -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('LOGO ALT ATTRIBUTE', TD_THEME_NAME); ?></span>
            <p><?php _e('<a target="_blank" href="http://www.w3schools.com/tags/att_img_alt.asp">Alt attribute</a> for the logo.
                This is the alternative text if the logo cannot be displayed. It\'s useful for SEO and generally is the
                name of the site.', TD_THEME_NAME); ?>
                <?php td_util::tooltip_html(__('
                        <h3>Footer Logo ALT:</h3>
                        <p>If you don\'t set the footer alt attribute the theme will use the one set for the header logo.</p>

                ', TD_THEME_NAME), 'right') ?>
            </p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::input(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_logo_alt'
            ));
            ?>
        </div>
    </div>

    <!-- footer logo title -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('LOGO TITLE ATTRIBUTE', TD_THEME_NAME); ?></span>
            <p><?php _e('<a target="_blank" href="http://www.w3schools.com/tags/att_global_title.asp">Title attribute</a> for the
                logo. This attribute specifies extra information about the logo. Most browsers will show a tooltip with
                this text on logo hover.', TD_THEME_NAME); ?>
                <?php td_util::tooltip_html(__('
                        <h3>Footer Logo TITLE:</h3>
                        <p>If you don\'t set the footer title attribute the theme will use the one set for the header logo.</p>

                ', TD_THEME_NAME), 'right') ?>
            </p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::input(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_logo_title'
            ));
            ?>
        </div>
    </div>

    <!-- footer text -->
    <div class="td-box-row td-custom-css">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('FOOTER TEXT', TD_THEME_NAME); ?></span>
            <p>
                <?php _e('Write here your footer text', TD_THEME_NAME); ?>
                <?php td_util::tooltip_html('
                        <h3>Set footer copyright text:</h3>
                        <p>You can use one of the following shortcuts in this text:</p>
                        <ul>
                            <li>##copy## - &copy;</li>
                            <li>##privacy_policy## - ' . get_the_privacy_policy_link() . '</li>
                            <li>##year## - ' . date('Y') . '</li>
                            <li>##sitename## - ' . get_bloginfo('name') . '</li>
                            <li>##siteurl## - ' . get_home_url() . '</li>
                            <li>##sitelink## - ' . '<a href="' . get_home_url() . '">' . get_bloginfo('name') . '</a>' . '</li>
                        </ul>
                ', 'right') ?>
            </p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::textarea(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_text',
            ));
            ?>
        </div>
    </div>


    <!-- Footer contact email -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('YOUR EMAIL ADDRESS', TD_THEME_NAME); ?></span>
            <p><?php _e('Your email address', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::input(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_email'
            ));
            ?>
        </div>
    </div>


    <!-- Enable social icons -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('SHOW SOCIAL ICONS', TD_THEME_NAME); ?></span>
            <p><?php _e('Show or hide the social icons, to setup the Social icons go to <strong>Social Networks</strong>', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::checkbox(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_social',
                'true_value' => '',
                'false_value' => 'no'
            ));
            ?>
        </div>
    </div>
    <?php echo td_panel_generator::box_end(); ?>


    <!-- FOOTER BACKGROUND -->
    <?php echo td_panel_generator::box_start(__('Footer background', TD_THEME_NAME), false, 'tdb-hide'); ?>

    <!-- BACKGROUND UPLOAD -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('FOOTER BACKGROUND', TD_THEME_NAME); ?></span>
            <p><?php _e('Upload a footer background image', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::upload_image(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_background_image'
            ));
            ?>
        </div>
    </div>

    <!-- Background Repeat -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('REPEAT', TD_THEME_NAME); ?></span>
            <p><?php _e('How the background image will be displayed', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::radio_button_control(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_background_repeat',
                'values' => array(
                    array('text' => 'No Repeat', 'val' => ''),
                    array('text' => 'Tile', 'val' => 'repeat'),
                    array('text' => 'Tile Horizontally', 'val' => 'repeat-x'),
                    array('text' => 'Tile Vertically', 'val' => 'repeat-y')
                )
            ));
            ?>
        </div>
    </div>

    <!-- Background Size -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('SIZE', TD_THEME_NAME); ?></span>
            <p><?php _e('Set the background image size', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::radio_button_control(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_background_size',
                'values' => array(
                    array('text' => 'Auto', 'val' => ''),
                    array('text' => 'Full Width', 'val' => '100% auto'),
                    array('text' => 'Full Height', 'val' => 'auto 100%'),
                    array('text' => 'Cover', 'val' => 'cover'),
                    array('text' => 'Contain', 'val' => 'contain')
                )
            ));
            ?>
        </div>
    </div>

    <!-- Background position -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('POSITION', TD_THEME_NAME); ?></span>
            <p><?php _e('Position your background image', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::radio_button_control(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_background_position',
                'values' => array(
                    array('text' => 'Bottom', 'val' => ''),
                    array('text' => 'Center', 'val' => 'center center'),
                    array('text' => 'Top', 'val' => 'center top')
                )
            ));
            ?>
        </div>
    </div>

    <!-- Background opacity -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('BACKGROUND OPACITY', TD_THEME_NAME); ?></span>
            <p><?php _e('Set the background image transparency (Example: 0.3)', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::input(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_background_opacity'
            ));
            ?>
        </div>
    </div>

    <?php echo td_panel_generator::box_end(); ?>


    <!-- SUB-FOOTER SETTINGS -->
    <?php echo td_panel_generator::box_start(__('Sub footer settings', TD_THEME_NAME), false, 'tdb-hide'); ?>


    <!-- text -->
    <div class="td-box-row">
        <div class="td-box-description td-box-full">
            <span class="td-box-title"><?php _e('More information:', TD_THEME_NAME); ?></span>
            <p><?php _e('The sub footer section is the content under the main footer. It usually includes a copyright text and a
                menu spot on the right', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-row-margin-bottom"></div>
    </div>

    <?php if ( 'Newsmag' == TD_THEME_NAME || ( 'Newspaper' == TD_THEME_NAME && defined('TD_STANDARD_PACK') ) ) { ?>
        <!-- Enable sub-footer -->
        <div class="td-box-row">
            <div class="td-box-description">
                <span class="td-box-title"><?php _e('SHOW SUB-FOOTER', TD_THEME_NAME); ?></span>
                <p><?php _e('Show or hide the sub-footer', TD_THEME_NAME); ?></p>
            </div>
            <div class="td-box-control-full">
                <?php
                echo td_panel_generator::checkbox(array(
                    'ds' => 'td_option',
                    'option_id' => 'tds_sub_footer',
                    'true_value' => '',
                    'false_value' => 'no'
                ));
                ?>
            </div>
        </div>

        <!-- LAYOUT -->
        <div class="td-box-row">
            <div class="td-box-description">
                <span class="td-box-title"><?php _e('Sub footer templates', TD_THEME_NAME); ?></span>
                <p><?php _e('Set the sub footer template', TD_THEME_NAME); ?></p>
            </div>
            <div class="td-box-control-full">
                <?php
                echo td_panel_generator::visual_select_o(array(
                    'ds' => 'td_option',
                    'option_id' => 'tds_sub_footer_template',
                    'values' => td_api_sub_footer_template::_helper_to_panel_values()
                ));
                ?>
            </div>
        </div>
    <?php } ?>

    <!-- Footer copyright text -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('FOOTER COPYRIGHT TEXT', TD_THEME_NAME); ?></span>
            <p>
                <?php _e('Set footer copyright text', TD_THEME_NAME); ?>
                <?php td_util::tooltip_html('
                        <h3>Set footer copyright text:</h3>
                        <p>You can use one of the following shortcuts in this text:</p>
                        <ul>
                            <li>##copy## - &copy;</li>
                            <li>##privacy_policy## - ' . get_the_privacy_policy_link() . '</li>
                            <li>##year## - ' . date('Y') . '</li>
                            <li>##sitename## - ' . get_bloginfo('name') . '</li>
                            <li>##siteurl## - ' . get_home_url() . '</li>
                            <li>##sitelink## - ' . '<a href="' . get_home_url() . '">' . get_bloginfo('name') . '</a>' . '</li>
                        </ul>
                ', 'right') ?>
            </p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::textarea(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_copyright'
            ));
            ?>
        </div>
    </div>


    <!-- Copyright symbol -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('COPYRIGHT SYMBOL', TD_THEME_NAME); ?></span>
            <p><?php _e('Show or hide the footer copyright symbol', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::checkbox(array(
                'ds' => 'td_option',
                'option_id' => 'tds_footer_copy_symbol',
                'true_value' => '',
                'false_value' => 'no'
            ));
            ?>
        </div>
    </div>

    <!-- Footer menu -->
    <div class="td-box-row">
        <div class="td-box-description">
            <span class="td-box-title"><?php _e('FOOTER MENU', TD_THEME_NAME); ?></span>
            <p><?php _e('Select a menu for the sub footer', TD_THEME_NAME); ?></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::dropdown(array(
                'ds' => 'wp_theme_menu_spot',
                'option_id' => 'footer-menu',
                'values' => td_panel_generator::get_user_created_menus()
            ));
            ?>
        </div>
    </div>
    <?php echo td_panel_generator::box_end();
} ?>
