Explorar o código

added link pages for people who enjoy annoying their readers

Eddie Machado %!s(int64=12) %!d(string=hai) anos
pai
achega
a7dcc78dd8

+ 23 - 1
page-custom.php

@@ -37,7 +37,29 @@
 								</header> <?php // end article header ?>
 
 								<section class="entry-content cf" itemprop="articleBody">
-									<?php the_content(); ?>
+									<?php
+										// the content (pretty self explanatory huh)
+										the_content();
+
+										/*
+										 * Link Pages is used in case you have posts that are set to break into
+										 * multiple pages. You can remove this if you don't plan on doing that.
+										 *
+										 * Also, breaking content up into multiple pages is a horrible experience,
+										 * so don't do it. While there are SOME edge cases where this is useful, it's
+										 * mostly used for people to get more ad views. It's up to you but if you want
+										 * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+										 *
+										 * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+										 *
+										*/
+										wp_link_pages( array(
+											'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+											'after'       => '</div>',
+											'link_before' => '<span>',
+											'link_after'  => '</span>',
+										) );
+									?>
 								</section> <?php // end article section ?>
 
 								<footer class="article-footer">

+ 23 - 1
page.php

@@ -21,7 +21,29 @@
 								</header> <?php // end article header ?>
 
 								<section class="entry-content cf" itemprop="articleBody">
-									<?php the_content(); ?>
+									<?php
+										// the content (pretty self explanatory huh)
+										the_content();
+
+										/*
+										 * Link Pages is used in case you have posts that are set to break into
+										 * multiple pages. You can remove this if you don't plan on doing that.
+										 *
+										 * Also, breaking content up into multiple pages is a horrible experience,
+										 * so don't do it. While there are SOME edge cases where this is useful, it's
+										 * mostly used for people to get more ad views. It's up to you but if you want
+										 * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+										 *
+										 * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+										 *
+										*/
+										wp_link_pages( array(
+											'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+											'after'       => '</div>',
+											'link_before' => '<span>',
+											'link_after'  => '</span>',
+										) );
+								?>
 							</section> <?php // end article section ?>
 
 								<footer class="article-footer">

+ 23 - 1
post-formats/format-aside.php

@@ -13,7 +13,29 @@
                 </header> <?php // end article header ?>
 
                 <section class="entry-content cf" itemprop="articleBody">
-                  <?php the_content(); ?>
+                  <?php
+                    // the content (pretty self explanatory huh)
+                    the_content();
+
+                    /*
+                     * Link Pages is used in case you have posts that are set to break into
+                     * multiple pages. You can remove this if you don't plan on doing that.
+                     *
+                     * Also, breaking content up into multiple pages is a horrible experience,
+                     * so don't do it. While there are SOME edge cases where this is useful, it's
+                     * mostly used for people to get more ad views. It's up to you but if you want
+                     * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+                     *
+                     * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+                     *
+                    */
+                    wp_link_pages( array(
+                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+                      'after'       => '</div>',
+                      'link_before' => '<span>',
+                      'link_after'  => '</span>',
+                    ) );
+                  ?>
                 </section> <?php // end article section ?>
 
                 <footer class="article-footer">

+ 23 - 1
post-formats/format-audio.php

@@ -13,7 +13,29 @@
                 </header> <?php // end article header ?>
 
                 <section class="entry-content cf" itemprop="articleBody">
-                  <?php the_content(); ?>
+                  <?php
+                    // the content (pretty self explanatory huh)
+                    the_content();
+
+                    /*
+                     * Link Pages is used in case you have posts that are set to break into
+                     * multiple pages. You can remove this if you don't plan on doing that.
+                     *
+                     * Also, breaking content up into multiple pages is a horrible experience,
+                     * so don't do it. While there are SOME edge cases where this is useful, it's
+                     * mostly used for people to get more ad views. It's up to you but if you want
+                     * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+                     *
+                     * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+                     *
+                    */
+                    wp_link_pages( array(
+                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+                      'after'       => '</div>',
+                      'link_before' => '<span>',
+                      'link_after'  => '</span>',
+                    ) );
+                  ?>
                 </section> <?php // end article section ?>
 
                 <footer class="article-footer">

