- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
This is my functions.php (part 1):
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'before_widget' => '- ',
'after_widget' => ' ',
'before_title' => '',
'after_title' => '
',
));
}
$themename = "MobileWorld";
$shortname = str_replace(' ', '_', strtolower($themename));
function get_theme_option($option)
{
global $shortname;
return stripslashes(get_option($shortname . '_' . $option));
}
function get_theme_settings($option)
{
return stripslashes(get_option($option));
}
function cats_to_select()
{
$categories = get_categories('hide_empty=0');
$categories_array[] = array('value'=>'0', 'title'=>'Select');
foreach ($categories as $cat) {
if($cat->category_count == '0') {
$posts_title = 'No posts!';
} elseif($cat->category_count == '1') {
$posts_title = '1 post';
} else {
$posts_title = $cat->category_count . ' posts';
}
$categories_array[] = array('value'=> $cat->cat_ID, 'title'=> $cat->cat_name . ' ( ' . $posts_title . ' )');
}
return $categories_array;
}
$options = array (
array( "type" => "open"),
array( "name" => "Logo Image",
"desc" => "Enter the logo image full path. Leave it blank if you don't want to use logo image.",
"id" => $shortname."_logo",
"std" => get_bloginfo('template_url') . "/images/logo.png",
Code removed by Mod
Code removed by Mod
mayby its better to buy… but i like to do it for free. Can anyone help me?
Help you rip off someone else’s hard work? Nope
Clearly this is a test…lol
Like everyone else has said, if you want to get rid of the credit you simply pay for it.