This file contains hidden or 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( 'presscore_page_title', 'dt_set_page_title_to_h2_filter' ); | |
| function dt_set_page_title_to_h2_filter( $title ) { | |
| return str_replace( array( '<h1', '</h1' ), array( '<h2', '</h2' ), $title ); | |
| } |
This file contains hidden or 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
| /* | |
| Theme Name: The7 | |
| Adding support for language written in a Right To Left (RTL) direction is easy - | |
| it's just a matter of overwriting all the horizontal positioning attributes | |
| of your CSS stylesheet in a separate stylesheet file named rtl.css. | |
| http://codex.wordpress.org/Right_to_Left_Language_Support | |
| */ |
This file contains hidden or 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
| <wpml-config> | |
| <shortcodes> | |
| <shortcode> | |
| <tag>dt_fancy_title</tag> | |
| <attributes> | |
| <attribute>title</attribute> | |
| </attributes> | |
| </shortcode> | |
| <shortcode> | |
| <tag>dt_quote</tag> |
This file contains hidden or 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
| function the7searchform( $form ) { | |
| $form = '<form class="searchform" role="search" method="get" action="'.esc_url( home_url( "/" ) ).'"> | |
| <label for="the7-search" class="screen-reader-text">'.esc_html( "Search:", "the7mk2" ).'</label> | |
| <input type="text" id="the7-search" class="field searchform-s" name="s" value="'.esc_attr( get_search_query() ).'" placeholder="'.esc_attr( "Type and hit enter …", "the7mk2" ).'" /> | |
| <input type="submit" type="submit" id="searchsubmit" value="'.esc_attr( "Search!", "the7mk2" ).'" class="searchsubmit default-btn-shortcode dt-btn dt-btn-s link-hover-off btn-inline-left " style="position:absolute;" /> | |
| </form>'; | |
| return $form; |
This file contains hidden or 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
| function new_share_email($share_buttons, $place, $post_id, $buttons){ | |
| $url = get_permalink( $post_id ); | |
| $title = isset( $_post->post_title ) ? $_post->post_title : ''; | |
| $share_buttons[] = array( | |
| 'id' => 'email' , | |
| 'url' => 'mailto:?subject=I wanted you to see this site&body=' . $title . ' ' . $url, | |
| 'name' => 'Email', |
This file contains hidden or 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
| function the7_shortcodeaware_excerpt_filter( $output ) { | |
| global $post; | |
| if ( empty( $output ) && ! empty( $post->post_content ) ) { | |
| add_filter( 'strip_shortcodes_tagnames', 'the7_shortcodes_to_strip_from_auto_exerpt' ); | |
| add_filter( 'strip_shortcodes_tagnames', 'rcb_shortcodes_to_strip_from_auto_exerpt' ); | |
| $content = strip_shortcodes( $post->post_content ); | |
| remove_filter( 'strip_shortcodes_tagnames', 'the7_shortcodes_to_strip_from_auto_exerpt' ); | |
| remove_filter( 'strip_shortcodes_tagnames', 'rcb_shortcodes_to_strip_from_auto_exerpt' ); |
This file contains hidden or 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
| <?php | |
| /** | |
| * Template part with actual header. | |
| * | |
| * @since 1.0.0 | |
| * | |
| * @package The7\Templates | |
| */ | |
| defined( 'ABSPATH' ) || exit; |
This file contains hidden or 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
| function add_after_head() { | |
| if ( is_page('231') ) { | |
| ?> | |
| <!-- Google Tag Manager --> | |
| <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
| new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
| j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
| 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
| })(window,document,'script','dataLayer','GTM-XXXX');</script> | |
| <!-- End Google Tag Manager --> |
This file contains hidden or 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_action( 'get_header', 'dt_fancytitle_override', 10 ); | |
| function dt_fancytitle_override() { | |
| $config = Presscore_Config::get_instance(); | |
| if( is_page(2) ) { // check for your condition | |
| $config->set( 'fancy_header.title.mode', 'custom' ); | |
| $config->set( 'fancy_header.title', 'My new custom title' ); |
This file contains hidden or 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
| function presscore_display_post_author() { | |
| ?> | |
| <div class="author-info entry-author"> | |
| <?php | |
| $avatar = presscore_get_avatar( get_the_author_meta( 'ID' ), 80 ); | |
| $authorlink = get_author_posts_url(get_the_author_meta('ID')); | |
| if ( $avatar ) { | |
| echo '<div class="author-avatar round-images"><a href="'.$authorlink.'">' . $avatar . '</a></div>'; | |
| } else { |