+ 23 - 1
post-formats/format-chat.php

@@ -13,7 +13,29 @@
                 </header> <?php // end article header ?>
 
                 <section class="entry-content cf" itemprop="articleBody">
-                  <?php the_content(); ?>
+                  <?php
+                    // the content (pretty self explanatory huh)
+                    the_content();
+
+                    /*
+                     * Link Pages is used in case you have posts that are set to break into
+                     * multiple pages. You can remove this if you don't plan on doing that.
+                     *
+                     * Also, breaking content up into multiple pages is a horrible experience,
+                     * so don't do it. While there are SOME edge cases where this is useful, it's
+                     * mostly used for people to get more ad views. It's up to you but if you want
+                     * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+                     *
+                     * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+                     *
+                    */
+                    wp_link_pages( array(
+                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+                      'after'       => '</div>',
+                      'link_before' => '<span>',
+                      'link_after'  => '</span>',
+                    ) );
+                  ?>
                 </section> <?php // end article section ?>
 
                 <footer class="article-footer">

+ 23 - 1
post-formats/format-gallery.php

@@ -13,7 +13,29 @@
                 </header> <?php // end article header ?>
 
                 <section class="entry-content cf" itemprop="articleBody">
-                  <?php the_content(); ?>
+                  <?php
+                    // the content (pretty self explanatory huh)
+                    the_content();
+
+                    /*
+                     * Link Pages is used in case you have posts that are set to break into
+                     * multiple pages. You can remove this if you don't plan on doing that.
+                     *
+                     * Also, breaking content up into multiple pages is a horrible experience,
+                     * so don't do it. While there are SOME edge cases where this is useful, it's
+                     * mostly used for people to get more ad views. It's up to you but if you want
+                     * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+                     *
+                     * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+                     *
+                    */
+                    wp_link_pages( array(
+                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+                      'after'       => '</div>',
+                      'link_before' => '<span>',
+                      'link_after'  => '</span>',
+                    ) );
+                  ?>
                 </section> <?php // end article section ?>
 
                 <footer class="article-footer">

+ 23 - 1
post-formats/format-image.php

@@ -13,7 +13,29 @@
                 </header> <?php // end article header ?>
 
                 <section class="entry-content cf" itemprop="articleBody">
-                  <?php the_content(); ?>
+                  <?php
+                    // the content (pretty self explanatory huh)
+                    the_content();
+
+                    /*
+                     * Link Pages is used in case you have posts that are set to break into
+                     * multiple pages. You can remove this if you don't plan on doing that.
+                     *
+                     * Also, breaking content up into multiple pages is a horrible experience,
+                     * so don't do it. While there are SOME edge cases where this is useful, it's
+                     * mostly used for people to get more ad views. It's up to you but if you want
+                     * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+                     *
+                     * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+                     *
+                    */
+                    wp_link_pages( array(
+                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+                      'after'       => '</div>',
+                      'link_before' => '<span>',
+                      'link_after'  => '</span>',
+                    ) );
+                  ?>
                 </section> <?php // end article section ?>
 
                 <footer class="article-footer">

+ 23 - 3
post-formats/format-link.php

@@ -13,9 +13,29 @@
                 </header> <?php // end article header ?>
 
                 <section class="entry-content cf" itemprop="articleBody">
-
-                  <?php the_content(); ?>
-
+                  <?php
+                    // the content (pretty self explanatory huh)
+                    the_content();
+
+                    /*
+                     * Link Pages is used in case you have posts that are set to break into
+                     * multiple pages. You can remove this if you don't plan on doing that.
+                     *
+                     * Also, breaking content up into multiple pages is a horrible experience,
+                     * so don't do it. While there are SOME edge cases where this is useful, it's
+                     * mostly used for people to get more ad views. It's up to you but if you want
+                     * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+                     *
+                     * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+                     *
+                    */
+                    wp_link_pages( array(
+                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+                      'after'       => '</div>',
+                      'link_before' => '<span>',
+                      'link_after'  => '</span>',
+                    ) );
+                  ?>
                 </section> <?php // end article section ?>
 
                 <footer class="article-footer">

