Skip to content

Commit 391e7f1

Browse files
committed
Oo mods
1 parent d0efc5c commit 391e7f1

14 files changed

+57
-57
lines changed

archive.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* default archive page template part
4-
*
4+
*
55
* @package multiloquent
66
*/
77

@@ -42,10 +42,10 @@
4242
</div>
4343
<section class="container post">
4444
<?php
45-
$colour = multiloquent_get_random_blue_class();
45+
$colour = $multiloquent->multiloquent_get_random_blue_class();
4646
while (have_posts()) {
4747
the_post();
48-
multiloquent_render_the_archive($colour);
48+
$multiloquent->multiloquent_render_the_archive($colour);
4949
}
5050
?>
5151
</section>
@@ -62,11 +62,11 @@
6262
</ul>
6363
</nav>
6464
</div>
65-
<?php
66-
} else {
65+
<?php
66+
} else {
6767
?>
68-
<div class="container post">
69-
<?php
68+
<div class="container post">
69+
<?php
7070
get_template_part('error-snippet');
7171
?>
7272
</div>

author.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2-
/**
2+
/**
33
* author pages template part.
44
* have an archive and a bio for the author
5-
*
5+
*
66
* @package multiloquent
77
*/
88
get_header();
@@ -15,7 +15,7 @@
1515
<div class="col-xs-12 col-sm-8">
1616
<h2><?php the_author_meta('display_name'); ?></h2>
1717
<p><strong>Website: </strong> <?php the_author_link();?> </p>
18-
</div>
18+
</div>
1919
<div class="col-xs-12 col-sm-4 text-center">
2020
<figure>
2121
<?php echo get_avatar(get_the_author_meta('ID'));?>
@@ -24,7 +24,7 @@
2424
</figcaption>
2525
</figure>
2626
</div>
27-
</div>
27+
</div>
2828
<div class="col-xs-12 divider">
2929
<div class="col-xs-12">
3030
<?php
@@ -34,16 +34,16 @@
3434
}
3535
?>
3636
</div>
37-
</div>
37+
</div>
3838
</header>
3939
</div>
4040
</div>
4141
<section class="container post">
4242
<?php
43-
$colour = multiloquent_get_random_blue_class();
43+
$colour = $multiloquent->multiloquent_get_random_blue_class();
4444
while (have_posts()) {
4545
the_post();
46-
multiloquent_render_the_archive($colour);
46+
$multiloquent->multiloquent_render_the_archive($colour);
4747
}
4848
?>
4949
</section>
@@ -59,7 +59,7 @@
5959
</nav>
6060
</div>
6161
<?php } else { ?>
62-
<div class="container post">
62+
<div class="container post">
6363
<?php get_template_part('error-snippet');?>
6464
</div>
6565
<?php

breadcrumb.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<?php
1+
<?php
22
/**
33
* breadcrumb template part
4-
*
4+
*
55
* @package multiloquent\template_parts
66
*/
77
?>
88
<nav class="container hidden-xs">
99
<ul class="breadcrumb clearfix">
1010
<?php
11-
echo multiloquent_breadcrumbs();
11+
echo $multiloquent->multiloquent_breadcrumbs();
1212
get_template_part('metadata');
1313
?>
1414
</ul>
15-
</nav>
15+
</nav>

category.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* category archives template part
4-
*
4+
*
55
* @package multiloquent\template_parts
66
*/
77

@@ -20,10 +20,10 @@
2020
</div>
2121
<section class="container post">
2222
<?php
23-
$colour = multiloquent_get_random_blue_class();
23+
$colour = $multiloquent->multiloquent_get_random_blue_class();
2424
while (have_posts()) {
2525
the_post();
26-
multiloquent_render_the_archive($colour);
26+
$multiloquent->multiloquent_render_the_archive($colour);
2727
}
2828
?>
2929
</section>

featuredimage.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* template part to output a featured image
4-
*
4+
*
55
* @package multiloquent\template_parts
66
*/
77

@@ -12,7 +12,7 @@
1212
$theimg = $slider_image[0];
1313
} else {
1414
$theimg = get_header_image();
15-
}
15+
}
1616
// remove the domain part as some hosts baulk at it
1717
//$urlparts = parse_url($theimg);
1818
//$extracted = $_SERVER['DOCUMENT_ROOT'].$urlparts['path'];
@@ -22,9 +22,9 @@
2222

