' . __( 'General settings contains options that have a site-wide reach like defining your site dynamics or branding (including logo and other icons).', 'rosa_txtd' ) . '
',
'type' => 'info'
),
array(
'id' => 'main_logo_light',
'type' => 'media',
'title' => __( 'Main Logo', 'rosa_txtd' ),
'subtitle' => __( 'If there is no image uploaded, plain text will be used instead (generated from the site\'s name).', 'rosa_txtd' ),
// 'hint' => array(
// 'content' => 'This is the content of the tool-tip'
// )
),
array(
'id' => 'main_logo_dark',
'type' => 'media',
'class' => 'js-class-hook',
'title' => __( 'Main Logo Inversed', 'rosa_txtd' ),
),
array(
'id' => 'use_retina_logo',
'type' => 'switch',
'title' => __( '2x Retina Logo', 'rosa_txtd' ),
'subtitle' => __( 'To be Retina-ready you need to add a 2x size logo image.', 'rosa_txtd' ),
),
array(
'id' => 'retina_main_logo_light',
'type' => 'media',
'class' => 'js-class-hook image--small',
'title' => __( 'Retina Logo light', 'rosa_txtd' ),
'required' => array( 'use_retina_logo', 'equals', 1 )
),
array(
'id' => 'retina_main_logo_dark',
'type' => 'media',
'class' => 'js-class-hook image--small',
'title' => __( 'Retina Logo dark', 'rosa_txtd' ),
'required' => array( 'use_retina_logo', 'equals', 1 )
),
array(
'id' => 'favicon',
'type' => 'media',
'class' => 'js-class-hook image--small',
'title' => __( 'Favicon', 'rosa_txtd' ),
'subtitle' => __( 'Upload a 16 x 16px image that will be used as a favicon.', 'rosa_txtd' ),
),
array(
'id' => 'apple_touch_icon',
'type' => 'media',
'class' => 'js-class-hook image--small',
'title' => __( 'Apple Touch Icon', 'rosa_txtd' ),
'subtitle' => __( 'You can customize the icon for the Apple touch shortcut to your website. The size of this icon must be 77x77px.', 'rosa_txtd' )
),
array(
'id' => 'metro_icon',
'type' => 'media',
'class' => 'js-class-hook image--small',
'title' => __( 'Metro Icon', 'rosa_txtd' ),
'subtitle' => __( 'The size of this icon must be 144x144px.', 'rosa_txtd' )
),
)
);
// Style Options
// ------------------------------------------------------------------------
$sections[] = array(
'icon' => "icon-params",
'icon_class' => '',
'class' => 'has-customizer',
'title' => __( 'Style', 'rosa_txtd' ),
'desc' => '
' . __( 'The style options control the general styling of the site, like accent color and Google Web Fonts. You can choose custom fonts for various typography elements with font weight, character set, size and/or line height. You also have a live preview for your chosen fonts.', 'rosa_txtd' ) . '
' . __( 'Archive options control the various aspects related to displaying posts in blog archives. You can control things like excerpt length and various layout aspects.', 'rosa_txtd' ) . '
' . __( 'Post options control the various aspects related to the single post page.', 'rosa_txtd' ) . '
', wpgrade::themename() ),
'fields' => array(
array(
'id' => 'blog_single_show_author_box',
'type' => 'switch',
'title' => __( 'Show Author Info Box', 'rosa_txtd' ),
'subtitle' => __( 'Do you want to show author info box with avatar and description bellow the post?', 'rosa_txtd' ),
'default' => true,
),
array(
'id' => 'posts_share-links-812329384',
'desc' => '
' . __( 'Share Links', 'rosa_txtd' ) . '
',
'type' => 'info'
),
array(
'id' => 'blog_single_show_share_links',
'type' => 'switch',
'title' => __( 'Show Share Links', 'rosa_txtd' ),
'subtitle' => __( 'Do you want to show share icon links in your articles?', 'rosa_txtd' ),
'default' => true,
),
array(
'id' => 'posts_comments-812329384',
'desc' => '
' . __( 'Comments', 'rosa_txtd' ) . '
',
'type' => 'info'
),
array(
'id' => 'comments_show_avatar',
'type' => 'switch',
'title' => __( 'Show Comments Avatars', 'rosa_txtd' ),
'subtitle' => __( 'Do you want to show avatars in comments?', 'rosa_txtd' ),
'default' => false,
),
array(
'id' => 'comments_show_numbering',
'type' => 'switch',
'title' => __( 'Show Comments Numbers', 'rosa_txtd' ),
'subtitle' => __( 'Do you want to show numbers beside each comment?', 'rosa_txtd' ),
'default' => true,
),
array(
'id' => 'posts_sidebar-812329384',
'desc' => '
' . __( 'Sidebar', 'rosa_txtd' ) . '
',
'type' => 'info'
),
array(
'id' => 'blog_single_show_sidebar',
'type' => 'switch',
'title' => __( 'Show Sidebar', 'rosa_txtd' ),
'subtitle' => __( 'Show the main sidebar in the single post pages.', 'rosa_txtd' ),
'default' => '1',
'switch' => true,
),
)
);
$sections[] = array(
'type' => 'divide',
);
// Social and SEO options
// ------------------------------------------------------------------------
$sections[] = array(
'icon' => "icon-thumbs-up-1",
'icon_class' => '',
'title' => __( 'Social and SEO', 'rosa_txtd' ),
'desc' => '
' . __( 'Social and SEO options allow you to display your social links and choose where to display them. Then you can set the social SEO related info added in the meta tags or used in various widgets.', 'rosa_txtd' ) . '
',
'type' => 'info'
),
// array(
// 'id' => 'share_buttons_settings',
// 'type' => 'select',
// 'title' => __('Share Services', 'rosa_txtd'),
// 'subtitle' => __('Add here the share services you want to use, single comma delimited (no spaces). You can find the full list of services here: http://www.addthis.com/services/list. Also you can use the more tag to show the plus sign and the counter tag to show a global share counter.
Important: If you want to allow AddThis to show your visitors personalized lists of share buttons you can use the preferred tag. More about this here: http://bit.ly/1fLP69i.', 'rosa_txtd' ),
'default' => 'more,preferred,preferred,preferred,preferred',
),
array(
'id' => 'share_buttons_enable_tracking',
'type' => 'switch',
'title' => __( 'Sharing Analytics', 'rosa_txtd' ),
'subtitle' => __( 'Do you want to get analytics for your social shares?', 'rosa_txtd' ),
'default' => '0',
),
array(
'id' => 'share_buttons_enable_addthis_tracking',
'type' => 'switch',
'title' => __( 'AddThis Tracking', 'rosa_txtd' ),
'subtitle' => __( 'Do you want to enable AddThis tracking? This will all you to see sharing analytics in your AddThis account (see more here: bit.ly/1oe5zad)', 'rosa_txtd' ),
'default' => '0',
'required' => array( 'share_buttons_enable_tracking', '=', 1 ),
),
array(
'id' => 'share_buttons_addthis_username',
'type' => 'text',
'title' => __( 'AddThis Username', 'rosa_txtd' ),
'subtitle' => __( 'Enter here your AddThis username so you will receive analytics data.', 'rosa_txtd' ),
'default' => '',
'required' => array( 'share_buttons_enable_addthis_tracking', '=', 1 ),
),
array(
'id' => 'share_buttons_enable_ga_tracking',
'type' => 'switch',
'title' => __( 'Google Analytics Tracking', 'rosa_txtd' ),
'subtitle' => __( 'Do you want to enable the AddThis - Google Analytics tracking integration? See more about this here: bit.ly/1kxPg7K', 'rosa_txtd' ),
'default' => '0',
'required' => array( 'share_buttons_enable_tracking', '=', 1 ),
),
array(
'id' => 'share_buttons_ga_id',
'type' => 'text',
'title' => __( 'GA Property ID', 'rosa_txtd' ),
'subtitle' => __( 'Enter here your GA property ID (generally a serial number of the form UA-xxxxxx-x).', 'rosa_txtd' ),
'default' => '',
'required' => array( 'share_buttons_enable_ga_tracking', '=', 1 ),
),
array(
'id' => 'share_buttons_enable_ga_social_tracking',
'type' => 'switch',
'title' => __( 'GA Social Tracking', 'rosa_txtd' ),
'subtitle' => __( 'If you are using the latest version of GA code, you can take advantage of Google\'s new social interaction analytics.', 'rosa_txtd' ),
'default' => '0',
'required' => array( 'share_buttons_enable_ga_tracking', '=', 1 ),
),
array(
'id' => 'header_layout-218293203',
'desc' => '
' . __( 'Social Links', 'rosa_txtd' ) . '
',
'type' => 'info'
),
array(
'id' => 'social_icons',
'type' => 'text_sortable',
'title' => __( 'Social Links', 'rosa_txtd' ),
'subtitle' => sprintf( __( 'Define and reorder your social pages links. Note: These will be displayed in the "%s Social Links" widget so you can put them anywhere on your site. Only those filled will appear.
',
'type' => 'info'
),
array(
'id' => 'prepare_for_social_share',
'type' => 'switch',
'title' => __( 'Add Social Meta Tags', 'rosa_txtd' ),
'subtitle' => __( 'Let us properly prepare your theme for the social sharing and discovery by adding the needed metatags in the section. These include Open Graph (Facebook), Google+ and Twitter metas.', 'rosa_txtd' ),
'default' => '1',
),
array(
'id' => 'facebook_id_app',
'type' => 'text',
'title' => __( 'Facebook Application ID', 'rosa_txtd' ),
'subtitle' => __( 'Enter the Facebook Application ID of the Fan Page which is associated with this website. You can create one here.', 'rosa_txtd' ),
'required' => array( 'prepare_for_social_share', '=', 1 )
),
array(
'id' => 'facebook_admin_id',
'type' => 'text',
'title' => __( 'Facebook Admin ID', 'rosa_txtd' ),
'subtitle' => __( 'The id of the user that has administrative privileges to your Facebook App so you can access the Facebook Insights.', 'rosa_txtd' ),
'required' => array( 'prepare_for_social_share', '=', 1 )
),
array(
'id' => 'google_page_url',
'type' => 'text',
'title' => __( 'Google+ Publisher', 'rosa_txtd' ),
'subtitle' => __( 'Enter your Google Plus page ID (example: https://plus.google.com/105345678532237339285) here if you have set up a "Google+ Page".', 'rosa_txtd' ),
'required' => array( 'prepare_for_social_share', '=', 1 )
),
array(
'id' => 'twitter_card_site',
'type' => 'text',
'title' => __( 'Twitter Site Username', 'rosa_txtd' ),
'subtitle' => __( 'The Twitter username of the entire site. The username for the author will be taken from the author\'s profile', 'rosa_txtd' ),
'required' => array( 'prepare_for_social_share', '=', 1 ),
'validate_callback' => 'wpgrade_trim_twitter_username'
),
array(
'id' => 'social_share_default_image',
'type' => 'media',
'title' => __( 'Default Social Share Image', 'rosa_txtd' ),
'desc' => __( 'If an image is uploaded, this will be used for content sharing if you don\'t upload a custom image with your content (at least 200px wide recommended).', 'rosa_txtd' ),
),
array(
'id' => 'remove_parameters_from_static_res',
'type' => 'switch',
'title' => __( 'Clean Static Files URL', 'rosa_txtd' ),
'subtitle' => __( 'Do you want us to remove the version parameters from static resources so they can be cached better?', 'rosa_txtd' ),
'default' => '0',
),
// array(
// 'id' => 'move_jquery_to_footer',
// 'type' => 'switch',
// 'title' => __('Move JS Files To Footer', 'rosa_txtd'),
// 'subtitle' => __('This will force jQuery and all other files to be included just before the body closing tag. Please note that this can break some plugins so use it wisely.', 'rosa_txtd'),
// 'default' => '0',
// ),
)
);
// Custom Code
// ------------------------------------------------------------------------
$sections[] = array(
'icon' => "icon-database-1",
'icon_class' => '',
'title' => __( 'Custom Code', 'rosa_txtd' ),
'desc' => '
' . __( 'You can change the site style and behaviour by adding custom scripts to all pages within your site using the custom code areas below.', 'rosa_txtd' ) . '
',
'fields' => array(
array(
'id' => 'custom_css',
'type' => 'ace_editor',
'title' => __( 'Custom CSS', 'rosa_txtd' ),
'subtitle' => __( 'Enter your custom CSS code. It will be included in the head section of the page and will overwrite the main CSS styling.', 'rosa_txtd' ),
'desc' => __( '', 'rosa_txtd' ),
'mode' => 'css',
'theme' => 'chrome',
//'validate' => 'html',
'compiler' => true
),
array(
'id' => 'inject_custom_css',
'type' => 'select',
'title' => __( 'Apply Custom CSS', 'rosa_txtd' ),
'subtitle' => sprintf( __( 'Select how to insert the custom CSS into your pages.', 'rosa_txtd' ), wpgrade::themename() ),
'default' => 'inline',
'options' => array(
'inline' => __( 'Inline (recommended)', 'rosa_txtd' ),
'file' => __( 'Write To File (might require file permissions)', 'rosa_txtd' )
),
'select2' => array( // here you can provide params for the select2 jquery call
'minimumResultsForSearch' => - 1, // this way the search box will be disabled
'allowClear' => false // don't allow a empty select
),
'compiler' => true
),
array(
'id' => 'custom_js',
'type' => 'ace_editor',
'title' => __( 'Custom JavaScript (header)', 'rosa_txtd' ),
'subtitle' => __( 'Enter your custom Javascript code. This code will be loaded in the head section of your pages.', 'rosa_txtd' ),
'mode' => 'text',
'theme' => 'chrome'
),
array(
'id' => 'custom_js_footer',
'type' => 'ace_editor',
'title' => __( 'Custom JavaScript (footer)', 'rosa_txtd' ),
'subtitle' => __( 'This javascript code will be loaded in the footer. You can paste here your Google Analytics tracking code (or for what matters any tracking code) and we will put it on every page.', 'rosa_txtd' ),
'mode' => 'text',
'theme' => 'chrome'
),
)
);
// Utilities - Theme Auto Update + Import Demo Data
// ------------------------------------------------------------------------
$sections[] = array(
'icon' => "icon-truck",
'icon_class' => '',
'title' => __( 'Utilities', 'rosa_txtd' ),
'desc' => '
' . __( 'Utilities help you keep up-to-date with new versions of the theme. Also you can import the demo data from here.', 'rosa_txtd' ) . '
' . __( 'Let us notify you when new versions of this theme are live on ThemeForest! Update with just one button click and forget about manual updates!
If you have any troubles with this system please refer to Updating a theme article.', 'rosa_txtd' ) . '
', 'rosa_txtd' ),
'type' => 'info'
),
array(
'id' => 'themeforest_upgrade',
'type' => 'switch',
'title' => __( 'One-Click Update', 'rosa_txtd' ),
'subtitle' => __( 'Activate this to enter the info needed for the theme\'s one-click update to work.', 'rosa_txtd' ),
'default' => true,
),
array(
'id' => 'marketplace_username',
'type' => 'text',
'title' => __( 'ThemeForest Username', 'rosa_txtd' ),
'subtitle' => __( 'Enter here your ThemeForest (or Envato) username account (i.e. pixelgrade).', 'rosa_txtd' ),
'required' => array( 'themeforest_upgrade', '=', 1 )
),
array(
'id' => 'marketplace_api_key',
'type' => 'text',
'title' => __( 'ThemeForest Secret API Key', 'rosa_txtd' ),
'subtitle' => __( 'Enter here the secret api key you\'ve created on ThemeForest. You can create a new one in the Settings > API Keys section of your profile.', 'rosa_txtd' ),
'required' => array( 'themeforest_upgrade', '=', 1 )
),
array(
'id' => 'themeforest_upgrade_backup',
'type' => 'switch',
'title' => __( 'Backup Theme Before Upgrade?', 'rosa_txtd' ),
'subtitle' => __( 'Check this if you want us to automatically save your theme as a ZIP archive before an upgrade. The directory those backups get saved to is wp-content/envato-backups. However, if you\'re experiencing problems while attempting to upgrade, it\'s likely to be a permissions issue and you may want to manually backup your theme before upgrading. Alternatively, if you don\'t want to backup your theme you can disable this.', 'rosa_txtd' ),
'default' => '0',
'required' => array( 'themeforest_upgrade', '=', 1 )
),
array(
'id' => 'import-demo-data-info',
'desc' => __( '
Import Demo Data
' . __( 'Here you can import the demo data and get on your way of setting up the site like the theme demo (images not included due to copyright).', 'rosa_txtd' ) . '
' . __( 'Please wait a few minutes (between 1 and 3 minutes usually, but depending on your hosting it can take longer) and don\'t reload the page. You will be notified as soon as the import has finished!', 'rosa_txtd' ) . '
',
),
array(
'id' => 'admin_panel_options',
'type' => 'switch',
'title' => __( 'Admin Panel Options', 'rosa_txtd' ),
'subtitle' => __( 'Here you can copy/download your current admin option settings. Keep this safe as you can use it as a backup should anything go wrong, or you can use it to restore your settings on this site (or any other site).', 'rosa_txtd' ),
),
array(
'id' => 'theme_options_import',
'type' => 'import_export',
'required' => array( 'admin_panel_options', '=', 1 )
)
)
);
/**
* Check if WooCommerce is active
**/
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
// WooCommerce
// ------------------------------------------------------------------------
$sections[] = array(
'icon' => "icon-money",
'icon_class' => '',
'title' => __( 'WooCommerce', 'rosa_txtd' ),
'desc' => '
' . __( 'WooCommerce options!', 'rosa_txtd' ) . '
',
'fields' => array(
array(
'id' => 'enable_woocommerce_support',
'type' => 'switch',
'title' => __( 'Enable WooCommerce Support', 'rosa_txtd' ),
'subtitle' => __( 'Turn this off to avoid loading the WooCommerce assets (CSS and JS).', 'rosa_txtd' ),
'default' => '1',
),
array(
'id' => 'show_cart_menu',
'type' => 'switch',
'title' => __( 'Show cart menu in main navigation', 'rosa_txtd' ),
'default' => '1',
),
)
);
}
// Help and Support
// ------------------------------------------------------------------------
$sections[] = array(
'icon' => "icon-cd-1",
'icon_class' => '',
'title' => __( 'Help and Support', 'rosa_txtd' ),
'desc' => '
' . __( 'If you had anything less than a great experience with this theme please contact us now. You can also find answers in our community site, or official articles and tutorials in our knowledge base.', 'rosa_txtd' ) . '