ID] = $page->post_title; } $categories = get_categories('hide_empty=0'); $allcategory = array(); foreach ($categories as $category) {$allcategory[$category->cat_ID] = $category->cat_name;} $arr = array( 'General Settings'=>array( 'Logo URL'=>array( 'type'=>'text', 'desc'=>'Paste the URL of your logo here.' ), 'Site Title Type'=>array( 'type'=>'select', 'opt'=>array('Custom Logo','Title Text'), 'desc'=>'Choose between Site Title or choose custom logo and upload your site logo as your site branding.' ), 'Display Author Below Posts'=>array( 'type'=>'select', 'opt'=>array('Yes'=>'yes','No'=>'no'), 'desc'=>'Select yes if you want to display the author information below the post article.' ) ), 'SEO Options'=>array( 'Ads 468x60 Banner Code'=>array( 'type'=>'textarea', 'desc'=>'Paste your ads code here.' ) ), 'Layout Settings'=>array( 'Featured Slider Type'=>array( 'type'=>'select', 'opt'=>array('Use Slider','Use Static'), 'desc'=>'Choose what type you want your featured content be.' ), 'Featured Post Category'=>array( 'type'=>'select', 'opt'=>$allcategory, 'desc'=>'Choose what category to use to populate the featured content.' ), 'Featured Static Content (only if type is Use Static)'=>array( 'type'=>'textarea', 'desc'=>'Note: Skip this if you choose not "Use Static".' ), 'Blurb 1'=>array( 'type'=>'select_index', 'opt'=>$allpage, 'desc'=>'Choose w/c page should be the first blurb.' ), 'Blurb 2'=>array( 'type'=>'select_index', 'opt'=>$allpage, 'desc'=>'Choose w/c page should be the second blurb.' ), 'Blurb 3'=>array( 'type'=>'select_index', 'opt'=>$allpage, 'desc'=>'Choose w/c page should be the third blurb.' ), 'Blurb 4'=>array( 'type'=>'select_index', 'opt'=>$allpage, 'desc'=>'Choose w/c page should be the fourth blurb.' ) ), 'Integration'=>array( 'Header Code'=>array( 'type'=>'textarea', 'desc'=>'Anything you put here will be added to every page of this theme. This is usefull for inserting scripts or styles at the header section.' ), 'Activate Header Code'=>array( 'type'=>'select', 'opt'=>array('No'=>'no','Yes'=>'yes') ), 'Footer Code'=>array( 'type'=>'textarea', 'desc'=>'Anything you put here will be added to every page of this theme. This is usefull for inserting scripts or styles at the footer section.' ), 'Activate Footer Code'=>array( 'type'=>'select', 'opt'=>array('No'=>'no','Yes'=>'yes') ) ), 'Documentation'=>array( 'Requirements'=>array( 'type'=>'docs', 'content'=> "- Wordpress 3.3.1+
- Host server with PHP5+" ), 'Installation and Setting-Up'=>array( 'type'=>'docs', 'content'=> "
  1. Upload the 'atom' and '".THEME_NAME."' in your wp-content/themes/ directory
  2. Go to your admin dashboard and Mangyan (leave the 'atom'). Atom is a framework used by ".strtoupper(THEME_NAME)." created by ThemeTribe. Atom is built specially for ThemeTribe themes.
  3. " ), 'Cusomizing '.strtoupper(THEME_NAME)=>array( 'type'=>'docs', 'content'=> "- Go to Theme Settings
    1. General Settings
    2. SEO Options
    3. Layout Settings
    4. Integration
    - Hit Save" ), 'Adding Thumbnail and Image in Featured Area '=>array( 'type'=>'docs', 'content'=> "" ), 'SUPPORT'=>array( 'type'=>'docs', 'content'=> "If you are still confused or encountered difficulties regarding to the installation of this theme, feel free to post your question at our support page. (http://themetribe.com/support)" ), ) ); foreach($arr2 as $key=>$val){ if(array_key_exists($key,$arr)) { $arr[$key]+=$arr2[$key]; } } if($rem_arr!=''){ foreach($rem_arr as $key=>$val){ foreach($val as $k=>$v){ if(array_key_exists($k,$arr)){ unset($arr[$k][$v]); } } } } return $arr; } function header_code(){ if(get_atom_option("activate_header_code")=="yes"){ echo get_atom_option("header_code"); } } function footer_code(){ if(get_atom_option("activate_footer_code")=="yes"){ echo get_atom_option("footer_code"); } } add_action('wp_head','header_code'); add_action('wp_footer','footer_code'); function atom_string($str){ return str_replace('\"','',urldecode($str)); } function input_type($k, $v){ $value = get_settings_value(); switch($v['type']){ case 'text': ?> $val){ $_POST[$key] = urlencode($val); } update_option("atom_settings",$_POST); echo "

    Configuration Saved!

    "; } ?>