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
add_filter('genesis_post_title_output', 'lunarwp_add_icon_to_post_title', 10, 1); | |
/** | |
* Add icon to the Post Title | |
* | |
* @since 1.0.0 | |
* | |
* @param string $title Post Title HTML | |
* @return string Amended Post Title HTML | |
*/ | |
function lunarwp_add_icon_to_post_title( $title ) { |
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
add_filter('genesis_attr_entry-header', 'lunarwp_attributes_entry_header'); | |
/** | |
* Add attributes for header entry-header element. | |
* | |
* @since 1.0.0 | |
* | |
* @param array $attributes Existing attributes. | |
* @return array Amended attributes. | |
*/ | |
function lunarwp_attributes_entry_header($attributes) |
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
/* | |
* JavaScript|jQuery functions | |
* | |
* Load into child namespace | |
* | |
* @category LUNARWP Core | |
* @package Assets | |
* @subpackage JS | |
* @since 1.0.0 | |
* @author LUNARWP |
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
.scrollup { | |
background: url(assets/images/icon_top.png) no-repeat 0 0; | |
width: 40px; | |
height: 40px; | |
text-indent: -9999px; | |
@include opacity(0.30); | |
position: fixed; | |
@include rem(bottom, 50px); | |
@include rem(right, 100px); | |
} |
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
add_filter('genesis_title_comments', 'do_shortcode', 20 ); | |
add_filter('genesis_title_comments', 'lunarwp_add_comment_total_to_comment_title', 10, 1); | |
/** | |
* Add the comment count to the title | |
* | |
* @since 1.0.0 | |
* | |
* @param string $title | |
* @return string Amended comment title | |
*/ |
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
add_filter('genesis_title_comments', 'do_shortcode', 20 ); | |
add_filter('genesis_title_comments', 'lunarwp_add_comment_total_to_comment_title', 10, 1); | |
/** | |
* Add the comment count to the title | |
* | |
* @since 1.0.0 | |
* | |
* @param string $title | |
* @return string Amended comment title | |
*/ |
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
$output .= apply_filters( 'genesis_post_info', '[post_date] ' . __( 'by', 'genesis' ) . ' [post_author_posts_link] [post_comments] [post_edit]' ); |
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
/** | |
* Add an associative array into any position within the | |
* original associative array | |
* | |
* @since 1.0.0 | |
* | |
* @param array $original_array Original Associative array | |
* @param array $array_to_insert Associative array to insert into the | |
* original | |
* @param integer $insert_position Position (starting at index 0) to |
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
add_filter('manage_post_posts_columns' , 'lunarwp_remove_some_posts_listing_columns', 20, 1); | |
/** | |
* Remove columns from Posts Listing | |
* | |
* Uncomment the columns you want to remove | |
* | |
* @since 1.0.0 | |
* | |
* @param array $columns Post Listing Columns | |
* @return array Returns the amended columns array |
OlderNewer