$name, 'callback' => $callback);
}
}
/**
* Function to remove posts views from the system.
* @since 1.4.3
*/
function arras_remove_tapestry($id) {
global $arras_tapestries;
unset($arras_tapestries[$id]);
}
/**
* Removes all posts display types from the system.
* @since 1.4.3
*/
function arras_remove_all_tapestries() {
global $arras_tapestries;
$arras_tapestries = array();
}
/**
* Traditional tapestry callback function.
* @since 1.4.3
*/
if (!function_exists('arras_tapestry_traditional')) {
function arras_tapestry_traditional($query, $page_type) {
echo '
';
while ($query->have_posts()) {
$query->the_post();
?>
>
Read the rest of this entry »', 'arras') ); ?>
';
}
arras_add_tapestry('traditional', __('Traditional', 'arras'), 'arras_tapestry_traditional');
}
/**
* Per Line tapestry callback function.
* @since 1.4.3
*/
if (!function_exists('arras_tapestry_line')) {
function arras_tapestry_line($query, $page_type) {
echo '
';
while ($query->have_posts()) {
$query->the_post();
?>
- >
cat_name;
else echo $cats[0]->cat_name; ?>
';
}
arras_add_tapestry('line', __('Per Line', 'arras'), 'arras_tapestry_line');
}
/**
* Node Based tapestry callback function.
* @since 1.4.3
*/
if (!function_exists('arras_tapestry_default')) {
function arras_tapestry_default($query, $page_type) {
echo '';
while ($query->have_posts()) {
$query->the_post();
?>
- >
';
}
arras_add_tapestry('default', __('Node Based', 'arras'), 'arras_tapestry_default');
}
/**
* Quick Preview tapestry callback function.
* @since 1.4.3
*/
if (!function_exists('arras_tapestry_quick')) {
function arras_tapestry_quick($query, $page_type) {
echo '';
while ($query->have_posts()) {
$query->the_post();
?>
- >
';
}
arras_add_tapestry('quick', __('Quick Preview', 'arras'), 'arras_tapestry_quick');
}
/**
* Helper function to display headers for certain tapestries.
* @since 1.4.3
*/
function arras_generic_postheader($page_type, $show_meta = false) {
global $post;
$postheader = '';
$postheader .= '';
return $postheader;
}
/* End of file tapestries.php */
/* Location: ./library/tapestries.php */