+ 23 - 3
post-formats/format-quote.php

@@ -13,9 +13,29 @@
                 </header> <?php // end article header ?>
 
                 <section class="entry-content cf" itemprop="articleBody">
-
-                  <?php the_content(); ?>
-
+                  <?php
+                    // the content (pretty self explanatory huh)
+                    the_content();
+
+                    /*
+                     * Link Pages is used in case you have posts that are set to break into
+                     * multiple pages. You can remove this if you don't plan on doing that.
+                     *
+                     * Also, breaking content up into multiple pages is a horrible experience,
+                     * so don't do it. While there are SOME edge cases where this is useful, it's
+                     * mostly used for people to get more ad views. It's up to you but if you want
+                     * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+                     *
+                     * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+                     *
+                    */
+                    wp_link_pages( array(
+                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+                      'after'       => '</div>',
+                      'link_before' => '<span>',
+                      'link_after'  => '</span>',
+                    ) );
+                  ?>
                 </section> <?php // end article section ?>
 
                 <footer class="article-footer">

+ 23 - 1
post-formats/format-status.php

@@ -13,7 +13,29 @@
                 </header> <?php // end article header ?>
 
                 <section class="entry-content cf" itemprop="articleBody">
-                  <?php the_content(); ?>
+                  <?php
+                    // the content (pretty self explanatory huh)
+                    the_content();
+
+                    /*
+                     * Link Pages is used in case you have posts that are set to break into
+                     * multiple pages. You can remove this if you don't plan on doing that.
+                     *
+                     * Also, breaking content up into multiple pages is a horrible experience,
+                     * so don't do it. While there are SOME edge cases where this is useful, it's
+                     * mostly used for people to get more ad views. It's up to you but if you want
+                     * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+                     *
+                     * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+                     *
+                    */
+                    wp_link_pages( array(
+                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+                      'after'       => '</div>',
+                      'link_before' => '<span>',
+                      'link_after'  => '</span>',
+                    ) );
+                  ?>
                 </section> <?php // end article section ?>
 
                 <footer class="article-footer">

+ 23 - 1
post-formats/format-video.php

@@ -13,7 +13,29 @@
                 </header> <?php // end article header ?>
 
                 <section class="entry-content cf" itemprop="articleBody">
-                  <?php the_content(); ?>
+                  <?php
+                    // the content (pretty self explanatory huh)
+                    the_content();
+
+                    /*
+                     * Link Pages is used in case you have posts that are set to break into
+                     * multiple pages. You can remove this if you don't plan on doing that.
+                     *
+                     * Also, breaking content up into multiple pages is a horrible experience,
+                     * so don't do it. While there are SOME edge cases where this is useful, it's
+                     * mostly used for people to get more ad views. It's up to you but if you want
+                     * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+                     *
+                     * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+                     *
+                    */
+                    wp_link_pages( array(
+                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+                      'after'       => '</div>',
+                      'link_before' => '<span>',
+                      'link_after'  => '</span>',
+                    ) );
+                  ?>
                 </section> <?php // end article section ?>
 
                 <footer class="article-footer">

+ 23 - 1
post-formats/format.php

@@ -27,7 +27,29 @@
                 </header> <?php // end article header ?>
 
                 <section class="entry-content cf" itemprop="articleBody">
-                  <?php the_content(); ?>
+                  <?php
+                    // the content (pretty self explanatory huh)
+                    the_content();
+
+                    /*
+                     * Link Pages is used in case you have posts that are set to break into
+                     * multiple pages. You can remove this if you don't plan on doing that.
+                     *
+                     * Also, breaking content up into multiple pages is a horrible experience,
+                     * so don't do it. While there are SOME edge cases where this is useful, it's
+                     * mostly used for people to get more ad views. It's up to you but if you want
+                     * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
+                     *
+                     * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
+                     *
+                    */
+                    wp_link_pages( array(
+                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
+                      'after'       => '</div>',
+                      'link_before' => '<span>',
+                      'link_after'  => '</span>',
+                    ) );
+                  ?>
                 </section> <?php // end article section ?>
 
                 <footer class="article-footer">