2323
?>
2424

25-
<h1 class="multiloquent_h1_tag" style="background-image:url('<?php echo $theimg;?>');"><?php echo multiloquent_post_title(); ?></h1>
25+
<h1 class="multiloquent_h1_tag" style="background-image:url('<?php echo $theimg;?>');"><?php echo $multiloquent->multiloquent_post_title(); ?></h1>
2626
<figure class="thumbnail main_image">
2727
<figcaption>
28-
<span class="fa fa-comment-o fa-fw"></span> <?php echo multiloquent_post_title(); ?></figcaption>
28+
<span class="fa fa-comment-o fa-fw"></span> <?php echo $multiloquent->multiloquent_post_title(); ?></figcaption>
2929
</figure>
3030

featuredposts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* template part for featured posts
44
* @todo -- either expand or remove this
5-
*
5+
*
66
* @package multiloquent\template_parts
77
*/
8-
echo multiloquent_paralax_featured_sliders();
8+
echo $multiloquent->multiloquent_paralax_featured_sliders();

front-page.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* home page template part if static page selected as homepage
4-
*
4+
*
55
* @package multiloquent\template_parts
66
*/
77
if ('posts' == get_option('show_on_front')) {
@@ -17,12 +17,12 @@
1717
the_post();
1818
the_content('<p class="serif">' . 'Read the rest of this page' . ' &raquo;</p>');
1919
}
20-
?>
20+
?>
2121
</div>
2222
</div>
2323
<!-- google_ad_section_end-->
2424
<p class="lead text-center">Featured Posts</p>
25-
<?php echo multiloquent_paralax_slider();?>
25+
<?php echo $multiloquent->multiloquent_paralax_slider();?>
2626
<div class="container">
2727
<?php get_template_part('advert');?>
2828
</div>

home.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* this is the template for the home page when its set to display blog posts
4-
*
4+
*
55
* @package multiloquent\template_parts
66
*/
77
get_header();
@@ -15,15 +15,15 @@
1515
</div>
1616
</div>
1717
<?php
18-
echo multiloquent_paralax_slider();
18+
echo $multiloquent->multiloquent_paralax_slider();
1919
?>
2020
<p class="lead text-center">Recent Posts</p>
2121
<section class="container post">
2222
<?php
23-
$colour = multiloquent_get_random_blue_class();
23+
$colour = $multiloquent->multiloquent_get_random_blue_class();
2424
while (have_posts()) {
2525
the_post();
26-
multiloquent_render_the_archive($colour);
26+
$multiloquent->multiloquent_render_the_archive($colour);
2727
}
2828
?>
2929
</section>
@@ -39,7 +39,7 @@
3939
</nav>
4040
</div>
4141
<?php } else { ?>
42-
<div class="container post">
42+
<div class="container post">
4343
<?php get_template_part('error-snippet');?>
4444
</div>
4545
<?php

single.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* single post template part
4-
*
4+
*
55
* @package multiloquent\template_parts
66
*/
77
get_header();
@@ -37,9 +37,9 @@
3737
<section class="row">
3838
<div class="tagcloud clearfix mb">
3939
<div class="tag-cloud">
40-
<h3>Tags for <?php echo multiloquent_post_title(); ?></h3>
40+
<h3>Tags for <?php echo $multiloquent->multiloquent_post_title(); ?></h3>
4141
<div>
42-
<?php echo multiloquent_render_tags($post, 1);?>
42+
<?php echo $multiloquent->multiloquent_render_tags($post, 1);?>
4343
</div>
4444
</div>
4545
</div>
@@ -53,7 +53,7 @@
5353
echo '</div>';
5454
}
5555
get_template_part('advert');
56-
?>ß
56+
?>ß
5757
</div>
5858
<?php
5959
// get_template_part('social');

template-adventures-single.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
get_template_part('featuredimage');
1212
echo '<div id="post-' . get_the_ID() . '" ';
1313
echo post_class('post');
14-
echo '>';
15-
$title_string = multiloquent_post_title();
14+
echo '>';
15+
$title_string = $multiloquent->multiloquent_post_title();
1616
$title_string = str_replace('plan', '', $title_string);
1717
$title_string = str_replace('part', '', $title_string);
1818
$title_string = str_replace('day', '', $title_string);

0 commit comments

Comments
 (0)