<?php
/**
 * Filename: footer.part.php
 * Created by: BlogProfitNetwork.Com <marcus@blogprofitnetwork.com> (https://BlogProfitNetwork.Com)
 * Copyright:2018 All Rights Reserved - BlogProfitNetwork.Com <marcus@blogprofitnetwork.com> (https://BlogProfitNetwork.Com)
 *
 * Skype: blogprofitnetwork
 * Email: marcus@blogprofitnetwork.com
 */
defined('_IN_MAIN_MODULE') or die ('ACCESS DENIED');

?>

    <br /><hr />
    <div class="footer">
        <p>
            Copyright &copy; <?php echo (2015 != date('Y') ? '2015 - '. date('Y') : 2015); ?> &middot; <?php echo CLICKVOODOOV4_NAME .' ('. CLICKVOODOOV4_VERSION .')'; ?> <br />
<!--            System Developed by <a href="http://AndyLoyola.Com/" title="Developed by Andy Christian Loyola" target="_blank">Andy Christian Loyola</a>-->
        </p>
    </div>
</div>

<script type="text/javascript">
    var pt = jQuery.noConflict();
    pt(function($) {


        //* header - title
        $('.click-voodoo-v4 .title h2').append('<?php echo CLICKVOODOOV4_NAME; ?>');


        //* tabs
        $('.ui-tabs').tabs({
            active      : $.cookie('activetab'),
            activate    : function(event, ui) {
                $.cookie('activetab', ui.newTab.index(), {
                    expires : 1
                });
            },

			beforeLoad	: function(event, ui) {

				//* set data loaded to true
//				ui.jqXHR.success(function() {
//					ui.tab.data('loaded', true);
//				});

            	//* added spinner while loading the page
				ui.panel.html('<span class="icon mif-spinner2 mif-ani-spin"></span> Loading content... Please wait!');

				//* return error message if error occurs
//				ui.jqXHR.error(function() {
//					ui.panel.html('An error occured while loading this page. Please try again!');
//				});

			},

            load        : function(event, ui) {

                //* javascript way to load tinymce
//                wp.editor.remove('settings-high-temp-msg');
//                wp.editor.initialize('settings-high-temp-msg', {
//                    tinymce         : {
//                        plugins         : 'charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview',
//                        toolbar1        : 'bold italic underline strikethrough | bullist numlist | blockquote hr wp_more | alignleft aligncenter alignright | link unlink',
//                        toolbar2        : 'formatselect alignjustify forecolor | pastetext removeformat charmap | outdent indent | undo redo | wp_help',
//                    },
//                    wpautop         : true,
//                    mediaButtons    : true,
//                    quicktags       : true
//                });

            }
        });


        //* dataTables
        $('.click-voodoo-v4 #manage-table').dataTable({
            'bJQueryUI'         : true,
            'sPaginationType'   : 'full_numbers',
            'aaSorting'         : [[0, 'desc']]
        });


    });
</script>
