Support » Plugin: WP Post Popup » can’t figure out how to make the next / previous block in the modal window

  • I can’t figure out how to make the next / previous block in the modal window
    elseif ( is_singular( ‘post’ ) ) {
    // Previous/next post navigation.
    the_post_navigation(
    array(
    ‘next_text’ => ‘<span class=”meta-nav” aria-hidden=”true”>’ . __( ‘Next Post’, ‘twentynineteen’ ) . ‘</span> ‘ .
    ‘<span class=”screen-reader-text”>’ . __( ‘Next post:’, ‘twentynineteen’ ) . ‘</span> <br/>’ .
    ‘<span class=”post-title”>%title</span>’,
    ‘prev_text’ => ‘<span class=”meta-nav” aria-hidden=”true”>’ . __( ‘Previous Post’, ‘twentynineteen’ ) . ‘</span> ‘ .
    ‘<span class=”screen-reader-text”>’ . __( ‘Previous post:’, ‘twentynineteen’ ) . ‘</span> <br/>’ .
    ‘<span class=”post-title”>%title</span>’,
    )
    );
    }

    как его вставить в модальное окно?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter димаскорпион

    (@dimascorpio)

    {
    $styled = (get_option(‘wp_post_modal_styling’) === ‘1’ ? ‘styled’ : ”);

    $close = (get_option(‘wp_post_modal_close’) != ” ? get_option(‘wp_post_modal_close’) : ‘×’);

    $HTML = ‘<div class=”modal-wrapper ‘ . $styled . ‘” role=”dialog” aria-modal=”true” aria-label=”‘ . __(‘Popup Dialog’, ‘wp-post-modal’) . ‘”>’;
    $HTML .= ‘<div class=”wp-post-modal”>’;
    $HTML .= ‘<button type=”button” aria-label=”‘ . __(‘Close’, ‘wp-post-modal’) . ‘” class=”close-modal”> ‘ . $close . ‘ </button>’;
    $HTML .= ‘<div id=”modal-content”></div>’;
    $HTML .= ‘</div>’;
    $HTML .= ‘</div>’;

    echo $HTML;

    }

    how to insert here
    ?

    elseif ( is_singular( ‘post’ ) ) {
    // Previous/next post navigation.
    the_post_navigation(
    array(
    ‘next_text’ => ‘<span class=”meta-nav” aria-hidden=”true”>’ . __( ‘Next Post’, ‘twentynineteen’ ) . ‘</span> ‘ .
    ‘<span class=”screen-reader-text”>’ . __( ‘Next post:’, ‘twentynineteen’ ) . ‘</span> <br/>’ .
    ‘<span class=”post-title”>%title</span>’,
    ‘prev_text’ => ‘<span class=”meta-nav” aria-hidden=”true”>’ . __( ‘Previous Post’, ‘twentynineteen’ ) . ‘</span> ‘ .
    ‘<span class=”screen-reader-text”>’ . __( ‘Previous post:’, ‘twentynineteen’ ) . ‘</span> <br/>’ .
    ‘<span class=”post-title”>%title</span>’,
    )
    );
    }

    Plugin Author allurewebsolutions

    (@allurewebsolutions)

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.