Skip to content

Instantly share code, notes, and snippets.

@adamlaki
Last active February 16, 2019 12:58
Show Gist options
  • Select an option

  • Save adamlaki/180bb53e8720ef7ddf4f3f8d667ea082 to your computer and use it in GitHub Desktop.

Select an option

Save adamlaki/180bb53e8720ef7ddf4f3f8d667ea082 to your computer and use it in GitHub Desktop.

Revisions

  1. adamlaki revised this gist Feb 16, 2019. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -3,16 +3,16 @@
    function cone_change_infinite_scroll_btn_text() {
    if ( is_home() || is_archive() ) { ?>
    <script type="text/javascript">
    var textCaption = '';
    var textCaption = '';

    if ( 'en-US' == $( 'html' ).attr( 'lang' ) ) {
    textCaption = 'Load More Posts';
    } else {
    textCaption = 'További bejegyzések'
    }
    if ( 'en-US' == $( 'html' ).attr( 'lang' ) ) {
    textCaption = 'Load More Posts';
    } else {
    textCaption = 'További bejegyzések'
    }

    infiniteScroll.settings.text = textCaption;
    </script>
    <?php }
    infiniteScroll.settings.text = textCaption;
    </script>
    <?php }
    }
    add_action( 'wp_footer', 'cone_change_infinite_scroll_btn_text', 3 );
  2. adamlaki revised this gist Feb 16, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    <?php

    function cone_change_infinite_scroll_btn_text() {
    if ( is_home() || is_archive() ) { ?>
    <script type="text/javascript">
    if ( is_home() || is_archive() ) { ?>
    <script type="text/javascript">
    var textCaption = '';

    if ( 'en-US' == $( 'html' ).attr( 'lang' ) ) {
  3. adamlaki revised this gist Feb 16, 2019. 1 changed file with 11 additions and 11 deletions.
    22 changes: 11 additions & 11 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,18 @@
    <?php

    function cone_change_infinite_scroll_btn_text() {
    if ( is_home() || is_archive() ) { ?>
    <script type="text/javascript">
    var textCaption = '';
    if ( is_home() || is_archive() ) { ?>
    <script type="text/javascript">
    var textCaption = '';

    if ( 'en-US' == $( 'html' ).attr( 'lang' ) ) {
    textCaption = 'Load More Posts';
    } else {
    textCaption = 'További bejegyzések'
    }
    if ( 'en-US' == $( 'html' ).attr( 'lang' ) ) {
    textCaption = 'Load More Posts';
    } else {
    textCaption = 'További bejegyzések'
    }

    infiniteScroll.settings.text = textCaption;
    </script>
    <?php }
    infiniteScroll.settings.text = textCaption;
    </script>
    <?php }
    }
    add_action( 'wp_footer', 'cone_change_infinite_scroll_btn_text', 3 );
  4. adamlaki revised this gist Feb 16, 2019. No changes.
  5. adamlaki revised this gist Feb 16, 2019. No changes.
  6. adamlaki revised this gist Feb 16, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion functions.php
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ function cone_change_infinite_scroll_btn_text() {
    if ( 'en-US' == $( 'html' ).attr( 'lang' ) ) {
    textCaption = 'Load More Posts';
    } else {
    textCaption = 'További bejegyzések';
    textCaption = 'További bejegyzések'
    }

    infiniteScroll.settings.text = textCaption;
  7. adamlaki revised this gist Feb 16, 2019. No changes.
  8. adamlaki revised this gist Feb 16, 2019. No changes.
  9. adamlaki revised this gist Feb 16, 2019. No changes.
  10. adamlaki created this gist Feb 16, 2019.
    18 changes: 18 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    <?php

    function cone_change_infinite_scroll_btn_text() {
    if ( is_home() || is_archive() ) { ?>
    <script type="text/javascript">
    var textCaption = '';

    if ( 'en-US' == $( 'html' ).attr( 'lang' ) ) {
    textCaption = 'Load More Posts';
    } else {
    textCaption = 'További bejegyzések';
    }

    infiniteScroll.settings.text = textCaption;
    </script>
    <?php }
    }
    add_action( 'wp_footer', 'cone_change_infinite_scroll_btn_text', 3 );