<?php
$cp_categories = get_categories('hide_empty=0');
foreach ( $cp_categories as $b ) {
$cp_cat[] = array( $b->cat_ID, $b->cat_name );
}
cp_th( "Headline" );
cp_select( "ar_headline", $cp_cat, get_settings( "ar_headline" ), "" );
cp_cth();
cp_th( "Featured" );
cp_select( "ar_featured", $cp_cat, get_settings( "ar_featured" ), "" );
cp_cth();
cp_th( "Video" );
cp_select( "ar_video", $cp_cat, get_settings( "ar_video" ), "" );
cp_cth();
cp_th( "Category Bar" );
cp_multiSelect( "ar_categories[]", $cp_cat, get_settings( "ar_categories" ), "", "Hold down Ctrl button to select multiple categories. You must select 5 categories to get the best layout." );
cp_cth();
cp_th( "Category Spoilers" );
cp_multiSelect( "ar_spoilers[]", $cp_cat, get_settings( "ar_spoilers" ), "", "Hold down Ctrl button to select multiple categories." );
cp_cth();
?>
</table>
<h3>Theme Sections and Thumbnail Settings</h3>
<p>Configuration for page sections and thumbnail generation across your website. Thumbnail are generated and resized automatically using the TimThumb script. <strong>Do not forget to make the 'scripts' and 'cache' folder of the theme writable</strong> (CHMOD 777 or 755 from FTP).</p>
<table width="100%" cellspacing="2" cellpadding="5" class="editform form-table">
<?php
$cp_thumb[] = array( "first", "First Image" );
$cp_thumb[] = array( "", "Post Custom Field" );
cp_th( "Thumbnail assignment" );
cp_select( "cp_thumbAuto", $cp_thumb, get_settings( "cp_thumbAuto" ), "" );
cp_cth();
?>
</table>
<p>In case you want to have full control over the image thumbnail assignment, please refer to the tutorial <a href="http://michaelhutagalung.com/2008/08/tutorial-timthumb-thumbnail-generation-with-arthemia-theme/" target="_blank">here</a>. You have to do manual thumbnail assignment using Custom Field if you don't want to assign the first image of the post as thumbnail, or perhaps to have a different image as thumbnail.</p>
<h4>Front Page Settings</h4>
<p>You can customize the front page here. Thumbnail sizes are in pixels (px). To control number of post shown in the column list, go to Settings > Reading > Blog post.</p>
<table width="100%" cellspacing="2" cellpadding="5" class="editform form-table">
<?php
$cp_headimage[] = array( "wide", "Wide Image" );
$cp_headimage[] = array( "", "Square Image" );
cp_th( "Headline Style" );
cp_select( "cp_styleHead", $cp_headimage, get_settings( "cp_styleHead" ), "" );
cp_cth();
cp_th( "Featured Items" );
cp_input( "cp_numFeatured", "smalltext", "Total item in vertical carousel", get_settings( "cp_numFeatured" ) );
cp_cth();
$cp_scroll[] = array( "", "Yes" );
$cp_scroll[] = array( "No", "No" );
cp_th( "Auto scroll and circular carousel?" );
cp_select( "cp_autoScroll", $cp_scroll, get_settings( "cp_autoScroll" ), "" );
cp_cth();
cp_th( "Carousel pause time" );
cp_input( "cp_ScrollSpeed", "smalltext", "in miliseconds (default: 1000)", get_settings( "cp_ScrollSpeed" ) );
cp_cth();
?>
</table>
<div style="font-size:0.9em; color:#999;"><p>For the best layout, assign more than 6 posts to the Featured category.</div>
<table width="100%" cellspacing="2" cellpadding="5" class="editform form-table">
<?php
cp_th( "Latest Post Section" );
cp_input( "cp_thumbWidth_LatestPost", "smalltext", "Thumbnail Width (default. 150)", get_settings( "cp_thumbWidth_LatestPost" ) );
cp_input( "cp_thumbHeight_LatestPost", "smalltext", "Thumbnail Height (default. 150)", get_settings( "cp_thumbHeight_LatestPost" ) );
cp_cth();
?>
</table>
<div style="font-size:0.9em; color:#999;"><p>Latest Post automated thumbnail will be hidden if you assign thumbnails to be taken from First Image in posts.</p></div>
<table width="100%" cellspacing="2" cellpadding="5" class="editform form-table">
<?php
$cp_column[] = array( "no", "Hide Post Excerpt" );
$cp_column[] = array( "", "Show Post Excerpt" );
$cp_num_column[] = array( "", "Show Two-Column List" );
$cp_num_column[] = array( "one", "Show One-Column List" );
cp_th( "Column List" );
cp_input( "cp_thumbWidth_Column", "smalltext", "Thumbnail Width (default. 80)", get_settings( "cp_thumbWidth_Column" ) );
cp_input( "cp_thumbHeight_Column", "smalltext", "Thumbnail Height (default. 80)", get_settings( "cp_thumbHeight_Column" ) );
cp_select( "cp_excerptColumn", $cp_column, get_settings( "cp_excerptColumn" ), "" );
cp_select ("cp_status_Column", $cp_num_column, get_settings( "cp_status_Column" ), "" );
cp_cth();
?>
</table>
<div style="font-size:0.9em; color:#999;"><p>Recommended values for above Column List fields are:
<ul><li>width = 80, height = 80, show post excerpts, two-column list</li><li>width = 265, height = 80, show post excerpts, two-column list</li><li>width = 265, height = 80, hide post excerpts, two-column list</li><li>width = 150, height = 90, show post excerpts, one-column list</li></ul></p></div>
<table width="100%" cellspacing="2" cellpadding="5" class="editform form-table">
<?php
$cp_indexcatbar[] = array( "no", "Hide Category Bar" );
$cp_indexcatbar[] = array( "", "Show Category Bar" );
$cp_indexgallery[] = array( "no", "Hide Video and Random Post Gallery" );
$cp_indexgallery[] = array( "", "Show Video and Random Post Gallery" );
cp_th( "Index Page" );
cp_select( "cp_showindexcatbar", $cp_indexcatbar, get_settings( "cp_showindexcatbar" ), "" );
cp_select( "cp_showindexgallery", $cp_indexgallery, get_settings( "cp_showindexgallery" ), "" );
cp_cth();
?>
</table>
<h4>Sidebar Settings</h4>
<p>You can customize category spoilers here. To add widgets in sidebar and footer, you need to go to Design > Widgets.</p>
<table width="100%" cellspacing="2" cellpadding="5" class="editform form-table">
<?php
$cp_spoilers[] = array( "no", "Hide Post Excerpt" );
$cp_spoilers[] = array( "", "Show Post Excerpt" );
$cp_showspoilers[] = array( "no", "Hide Category Spoilers" );
$cp_showspoilers[] = array( "", "Show Category Spoilers" );
cp_th( "Category Spoilers" );
cp_input( "cp_thumbWidth_Spoilers", "smalltext", "Thumbnail Width (default. 80)", get_settings( "cp_thumbWidth_Spoilers" ) );
cp_input( "cp_thumbHeight_Spoilers", "smalltext", "Thumbnail Height (default. 80)", get_settings( "cp_thumbHeight_Spoilers" ) );
cp_select( "cp_excerptSpoilers", $cp_spoilers, get_settings( "cp_excerptSpoilers" ), "" );
cp_select( "cp_catSpoilers", $cp_showspoilers, get_settings( "cp_catSpoilers" ), "" );
cp_cth();
?>
</table>