';
}
$items = $homelink . $items;
return $items;
}
add_filter('wp_list_pages', 'appointway_nav_menu_items');
/*-----------------------------------------------------------------------------------*/
/* Function to call first uploaded image in functions file
/*-----------------------------------------------------------------------------------*/
function inkthemes_main_image() {
global $post, $posts;
//This is required to set to Null
$id='';
$the_title='';
// Till Here
$permalink = get_permalink( $id );
$homeLink = get_template_directory_uri();
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('//i', $post->post_content, $matches);
if(isset($matches [1] [0])){
$first_img = $matches [1] [0];}
if(empty($first_img)){ //Defines a default image
}
else{
print "";
}
}
/* ----------------------------------------------------------------------------------- */
/* Breadcrumbs Plugin
/*----------------------------------------------------------------------------------- */
function appointway_breadcrumbs() {
$delimiter = '»';
$home = 'Home'; // text for the 'Home' link
$before = ''; // tag before the current crumb
$after = ''; // tag after the current crumb
echo '
';
}
/* ----------------------------------------------------------------------------------- */
/* Attachment Page Design
/*----------------------------------------------------------------------------------- */
//For Attachment Page
/**
* Prints HTML with meta information for the current post (category, tags and permalink).
*
*/
function appointway_posted_in() {
// Retrieves tag list of current post, separated by commas.
$tag_list = get_the_tag_list('', ', ');
if ($tag_list) {
$posted_in = __('This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.', 'appointway');
} elseif (is_object_in_taxonomy(get_post_type(), 'category')) {
$posted_in = __('This entry was posted in %1$s. Bookmark the permalink.', 'appointway');
} else {
$posted_in = __('Bookmark the permalink.', 'appointway');
}
// Prints the string, replacing the placeholders.
printf(
$posted_in, get_the_category_list(', '), $tag_list, get_permalink(), the_title_attribute('echo=0')
);
}
?>
__('Primary Widget Area', 'appointway'),
'id' => 'primary-widget-area',
'description' => __('The primary widget area', 'appointway'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
// Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
register_sidebar(array(
'name' => __('Secondary Widget Area', 'appointway'),
'id' => 'secondary-widget-area',
'description' => __('The secondary widget area', 'appointway'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
// Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
register_sidebar(array(
'name' => __('Home Page Sidebar Widget Area', 'appointway'),
'id' => 'home-page-widget-area',
'description' => __('The Home Page Sidebar Widget Area', 'appointway'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
// Area 3, located in the footer. Empty by default.
register_sidebar(array(
'name' => __('First Footer Widget Area', 'appointway'),
'id' => 'first-footer-widget-area',
'description' => __('The first footer widget area', 'appointway'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
// Area 4, located in the footer. Empty by default.
register_sidebar(array(
'name' => __('Second Footer Widget Area', 'appointway'),
'id' => 'second-footer-widget-area',
'description' => __('The second footer widget area', 'appointway'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
// Area 5, located in the footer. Empty by default.
register_sidebar(array(
'name' => __('Third Footer Widget Area', 'appointway'),
'id' => 'third-footer-widget-area',
'description' => __('The third footer widget area', 'appointway'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
// Area 6, located in the footer. Empty by default.
register_sidebar(array(
'name' => __('Fourth Footer Widget Area', 'appointway'),
'id' => 'fourth-footer-widget-area',
'description' => __('The fourth footer widget area', 'appointway'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
}
/** Register sidebars by running appointway_widgets_init() on the widgets_init hook. */
add_action('widgets_init', 'appointway_widgets_init');
?>
max_num_pages;
if (!$pages) {
$pages = 1;
}
}
if (1 != $pages) {
echo "