Welcome.
These are theme options
' + 'This panel contains all the designs settings for your theme.
' + 'Enjoy customization and don’t forget to click “Save” button when you finish.
// Image Select script jQuery( document ).ready( function( $ ) { // Show error log functionality $('.show-error-log').on('click', function(event) { event.preventDefault(); /* Act on the event */ $(".error-log-window").show(); }); /** * ---------------------------------------------------------------------- * Welcome message for quick guide on theme installation */ var hash = location.hash.slice(1); if (hash == 'first-time-visit') { var msg_welcome = '
' ; $(msg_welcome).insertBefore('#message-box'); $('.customizer-welcome-message').on('click', function(){ $('.customizer-welcome-message').fadeOut('800'); }); }; /** * ---------------------------------------------------------------------- * Theme installation wizard action: * 1. Plugins installation */ $("#do_plugins-install").click(function() { // disable spinner $("#theme-setup-step-1").addClass('loading'); // open TGMPA page in the hidden iframe // AJAX $("body").append(' '); }); /** * ---------------------------------------------------------------------- * Theme installation wizard action: * 2. Import demo content */ $("#do_demo-import").click(function(event) { event.preventDefault(); // Do not run multiply times if ( ! $("#theme-setup-step-2").hasClass('step-completed') ) { // Do not run before step 1 if ( $("#theme-setup-step-1").hasClass('step-completed') ) { // Do not run before step 2 // if ( $("#theme-setup-step-2").hasClass('step-completed') ) { $("#theme-setup-step-2").addClass('loading'); $.ajax({ // type: "POST", cache: false, url: location.protocol + '//' + location.host + location.pathname + "?importcontent=alldemocontent", success: function(response){ $("#theme-setup-step-2").removeClass('loading'); // config process failed if ( $(response).find(".ajax-request-error").length > 0 ) { $(".vhman-message.quick-setup .step-demoimport .error").css('display', 'inline-block'); $(".vhman-message.quick-setup").after(''); $(".error-log-window").append( $(response).find(".ajax-log") ); $('.vhman-message.quick-setup .step-demoimport .error-log-window').css('display','inline-block'); // config process succeeded } else { $(".vhman-message.quick-setup .step-demoimport").addClass("step-completed"); // update option "BLOGPOST_BLOGPOST_THEMENAME . '_democontent_imported'" // with 'true' value $.ajax({ cache: false, url: location.protocol + '//' + location.host + location.pathname + "?demoimport=completed", }); } }, }); //ajax // } else { // $( "#theme-setup-step-2" ).effect( "bounce", 1000); // } } else { $( "#theme-setup-step-1" ).effect( "bounce", 1000); } } }); $('.rpp_show-expert-options').live('change', function(){ if( $(this).is(':checked') ) { $(this).parent().parent().find('.rpp_expert-panel').show(); } else { $(this).parent().parent().find('.rpp_expert-panel').hide(); } }); $('.rpp_show-expert-options').trigger('change'); // Actions for screens with the file select button if ( $( '.slt-fs-button' ).length ) { // Invoke Media Library interface on button click $( '.slt-fs-button' ).click( function() { $( 'html' ).addClass( 'File' ); tb_show( '', 'media-upload.php?slt_fs_field=' + $( this ).siblings( 'input.slt-fs-value' ).attr( 'id' ) + '&type=file&TB_iframe=true' ); return false; }); // Wipe form values when remove checkboxes are checked $( '.menu-save' ).parents( 'form' ).submit( function() { $( '.slt-fs-remove:checked' ).each( function() { $( this ).parent().find( '.slt-fs-value' ).val( '' ); $( this ).parent().parent().find( '.edit-menu-item-custom' ).val(''); }); }); } jQuery(".menu_item_icon").click(function() { jQuery(this).parent().find('#menu_icon_dialog').dialog({ modal: true, width: 1000, position: { my: "center center", at: "center center" }, close: function() { jQuery(this).dialog('destroy'); } }); }); jQuery("#menu_icon_dialog .menu_icon").click(function(e) { e.preventDefault(); var icon_class = jQuery(this).find('a').attr('class'); jQuery('#menu_'+jQuery(this).attr('id')).val(icon_class); jQuery('#selected_'+jQuery(this).attr('id')).removeClass(); jQuery('#selected_'+jQuery(this).attr('id')).addClass('selected_menu_icon'); jQuery('#selected_'+jQuery(this).attr('id')).addClass(icon_class); jQuery(".ui-dialog-content").dialog("destroy"); }); jQuery(".remove_menu_item_icon").click(function() { jQuery(this).parent().find('input[type=hidden]').val(''); var icon_class = jQuery(this).parent().find('.selected_menu_icon').attr('class').split(' ')[1]; jQuery(this).parent().find('.selected_menu_icon').removeClass(icon_class); }); // Actions for the Media Library overlay if ( $( "body" ).attr( 'id' ) == 'media-upload' ) { // Make sure it's an overlay invoked by this plugin var parent_doc, parent_src, parent_src_vars, current_tab; var select_button = '' + slt_file_select.text_select_file + ''; parent_doc = parent.document; parent_src = parent_doc.getElementById( 'TB_iframeContent' ).src; parent_src_vars = slt_fs_get_url_vars( parent_src ); if ( 'slt_fs_field' in parent_src_vars ) { current_tab = $( 'ul#sidemenu a.current' ).parent( 'li' ).attr( 'id' ); $( 'ul#sidemenu li#tab-type_url' ).remove(); $( 'p.ml-submit' ).remove(); switch ( current_tab ) { case 'tab-type': { // File upload $( 'table.describe tbody tr:not(.submit)' ).remove(); //$( 'table.describe tr.submit td.savesend input' ).replaceWith( select_button ); $( 'table.describe tr.submit td.savesend input' ).remove(); $( 'table.describe tr.submit td.savesend' ).prepend( select_button ); break; } case 'tab-library': { // Media Library $( '#media-items .media-item a.toggle' ).remove(); $( '#media-items .media-item' ).each( function() { $( this ).prepend( select_button ); }); $( 'a.slt-fs-insert' ).css({ 'display': 'block', 'float': 'right', 'margin': '7px 20px 0 0' }); break; } } // Select functionality $( 'a.slt-fs-insert' ).click( function() { var item_id; if ( $( this ).parent().attr( 'class' ) == 'savesend' ) { item_id = $( this ).siblings( '.del-attachment' ).attr( 'id' ); item_id = item_id.match( /del_attachment_([0-9]+)/ ); item_id = item_id[1]; } else { item_id = $( this ).parent().attr( 'id' ); item_id = item_id.match( /media\-item\-([0-9]+)/ ); item_id = item_id[1]; } parent.slt_fs_select_item( item_id, parent_src_vars['slt_fs_field'] ); return false; }); } } }); // Parse URL variables // See: http://papermashup.com/read-url-get-variables-withjavascript/ function slt_fs_get_url_vars( s ) { var vars = {}; var parts = s.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { vars[key] = value; }); return vars; } function slt_fs_select_item( item_id, field_id ) { var field, preview_div, preview_size, field_value; field = jQuery('#' + field_id); field_value = jQuery( '#' + field_id + '-edit-menu-item-custom' ); preview_div = jQuery( '#' + field_id + '_preview' ); preview_size = jQuery( '#' + field_id + '_preview-size' ).val(); // Load preview image preview_div.html( '' ).load( slt_file_select.ajaxurl, { id: item_id, size: preview_size, action: 'slt_fs_get_file' }); // Pass ID to form field field.val( item_id ); // Pass value to form field jQuery.ajax({ url: slt_file_select.ajaxurl, data: { id: item_id, size: preview_size, action: 'slt_fs_get_file_url' }, success: function(data) { field_value.val( data ); } }); // Close interface down tb_remove(); jQuery( 'html' ).removeClass( 'File' ); } // AJAX Upload function upload_image (url) { jQuery('.upload_image').each(function() { var object = jQuery(this); var object_id = jQuery(this).attr('id'); new AjaxUpload(jQuery(this), { action: url, name: object_id, data: { action: 'ajax_post_action', type: 'upload', data: object_id }, autoSubmit: true, responseType: false, onChange: function(file, extension) {}, onSubmit: function(file, extension) { // Allow only images. if (extension && /^(jpg|png|jpeg|gif|ico)$/.test(extension)) { object.text('Uploading'); this.disable(); interval = window.setInterval(function() { var text = object.text(); if (text.length < 13) { object.text(text + '.'); } else { object.text('Uploading'); } }, 200); } else { var html = 'Most of theme options are available for customization in theme options page.
'; // $('#menu-appearance a[href="themes.php?page=themeoptions"]').pointer({ // // pointer_id: 'customizer_menu_link', // content: pointer_content, // position: { // edge: 'left', //top, bottom, left, right // align: 'middle' //top, bottom, left, right, middle // }, // buttons: function( event, t ) { // var $buttonClose = jQuery('End Tour'); // $buttonClose.bind( 'click.pointer', function() { // t.element.pointer('close'); // }); // var buttons = $('