".__("Choose your layout. Possible options are: No sidebar, a single sidebar on either left of right, two sidebars on either left or right and two sidebars on each side. This can be overriden in pages by using Page Templates.","nirvana")."
";
}
//SLIDER - Name: nirvana_settings[sidewidth]
function cryout_setting_sidewidth_fn() {
global $nirvanas; ?>
px px px
";
echo ""; ?>
".__("Select the width of your content and sidebar(s). When using a 3 columns layout (with 2 sidebars) they will each have half the configured width.","nirvana")."
"; ?>
";
echo "
".__("Select the layout format for your site. Wide - full width layout. Boxed - fixed width layout.","nirvana")."
".__("Enable to make Nirvana fully responsive. The layout and general sizes of your blog will adjust depending on what device and what resolution it is viewed in. Do not disable unless you have a good reason to.","nirvana")."
".__("Select the header's height. After saving the settings go and upload your new header image. The header's minimum width should be ","nirvana")."".$totally."px.
".__("By default the header has a minimum height set to accommodate the site title or custom logo. Enabling this option removes that minimum height and the header becomes fully responsive, scalling to any size. Only enable this if you're not using a logo or site title and description in the header. Also make sure you have a header image uploaded. ","nirvana")."
";
}
//CHECKBOX - Name: nirvana_settings[linkheader]
function cryout_setting_siteheader_fn() {
global $nirvanas;
cryout_proto_field( $nirvanas, "select", "nirvana_siteheader",
array("Site Title and Description" , "Custom Logo" , "Clickable header image" , "Empty"),
array( __("Site Title and Description","nirvana"), __("Custom Logo","nirvana"), __("Clickable header image","nirvana"), __("Empty","nirvana"))
);
echo "
".__("Choose what to display inside your header area.","nirvana")."
";
}
// TEXTBOX - Name: nirvana_settings[favicon]
function cryout_setting_logoupload_fn() {
global $nirvanas; ?>
' class="imagebox" style="max-height:60px" /> ".__("Custom Logo upload. The logo will appear over the header image if you have used one.","nirvana")."
"; ?>
".__("Select the top and left spacing for the header content. Use it to better position your site title and description or custom logo inside the header. ","nirvana")."";
}
// TEXTBOX - Name: nirvana_settings[favicon]
function cryout_setting_favicon_fn() {
global $nirvanas;?>
' class="imagebox" width="64" height="64"/> ".__("Limitations: It has to be an image. It should be max 64x64 pixels in dimensions. Recommended file extensions .ico and .png. Note that some browsers do not display the changed favicon instantly.","nirvana")."
"; ?>
".__("Limit the header widget area max width as percentage of the entire header width.","nirvana")."";
}
////////////////////////////////
//// PRESENTATION SETTINGS /////
////////////////////////////////
//CHECKBOX - Name: nirvana_settings[frontpage]
function cryout_setting_frontpage_fn() {
global $nirvanas;
cryout_proto_field( $nirvanas, "select", "nirvana_frontpage",
array("Enable" , "Disable"),
array( __("Enable","nirvana"), __("Disable","nirvana"))
);
echo "
".__("Enable the presentation front-page. This will become your new home page.
If you have this option enabled and you can't see the presentation page, make sure that the option under WordPress Dashboard >> Settings >> Reading >> Front page displays is set to the default value Your Latest Posts.
If you want another page to hold your latest blog posts, choose 'Blog Template (Posts Page)' from Page Templates while creating or editing that page.","nirvana")."
'.__('WordPress\' Front page displays option is set to use a static page. WordPress guidelines require that the static page option have priority over theme options. Go to %1$s and set the Front page displays option to Your latest posts to enable the Presentation Page.',"nirvana").'
".__("The number of posts to show on the Presentation Page. The same number of posts will be loaded with the More Posts button.","nirvana")."
";
echo "
";
echo "
".__("Posts per row:","nirvana")." ";
$items = array ("1", "2");
echo "".__("Select how many posts per row to display on the Presentation Page.","nirvana")."
"; ?>
' />
".__("Slider Dimensions:","nirvana")." ";
echo " px (".__("width","nirvana").") X ";
echo " px (".__("height","nirvana").")";
echo "".__("The dimensions of your slider. Make sure your images are of the same size.","nirvana")."";
echo "
".__("Animation Time:","nirvana")." ";
echo " ".__("milliseconds","nirvana");
echo "".__("The time in which the transition animation will take place.","nirvana")."
";
echo "
".__("Pause Time:","nirvana")." ";
echo " ".__("milliseconds","nirvana");
echo "".__("The time in which a slide will be still and visible.","nirvana")."
".__("Slider arrows:","nirvana")." ";
$items = array ("Always Visible" , "Visible on Hover" ,"Hidden");
$itemsare = array( __("Always Visible","nirvana"), __("Visible on Hover","nirvana"), __("Hidden","nirvana"));
echo "";
echo "".__("The Left and Right arrows on your slider","nirvana")."
".__("Slider Border Width:","nirvana")." ";
echo " ".__("px","nirvana");
echo "".__("The slider's border width. You can also edit its color from the Color Settings. Use a border width when your slider is smaller than the total site width.","nirvana")."
";
echo "
".__("Slider Top/Bottom Margin:","nirvana")." ";
echo " ".__("px","nirvana");
echo "".__("Add margins to the slider. By default this is set to 0 and you will want to increase this value when the slider is not full width.","nirvana")."
";
?>
var $categoryName;
jQuery(document).ready(function(){
jQuery('#categ-dropdown').change(function(){
$categoryName=this.options[this.selectedIndex].value.replace(/\/category\/archives\//i,"");
doAjaxRequest();
});
});
function doAjaxRequest(){
// here is where the request will happen
jQuery.ajax({
url: ajaxurl,
data:{
'action':'do_ajax',
'fn':'get_latest_posts',
'count':10,
'categName':$categoryName
},
dataType: 'JSON',
success:function(data){
jQuery('#post-dropdown').html(data);
},
error: function(errorThrown){
alert('error');
console.log(errorThrown);
}
});
}
*/ ?>
Slides content:","nirvana");
echo "";
echo "
".__("Only the slides with a defined image will become active and visible in the live slider. When using slides from posts, make sure the selected posts have featured images. Read the FAQs for more info.","nirvana")."
";
?>
' />
Choose the category: ','nirvana'); ?>
".__("Number of posts:","nirvana")." ";
echo " ".__("words","nirvana");
echo "".__("The number of posts to show in the slider.","nirvana")."
"; ?>
".__("Slider excerpt:","nirvana")." ";
echo " ".__("words","nirvana");
echo "".__("The number of words for the slider excerpts.","nirvana").""; ?>
' />
' />
' />
".__("The linked text that appears at the bottom of each slide. Leave empty to hide the link.","nirvana")."
".__("Only the columns with a defined image will become active and visible on the presentation page. When using columns from posts, make sure the selected posts have featured images. Read the FAQs for more info.","nirvana")."
";
?>
' />
Appearance >> Widgets and create your custom columns using the Columns widget. You can use as many as you want.','nirvana'); ?>
Choose the category: ','nirvana'); ?>
' />
".__("Column Display:","nirvana")." ";
$items = array ("0" , "1", "2");
$itemsare = array( __("Animated","nirvana"), __("Static on Image","nirvana"), __("Static under Image","nirvana"));
echo "";
echo "".__("How to display your Presentation Page Columns.", "nirvana")."";
echo "
".__("Image Size:","nirvana")." ";
echo __("Height: ","nirvana")." px ";
echo __("Width: ","nirvana")." px"."";
echo "".__("The sizes for your column images. The width is dependent on total site width and the number of columns per row so it isn't configurable.","nirvana")."
";
echo "
".__("Column spacing:","nirvana")." ";
echo " % ";
echo "".__("The space between your columns. Increasing the column spacing will naturally decrease the visible area of your images.","nirvana")."
";
?>
' />
".__("The title for the columns area on the presentation page.","nirvana")."
"; ?>
".__("Enable subtle foto frames around your column images. Your columns will have white borders and a small shadow around them and will be slightly skewed.","nirvana")."
";
} // cryout_setting_frontcolumns_fn()
//CHECKBOX - Name: nirvana_settings[fronttext]
function cryout_setting_fronttext_fn() {
global $nirvanas;
echo "
".__("Text Area","nirvana")." 1
";
echo "
".__("Text for the Presentation Page","nirvana")."".
__("More text for the Presentation Page. The top title is just below the slider, the second title is below the columns. A text area supporting HTML tags and shortcodes below each title It's all optional so leave any input field empty to not display it.","nirvana")."
";
echo "
".__("Title","nirvana")."
";
echo "";
echo "
".__("Text","nirvana")."
";
echo "
";
echo "
".__("Text Area","nirvana")." 2
";
echo "
".__("Title","nirvana")."
";
echo "";
echo "
".__("Text","nirvana")."
";
echo "
";
echo "
".__("Text Area","nirvana")." 3
";
echo "
".__("Title","nirvana")."
";
echo "";
echo "
".__("Text","nirvana")."
";
echo "
";
}
function cryout_setting_frontextras_fn() {
global $nirvanas;
echo "
".__("Hide areas","nirvana")."
";
echo "
".__("Choose the areas to hide on the Presentation Page:","nirvana")."
".__("Select the general font family and size or insert the Google Font name you'll use in your blog. This will affect all text except the text controlled
by the options below.
Additional Info: The fonts under the General Theme Fonts category are suggested for this
because they have all the font weights used througout the theme. When using Google Fonts for General Font make sure they also have multiple font weights and
that you specify them all eg.: Roboto:400,300,500,700","nirvana")."
".__("Select the font family and size or insert the Google Font name you want for your titles. It will affect post titles and page titles. Leave 'General Font' and the general font values you selected will be used.","nirvana")."
";
}
//SELECT - Name: nirvana_settings[fontside]
function cryout_setting_fontside_fn() {
global $nirvanas;
global $fonts;
for ($i=14;$i<31;$i+=2): $sizes[] = "${i}px"; endfor;
cryout_proto_font(
$fonts,
$sizes,
$nirvanas['nirvana_sidefontsize'],
$nirvanas['nirvana_fontside'],
$nirvanas['nirvana_googlefontside'],
'nirvana_sidefontsize',
'nirvana_fontside',
'nirvana_googlefontside',
__('General Font','nirvana')
);
echo "
".__("Select the font family and size or insert the Google Font name you want your widget titles to have. Leave 'General Font' and the general font values you selected will be used.","nirvana")."
";
}
//SELECT - Name: nirvana_settings[fontside]
function cryout_setting_fontwidget_fn() {
global $nirvanas;
global $fonts;
for ($i=12;$i<23;$i+=1): $sizes[] = "${i}px"; endfor;
cryout_proto_font(
$fonts,
$sizes,
$nirvanas['nirvana_widgetfontsize'],
$nirvanas['nirvana_fontwidget'],
$nirvanas['nirvana_googlefontwidget'],
'nirvana_widgetfontsize',
'nirvana_fontwidget',
'nirvana_googlefontwidget',
__('General Font','nirvana')
);
echo "
".__("Select the font family and size or insert the Google Font name you want your widgets to have. Leave 'General Font' and the general font values you selected will be used.","nirvana")."
";
}
function cryout_setting_sitetitlefont_fn() {
global $nirvanas;
global $fonts;
for ($i=30;$i<51;$i+=2): $sizes[] = "${i}px"; endfor;
cryout_proto_font(
$fonts,
$sizes,
$nirvanas['nirvana_sitetitlesize'],
$nirvanas['nirvana_sitetitlefont'],
$nirvanas['nirvana_sitetitlegooglefont'],
'nirvana_sitetitlesize',
'nirvana_sitetitlefont',
'nirvana_sitetitlegooglefont',
__('General Font','nirvana')
);
echo "
".__("Select the font family and size or insert the Google Font name you want your site title and tagline to use. Leave 'General Font' and the general font values you selected will be used.","nirvana")."
".__("Select the font family and size or insert the Google Font name you want your main menu to use. Leave 'General Font' and the general font values you selected will be used.","nirvana")."
".__("Select the font family and size or insert the Google Font name you want your headings to have (h1 - h6 tags will be affected). Leave 'General Font' and the general font values you selected will be used.","nirvana")."
".__("This overwrites the text alignment in posts and pages. Leave 'Default' for normal settings (alignment will remain as declared in posts, comments etc.).","nirvana")."
".__("By default text is both uppercase and lowercase throughout the theme. With this option you can force uppercase or lowercase text styling in the whole theme. This option won't affect content text.","nirvana")."
";
}
////////////////////////////////
//// APPEARANCE SETTINGS ///////
////////////////////////////////
function cryout_setting_sitebackground_fn() {
echo "".__('Define background image','nirvana')."";
} // cryout_setting_sitebackground_fn()
function cryout_setting_generalcolors_fn() {
global $nirvanas;
echo '
'.__('Background:','nirvana').'
';
cryout_color_field('nirvana_backcolorheader',__('Header Background','nirvana'),$nirvanas['nirvana_backcolorheader']);
cryout_color_field('nirvana_backcolormain',__('Main Site Background','nirvana'),$nirvanas['nirvana_backcolormain']);
cryout_color_field('nirvana_backcolorfooterw',__('Footer Widgets Area Background','nirvana'),$nirvanas['nirvana_backcolorfooterw']);
cryout_color_field('nirvana_backcolorfooter',__('Footer Background','nirvana'),$nirvanas['nirvana_backcolorfooter']);
echo '
".__("The site background features 4 separately coloured areas. The general text colour applies to all text on the website that is not controlled by any other option.","nirvana")."
";
}
function cryout_setting_accentcolors_fn() {
global $nirvanas;
cryout_color_field('nirvana_accentcolora',__('Accent Color #1','nirvana'),$nirvanas['nirvana_accentcolora']);
cryout_color_field('nirvana_accentcolorb',__('Accent Color #2','nirvana'),$nirvanas['nirvana_accentcolorb']);
cryout_color_field('nirvana_accentcolorc',__('Accent Color #3','nirvana'),$nirvanas['nirvana_accentcolorc']);
cryout_color_field('nirvana_accentcolord',__('Accent Color #4','nirvana'),$nirvanas['nirvana_accentcolord']);
cryout_color_field('nirvana_accentcolore',__('Accent Color #5','nirvana'),$nirvanas['nirvana_accentcolore']);
echo "
".__("Accents #1 and #2 should either be the same as the link colours or be separate from all other colours on the site.
Accent #5 is used for input fields and buttons backgrounds, borders and lines.
Accents #3 and #4 should be the lighter/darker than the content background colour, being used as borders/shades on elements where accent #5 is background colour.","nirvana")."
";
}
function cryout_setting_titlecolors_fn() {
global $nirvanas;
echo '
".__("These colours apply to the main site menu (and dropdown elements).","nirvana")."
";
}
function cryout_setting_topmenucolors_fn() {
global $nirvanas;
echo '
'.__('Background:','nirvana').'
';
cryout_color_field('nirvana_topbarcolorbg',__('Top Bar Background','nirvana'),$nirvanas['nirvana_topbarcolorbg']);
echo '
'.__('Text:','nirvana').'
';
cryout_color_field('nirvana_topmenucolortxt',__('Top Bar Menu Link','nirvana'),$nirvanas['nirvana_topmenucolortxt']);
cryout_color_field('nirvana_topmenucolortxthover',__('Top Bar Menu Link Hover','nirvana'),$nirvanas['nirvana_topmenucolortxthover']);
echo "
".__("These colours apply to the top bar menu.","nirvana")."
";
}
function cryout_setting_contentcolors_fn() {
global $nirvanas;
cryout_color_field('nirvana_contentcolorbg',__('Content Background','nirvana'),$nirvanas['nirvana_contentcolorbg']);
cryout_color_field('nirvana_contentcolortxttitle',__('Page/Post Title','nirvana'),$nirvanas['nirvana_contentcolortxttitle']);
cryout_color_field('nirvana_contentcolortxttitlehover',__('Page/Post Title Hover','nirvana'),$nirvanas['nirvana_contentcolortxttitlehover']);
cryout_color_field('nirvana_contentcolortxtheadings',__('Content Headings','nirvana'),$nirvanas['nirvana_contentcolortxtheadings']);
echo "
".__("Content colours apply to post and page areas of the site.","nirvana")."
";
}
function cryout_setting_frontpagecolors_fn(){
global $nirvanas;
echo '
".__("Show breadcrumbs at the top of the content area. Breadcrumbs are a form of navigation that keeps track of your location withtin the site.","nirvana")."
".__("Show numbered pagination. Where there is more than one page, instead of the bottom Older Posts and Newer posts links you have a numbered pagination. ","nirvana")."
".__("Excerpts on the main page. Only standard posts will be affected. All other post formats (aside, image, chat, quote etc.) have their specific formating.","nirvana")."
".__("The number of characters/words for excerpts. When that number is reached the post will be interrupted by a Continue reading link that will take the reader to the full post page." , "nirvana")."
";
}
// TEXTBOX - Name: nirvana_settings[excerptdots]
function cryout_setting_excerptdots_fn() {
global $nirvanas;
echo "";
echo "
".__("Replaces the three dots ('[...])' that are appended automatically to excerpts.","nirvana")."
";
}
// TEXTBOX - Name: nirvana_settings[excerptcont]
function cryout_setting_excerptcont_fn() {
global $nirvanas;
echo "";
echo "
".__("Edit the 'Continue Reading' link added to your post excerpts.","nirvana")."
".__("By default WordPress excerpts remove all HTML tags (<pre>, <a>, <b> and all others) and only clean text is left in the excerpt.
Enabling this option allows HTML tags to remain in excerpts so all your default formating will be kept. Just a warning: If HTML tags are enabled, you have to make sure
they are not left open. So if within your post you have an opened HTML tag but the except ends before that tag closes, the rest of the site will be contained in that HTML tag. -- Leave 'Disable' if unsure -- ","nirvana")."
".__("Show the first image that you inserted in a post as a thumbnail. If there is a Featured Image selected for that post, it will have priority.","nirvana")."
".__("The size (in pixels) for your thumbnails. By default imges will be scaled with aspect ratio kept. Choose to crop the images if you want the exact size.","nirvana")."
".__("Show featured images on headers. The header will be replaced with a featured image if you selected it as a Featured Image in the post and if it is bigger or at least equal to the current header size.","nirvana")."
";
}
////////////////////////
/// SOCIAL SETTINGS ////
////////////////////////
function cryout_setting_social_master($i) {
$cryout_special_keys = array('Mail', 'Skype');
$cryout_social_small = array (
'',__('Select your desired Social network from the left dropdown menu and insert your corresponding address in the right input field. (ex: http://www.facebook.com/yourname )','nirvana'),
'',__("You can also choose if you want the link to open in a new window and what title to display while hovering over the icon.",'nirvana'),
'',__("You can show up to 5 different social icons from over 35 social networks.",'nirvana'),
'',__("You can leave any number of inputs empty.",'nirvana'),
'',__("You can change the background for your social colors from the colors settings section.",'nirvana')
);
$j=$i+1;
global $nirvanas, $socialNetworks;
echo " » ";
if (in_array($nirvanas['nirvana_social'.$i],$cryout_special_keys)) :
$cryout_current_social = esc_html( $nirvanas['nirvana_social'.$j] );
else :
$cryout_current_social = esc_url( $nirvanas['nirvana_social'.$j] );
endif;
// Social Link
echo "";
// Social Open in new window
$checkedClass = ($nirvanas['nirvana_social_target'.$i]=='1') ? ' checkedClass' : '';
echo " ";
// Social Title
echo "";
echo "
";
}
// TEXTBOX - Name: nirvana_settings[customcss]
function cryout_setting_customcss_fn() {
global $nirvanas;
echo "";
echo "
".__("Insert your custom CSS here. Any CSS declarations made here will overwrite Nirvana's (even the custom options specified right here in the Nirvana Settings page). Your custom CSS will be preserved when updating the theme.","nirvana")."
";
}
// TEXTBOX - Name: nirvana_settings[customjs]
function cryout_setting_customjs_fn() {
global $nirvanas;
echo "";
echo "
".__("Insert your custom Javascript code here. (Google Analytics and any other forms of Analytic software).","nirvana")."
".__("Enable output from Nirvana's injection protection engine. Will display which extensions attempted to interfere with the theme. Uses some memory when enabled and a large number of injections are detected.","nirvana")."