Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content-statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
<ul class="column-third column-one">
<li>Cataloged works: <?= number_format($items['total_projects'])?></li>
<li>Works cataloged last month: <?= number_format($items['projects_last_month'])?></li>
</ul><!-- end .stats-colum-one -->
</ul><!-- end .stats-column-one -->

<ul class="column-third column-two">
<li>Non-English works: <?= number_format($items['non_english_projects'])?></li>
<li>Number of languages: <?= number_format($items['number_languages'])?></li>
</ul><!-- end .stats-colum-one -->
</ul><!-- end .stats-column-one -->

<ul class="column-third column-three">
<li>Number of readers: <?= number_format($items['number_readers'])?></li>
</ul><!-- end .stats-colum-one -->
</ul><!-- end .stats-column-one -->

<?php endif; ?>

Expand Down
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function librivox_menus() {
function librivox_scripts() {

wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_script( 'small-meu', get_template_directory_uri() . '/js/small-menu.js', array( 'jquery' ), 'v1', true );
wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', array( 'jquery' ), 'v1', true );

if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
Expand Down Expand Up @@ -182,7 +182,7 @@ function format_results($items)
return $html;
}

// Lets try to re-use as much formatting code from catalog as possible such as
// Let's try to re-use as much formatting code from catalog as possible such as
// create_full_title and format_authors.
require_once(ABSPATH . '../catalog/application/helpers/previewer_helper.php');
function base_url() { return LIBRIVOX_CATALOG_URL; }
Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<!-- Search Form -->
<div class="search-wrap">
<form action="<?= LIBRIVOX_CATALOG_SEARCH; ?>" role="search" id="searchform" method="get" class="searchform">
<label class="assistive-text" for="s">Search Librivox</label>
<label class="assistive-text" for="s">Search LibriVox</label>
<input placeholder="Search by Author, Title or Reader" id="q" name="q" class="field" />
<input type="submit" value="<?php _e('Search'); ?>" id="searchsubmit" class="submit" />
</form>
Expand Down
2 changes: 1 addition & 1 deletion home-content-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</div><!-- end .bottom-boxes -->
</div><!-- end .block-wrap -->

</div> <!-- .end .homepage-main-wrap -->
</div> <!-- end .homepage-main-wrap -->


<?php endwhile; ?>
Expand Down
4 changes: 2 additions & 2 deletions inc/conditional-mobile.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function is_ipod() {

/***************************************************************
* Function is_android
* Detect an android device. They *SHOULD* all behave the same
* Detect an Android device. They *SHOULD* all behave the same
***************************************************************/

function is_android() {
Expand All @@ -46,7 +46,7 @@ function is_android() {

/***************************************************************
* Function is_blackberry
* Detect a blackberry device
* Detect a BlackBerry device
***************************************************************/

function is_blackberry() {
Expand Down
5 changes: 3 additions & 2 deletions inc/theme-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ function librivox_options_do_page() {
function librivox_options_validate( $input ) {

// Our checkbox value is either 0 or 1
if ( ! isset( $input['hiderss'] ) )
if ( ! isset( $input['hiderss'] ) ) {
$input['hiderss'] = null;
$input['hiderss'] = ( $input['hiderss'] == 1 ? 1 : 0 );
}
$input['hiderss'] = ( $input['hiderss'] == 1 ? 1 : 0 );

// Our text option must be safe text with no HTML tags
$input['twitterurl'] = wp_filter_nohtml_kses( $input['twitterurl'] );
Expand Down