".__("Settings for adjusting your blog's layout.", "mantra")."
";
}
function cryout_section_presentation_fn() {
// echo "
".__("Settings for adjusting your blog's layout.", "mantra")."
";
}
function cryout_section_header_fn() {
// echo "
".__("Settings for adjusting your blog's layout.", "mantra")."
";
}
function cryout_section_text_fn() {
//echo "
".__("All text related customization options.", "mantra")."
";
}
function cryout_section_graphics_fn() {
// echo "
".__("Settings for hiding or showing different graphics.", "mantra")."
";
}
function cryout_section_post_fn() {
//echo "
".__("Settings for hiding or showing different post tags.", "mantra")."
";
}
function cryout_section_excerpt_fn() {
// echo "
".__("Settings for post excerpts", "mantra")."
";
}
function cryout_section_appereance_fn() {
// echo "
".__("Set text and background colors.", "mantra")."
";
}
function cryout_section_featured_fn() {
// echo "
".__("Insert the addreses for your social media. Leave blank if not the case.
// Please type the whole address (including http:// ) Example : http://www.facebook.com.", "mantra")."
";
}
function cryout_section_social_fn() {
// echo "
".__("Insert the addreses for your social media. Leave blank if not the case.
// Please type the whole address (including http:// ) Example : http://www.facebook.com.", "mantra")."
";
}
function cryout_section_misc_fn() {
}
////////////////////////////////
//// LAYOUT SETTINGS ///////////
////////////////////////////////
// RADIO-BUTTON - Name: ma_options[side]
function cryout_setting_side_fn() {
global $mantra_options;
$items = array("1c", "2cSr", "2cSl", "3cSr" , "3cSl", "3cSs");
$layout_text["1c"] = __("One column (no sidebars)","mantra");
$layout_text["2cSr"] = __("Two columns, sidebar on the right","mantra");
$layout_text["2cSl"] = __("Two columns, sidebar on the left","mantra");
$layout_text["3cSr"] = __("Three columns, sidebars on the right","mantra");
$layout_text["3cSl"] = __("Three columns, sidebars on the left","mantra");
$layout_text["3cSs"] = __("Three columns, one sidebar on each side","mantra");
// For backward compatibility;
if ($mantra_options['mantra_side'] == 'Disable') $mantra_options['mantra_side'] = '1c';
if ($mantra_options['mantra_side'] == 'Right') $mantra_options['mantra_side'] = '2cSr';
if ($mantra_options['mantra_side'] == 'Left') $mantra_options['mantra_side'] = '2cSl';
foreach($items as $item) {
$checkedClass = ($mantra_options['mantra_side']==$item) ? ' checkedClass' : '';
echo "";
}
echo "
".__("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.","mantra")."
";
}
//SLIDER - Name: ma_options[sidewidth]
function cryout_setting_sidewidth_fn()
{
global $mantra_options;
$items = array ("Absolute" , "Relative");
$itemsare = array( __("Absolute","mantra"), __("Relative *DEPRECATED","mantra"));
echo __("Dimensions to use: ","mantra")." ";
?>
px px^——— px ———^
";
echo "";?>
".__("Select the width of your content and sidebar(s).
While the content cannot be less than 500px wide, the sidebar area is at least 220px and no more than 800px.
If you went for a 3 column area ( with 2 sidebars) they will each have half the selected width.","mantra")."
"; ?>
% %^——— % ———^
";
echo "";?>
".__("Select the width of your content and sidebar(s).
These are realtive dimmensions - relative to the user's browser. The total width is a percentage of the browser's width.
While the content cannot be less than 40% wide, the sidebar area is at least 20% and no more than 50%.
If you went for a 3 column area ( with 2 sidebars) they will each have half the selected width.","mantra")."
".__("Enable to make Mantra 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.","mantra")."
".__("Enable the presentation front-page. This will become your new home page. It has a slider and columns for presentation
text and images. If you have this enabled but don't see a Presentation page then go to Settings » Reading and make sure you have selected Front Page Displays as Your Latest Posts.","mantra")."
".__("Enable to display latest posts on the presentation page, below the columns. Sticky posts are always displayed and not counted.","mantra")."
";
}
//CHECKBOX - Name: ma_options[frontslider]
function cryout_setting_frontslider_fn() {
global $mantra_options;
echo "
".__("Slider Dimensions:","mantra")." ";
echo " px (".__("width","mantra").") X ";
echo " px (".__("height","mantra").")";
echo "".__("The dimensions of your slider. Make sure your images are of the same size.","mantra")."
".__("Border Settings:","mantra")." ";
echo __('Width' ,'mantra').": px / ";
echo __('Color','mantra').': ';
echo '';
echo "".__("The width and color of the slider's border.","mantra")."
";
echo "
".__("Animation Time:","mantra")." ";
echo " ".__("milliseconds","mantra");
echo "".__("The time in which the transition animation will take place.","mantra")."
";
echo "
".__("Pause Time:","mantra")." ";
echo " ".__("milliseconds","mantra");
echo "".__("The time in which a slide will be still and visible.","mantra")."
".__("Slider arrows:","mantra")." ";
$items = array ("Always Visible" , "Visible on Hover" ,"Hidden");
$itemsare = array( __("Always Visible","mantra"), __("Visible on Hover","mantra"), __("Hidden","mantra"));
echo "";
echo "".__("The Left and Right arrows on your slider","mantra")."
";
?>
".__("Select the content you want to load in your slides:","mantra")." ";
echo "";
echo "
".__("Your slides' content. Only the image is required, all other fields are optional. Only the slides with an image selected will become acitve and visible in the live slider.","mantra")."
' />
".__("The linked text that appears at the bottom of all the columns. You can delete all text inside if you don't want it.","mantra")."
";
?>
' />
' />
' />
' />
Title
' />
' />
' />
' />
".__("Extra Text","mantra")."
";
echo "
Text for the Presentation Page".__("More text for your front page. The top title is above the slider, the second title between the slider and the columns and 2 more rows of text under the columns.
It's all optional so leave any input field empty if it's not required. ","mantra")."
";
echo "
".__("Top Title","mantra")."
";
echo "
".__("Second Title","mantra")."
";
echo "";
echo "
".__("Title color","mantra")."
";
echo '';
echo '';
echo "
".__("Bottom Text 1","mantra")."
";
echo "";
echo "
".__("Bottom Text 2","mantra")."
";
echo "
";
echo "
".__("Hide areas","mantra")."
";
echo "
".__("Choose the areas to hide on the first page.","mantra")."
";
}
//////////////////////////////
/////HEADER SETTINGS//////////
/////////////////////////////
//SELECT - Name: ma_options[hheight]
function cryout_setting_hheight_fn() {
global $mantra_options;?>
' /> px
".__("Select the header's height. After saving the settings make sure you reupload a new header image (if you're using one). The header's width will be = ","mantra").$totally."px.";
}
function cryout_setting_himage_fn() {
global $mantra_options;
$checkedClass = ($mantra_options['mantra_hcenter']=='1') ? ' checkedClass' : '';
$checkedClass2 = ($mantra_options['mantra_hratio']=='1') ? ' checkedClass' : '';
echo "".__('Define header image')."";
echo "
".__("The header image should not be used to display logos. Enable ratio preservation to force the header image aspect ratio. Keep in mind that short images will become very small on mobile devices.","mantra")."
".__("Enable or disable the round corners for the main menu items.","mantra")."
";
}
//CHECKBOX - Name: ma_options[linkheader]
function cryout_setting_siteheader_fn() {
global $mantra_options;
$items = array ("Site Title and Description" , "Custom Logo" , "Clickable header image" , "Empty");
$itemsare = array( __("Site Title and Description","mantra"), __("Custom Logo","mantra"), __("Clickable header image","mantra"), __("Empty","mantra"));
echo "";
echo "
".__("Choose what to display inside your header area.","mantra")."
";
}
// TEXTBOX - Name: ma_options[favicon]
function cryout_setting_logoupload_fn() {
global $mantra_options;
echo '
';
?>
' class="imagebox" style="display:;max-height:60px" />
".__("Custom Logo upload. The logo will appear over the heder image if you have used one.","mantra")."
"; ?>
' /> px
' /> px
".__("Select the top spacing for the header. Use it to better position your site title and description or custom logo inside the header. ","mantra")."";
}
// TEXTBOX - Name: ma_options[favicon]
function cryout_setting_favicon_fn() {
global $mantra_options;
echo '
';
?>
' 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.","mantra")."
".__("Select the font size you'll use in your blog. Pages, posts and comments will be affected. Buttons, Headers and Side menus will remain the same.","mantra")."
";
}
//SELECT - Name: ma_options[fontfamily]
function cryout_setting_fontfamily_fn() {
global $mantra_options;
global $fontSans, $fontSerif, $fontMono, $fontCursive;
echo "";
echo "
".__("Select the font family you'll use in your blog. All content text will be affected (including menu buttons). ","mantra")."
";
echo '';
echo "
".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")."
";
}
//SELECT - Name: ma_options[fonttitle]
function cryout_setting_fonttitle_fn() {
global $mantra_options;
global $fontSans, $fontSerif, $fontMono, $fontCursive;
echo "";
echo "
".__("Select the font family you want for your titles. It will affect post titles and page titles. Leave 'Default' and the general font you selected will be used.","mantra")."
";
echo '';
echo "
".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")."
";
}
//SELECT - Name: ma_options[fontside]
function cryout_setting_fontside_fn() {
global $mantra_options;
global $fontSans, $fontSerif, $fontMono, $fontCursive;
echo "";
echo "
".__("Select the font family you want your sidebar(s) to have. Text in sidebars will be affected, including any widgets. Leave 'Default' and the general font you selected will be used.","mantra")."
";
echo '';
echo "
".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")."
";
}
//SELECT - Name: ma_options[fontsubheader]
function cryout_setting_fontsubheader_fn() {
global $mantra_options;
global $fontSans, $fontSerif, $fontMono, $fontCursive;
echo "";
echo "
".__("Select the font family you want your headings to have (h1 - h6 tags will be affected). Leave 'Default' and the general font you selected will be used.","mantra")."
";
echo '';
echo "
".__("Or insert your Google Font below. Please only isert the name of the font. Ex: Marko One. Go to google fonts for some font inspiration.","mantra")."
".__("This overwrites the text alignment in posts and pages. Leave 'Default' for normal settings (alignment will remain as declared in posts, comments etc.).","mantra")."
".__("Show breadcrumbs at the top of the content area. Breadcrumbs are a form of navigation that keeps track of your location withtin the site.","mantra")."
".__("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. ","mantra")."
".__("Excerpts on the main page. Only standard posts will be affected. All other post formats (aside, image, chat, quote etc.) have their specific formating.","mantra")."
".__("Excerpts on archive, categroy and search pages. Same as above, only standard posts will be affected.","mantra")."
";
}
// TEXTBOX - Name: ma_options[excerptwords]
function cryout_setting_excerptwords_fn() {
global $mantra_options;
echo "";
echo "
".__("The number of words an excerpt will have. 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.","mantra")."
".__("Show the first image that you inserted in a post as a thumbnail. If you enable this option, the first image in your post will be used even if you selected a Featured Image in you post.","mantra")."
".__("The size you want the thumbnails to have (in pixels). By default imges will be scaled with aspect ratio kept. Choose to crop the images if you want the exact size.","mantra")."
".__("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
and if it is bigger or at least equal to the current header size.","mantra")."
";
}
////////////////////////
/// SOCIAL SETTINGS ////
////////////////////////
// TEXTBOX - Name: ma_options[social1]
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 )','mantra'),
'',__("You can insert up to 5 different social sites and addresses.",'mantra'),
'',__("There are a total of 27 social networks to choose from. ",'mantra'),
'',__("You can leave any number of inputs empty. " ,'mantra'),
'',__("You can choose the same social media any number of times. ",'mantra')
);
$j=$i+1;
global $mantra_options, $socialNetworks;
echo " » ";
if (in_array($mantra_options['mantra_social'.$i],$cryout_special_keys)) :
$cryout_current_social = esc_html( $mantra_options['mantra_social'.$j] );
else :
$cryout_current_social = esc_url( $mantra_options['mantra_social'.$j] );
endif;
echo "";
echo "
";
}
// TEXTBOX - Name: ma_options[customcss]
function cryout_setting_customcss_fn() {
global $mantra_options;
echo "";
echo "
".__("Insert your custom CSS here. Any CSS declarations made here will overwrite Mantra's (even the custom options specified right here in the Mantra Settings page). Your custom CSS will be preserved when updating the theme. The <style> tags are not needed.","mantra")."
";
}
// TEXTBOX - Name: ma_options[customjs]
function cryout_setting_customjs_fn() {
global $mantra_options;
echo "";
echo "
".__("Insert your custom Javascript code here. (Google Analytics and any other forms of Analytic software). The <script> tags are not needed.","mantra")."
".__("Enable Mantra's Search Engine Optimization. This is enabled by default and should only be disabled if you are using a SEO plugin.","mantra")."
";
echo " ".__("All title tags are handled automatically by Mantra.","mantra")."";
echo "
";
echo "".__("Homepage Meta Description","mantra")."";
echo "";
echo "".__("This is unique and you should fill this in. Describe your site the best you can and try not to go over 160 characters.","mantra")."";
echo "
";
echo "
";
echo " Meta Descriptions for all other pages: ";
$moreitems = array ("Auto" , "Manual");
$moreitemsare = array( __("Auto","mantra"), __("Manual","mantra"));
echo "";
echo "".__("Auto - Mantra will automatically add post expcerpts to 'page' and 'post' meta descriptions. Manual - you will enable a new custom field in your post/page admin section where you can type the exact description you want for every post and page.
For category pages, the actual category descriptions will be used. Go to Posts > Categories and you can fill in a description for every category you have.","mantra")."";
echo "
";
echo "
";
echo "".__("Post Author","mantra")."";
$authors=wp_list_authors (array("echo"=>false,"html"=> false));
$authors_array = explode ("," , $authors);
array_unshift($authors_array,__("Do not use","mantra"));
echo "";
echo "".__("If you want to show an author in the meta tags.","mantra")."";
echo "