-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
1,505 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.rpbt-post-date { | ||
display: block; | ||
font-size: smaller; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<p class="rpbt_columns"> | ||
<label for="<?php echo $this->get_field_id( 'columns' ); ?>"> | ||
<?php _e( 'Number of image columns', 'related-posts-by-taxonomy' ); ?>: | ||
</label> | ||
<input id="<?php echo $this->get_field_id( 'columns' ); ?>" name="<?php echo $this->get_field_name( 'columns' ) ?>" value="<?php esc_attr_e( $i['columns'] ); ?>" size="3" class="tiny-text" step="1" min="0" type="number" /> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<h4 class="rpbt_display_title"<?php echo $style; ?>> | ||
<?php _e( 'Display', 'related-posts-by-taxonomy' ); ?> | ||
</h4> | ||
<p class="rpbt_format"> | ||
<label for="<?php echo $this->get_field_id( 'format' ); ?>"> | ||
<?php _e( 'Format', 'related-posts-by-taxonomy' ) ?>: | ||
</label> | ||
<select name="<?php echo $this->get_field_name( 'format' ); ?>" id="<?php echo $this->get_field_id( 'format' ); ?>" class="widefat"> | ||
<?php foreach ( $plugin->formats as $name => $label ) : ?> | ||
<option value="<?php esc_attr_e( $name ); ?>"<?php selected( $i['format'], $name, true ); ?>> | ||
<?php echo $label; ?> | ||
</option> | ||
<?php endforeach; ?> | ||
</select> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<h4 class="rpbt_widget_image_display_title" <?php echo $style; ?>> | ||
<?php _e( 'Image Display', 'related-posts-by-taxonomy' ); ?> | ||
</h4> | ||
<p class="rpbt_image_size"> | ||
<label for="<?php echo $this->get_field_id( 'image_size' ); ?>"> | ||
<?php _e( 'Image Size', 'related-posts-by-taxonomy' ); ?>: | ||
</label> | ||
<select name="<?php echo $this->get_field_name( 'image_size' ); ?>" id="<?php echo $this->get_field_id( 'image_size' ); ?>" class="widefat"> | ||
<?php foreach ( $plugin->image_sizes as $name => $label ) : ?> | ||
<option value="<?php esc_attr_e( $name ) ?>"<?php selected( $i['image_size'], $name, true ); ?>> | ||
<?php echo $label; ?> | ||
</option>' | ||
<?php endforeach; ?> | ||
</select> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<p class="rpbt_link_caption"> | ||
<input class="checkbox" type="checkbox" <?php checked( $i['link_caption'], 1, true ); ?> id="<?php echo $this->get_field_id( 'link_caption' ); ?>" name="<?php echo $this->get_field_name( 'link_caption' ); ?>" /> | ||
<label for="<?php echo $this->get_field_id( 'link_caption' ); ?>"> | ||
<?php _e( 'Link image captions to posts', 'related-posts-by-taxonomy' ); ?> | ||
</label> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<p class="rpbt_post_id"> | ||
<label for="<?php echo $this->get_field_id( 'post_id' ) ?>"> | ||
<?php _e( 'Display related posts for post ID (optional)', 'related-posts-by-taxonomy' ); ?>: | ||
</label> | ||
<input id="<?php echo $this->get_field_id( 'post_id' ); ?>" name="<?php echo $this->get_field_name( 'post_id' ) ?>" type="text" value="<?php echo $i['post_id']; ?>" size="5" /> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div class="rpbt_post_types"> | ||
<h4<?php echo $style; ?>> | ||
<?php _e( 'Post Types', 'related-posts-by-taxonomy' ); ?> | ||
</h4> | ||
<p> | ||
<?php foreach ( $plugin->post_types as $name => $label ) : ?> | ||
<?php | ||
$checked = ''; | ||
if ( isset( $i['post_types'][ $name ] ) && ( 'on' === $i['post_types'][ $name ] ) ) { | ||
$checked = ' checked="checked"'; | ||
} | ||
?> | ||
<input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id( 'post_types' ) . '_' . $name; ?>" name="<?php echo $this->get_field_name( 'post_types' ) . "[$name]"; ?>"<?php echo $checked; ?> /> | ||
<label for="<?php echo $this->get_field_id( 'post_types' ) . '_' . $name; ?>"> | ||
<?php echo $label; ?> | ||
</label><br /> | ||
<?php endforeach; ?> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<p class="rpbt_posts_per_page"> | ||
<label for="<?php echo $this->get_field_id( 'posts_per_page' ); ?>"> | ||
<?php _e( 'Number of related posts to show', 'related-posts-by-taxonomy' ); ?> | ||
</label> | ||
<input id="<?php echo $this->get_field_id( 'posts_per_page' ); ?>" name="<?php echo $this->get_field_name( 'posts_per_page' ); ?>" value="<?php echo esc_attr_e( $i['posts_per_page'] ); ?>" size="3" class="tiny-text" step="1" min="-1" type="number" /> | ||
<br/> | ||
<span class="description"> | ||
<?php _e( 'Use -1 to show all related posts.', 'related-posts-by-taxonomy' ); ?> | ||
</span> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<p class="rpbt_random"> | ||
<input class="checkbox" type="checkbox" <?php checked( $i['random'], 1, true ); ?> id="<?php echo $this->get_field_id( 'random' ); ?>" name="<?php echo $this->get_field_name( 'random' ); ?>" /> | ||
<label for="<?php echo $this->get_field_id( 'random' ); ?>"> | ||
<?php _e( 'Randomize related posts.', 'related-posts-by-taxonomy' ); ?> | ||
</label> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<p class="rpbt_show_date"> | ||
<input class="checkbox" type="checkbox"<?php checked( $i['show_date'], 1, true ); ?> id="<?php echo $this->get_field_id( 'show_date' ); ?>" name="<?php echo $this->get_field_name( 'show_date' ); ?>" /> | ||
<label for="<?php echo $this->get_field_id( 'show_date' ); ?>"> | ||
<?php _e( 'Display post date', 'related-posts-by-taxonomy' ); ?> | ||
</label> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h4 class="rpbt_widget_display_title"<?php echo $style; ?>> | ||
<?php _e( 'Widget Display', 'related-posts-by-taxonomy' ); ?> | ||
</h4> | ||
<p class="rpbt_singular_template"> | ||
<input class="checkbox" type="checkbox" <?php checked( $i['singular_template'], 1, true ); ?> id="<?php echo $this->get_field_id( 'singular_template' ); ?>" name="<?php echo $this->get_field_name( 'singular_template' ); ?>" /> | ||
<label for="<?php echo $this->get_field_id( 'singular_template' ) ?>"> | ||
<?php _e( 'Display this widget on single post pages only', 'related-posts-by-taxonomy' ); ?> | ||
</label> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="rpbt_taxonomies"> | ||
<h4<?php echo $style ?>><?php _e( 'Taxonomies', 'related-posts-by-taxonomy' ); ?></h4> | ||
<p> | ||
<label for="<?php echo $this->get_field_id( 'taxonomies' ); ?>"> | ||
<?php _e( 'Taxonomy', 'related-posts-by-taxonomy' ); ?>: | ||
</label> | ||
<select name="<?php echo $this->get_field_name( 'taxonomies' ); ?>" id="<?php echo $this->get_field_id( 'taxonomies' ) ?>" class="widefat"> | ||
<option value="<?php esc_attr_e( $plugin->all_tax ) ?>" <?php selected( $i['taxonomies'], $plugin->all_tax, true ) ?>> | ||
<?php _e( 'All Taxonomies', 'related-posts-by-taxonomy' ); ?> | ||
</option> | ||
<?php foreach ( $plugin->taxonomies as $name => $label ) : ?> | ||
<option value="<?php esc_attr_e( $name ) ?>"<?php selected( $i['taxonomies'], $name, true ) ?>> | ||
<?php echo $label ?> | ||
</option> | ||
<?php endforeach; ?> | ||
</select> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<p class="rpbt_title"> | ||
<label for="<?php echo $this->get_field_id( 'title' ); ?>"> | ||
<?php _e( 'Title', 'related-posts-by-taxonomy' ); ?>: | ||
</label> | ||
<input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php esc_attr_e( $i['title'] ); ?>" class="widefat" /> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.