Making WordPress.org

Ticket #3999: 3999.patch

File 3999.patch, 3.1 KB (added by vladytimy, 5 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

     
    621621add_action( 'bbp_theme_before_reply_content', 'wporg_support_add_moderation_notice' );
    622622
    623623/**
     624 * Display a link to create a new topic in the current forum.
     625 */
     626
     627function wporg_support_add_new_topic_link () {
     628        printf(         
     629                '<p class="bbp-reply-new-topic-instead"> %s <a href="%s">%s</a></p>',
     630                __( 'Do you have a different question?', 'wporg-forums' ),
     631                esc_url( bbp_get_forum_permalink( bbp_get_topic_forum_id() ) . '#new-topic-0' ),
     632                __( 'Create a new topic instead', 'wporg-forums' )
     633                               
     634        );
     635}
     636add_action( 'bbp_theme_after_reply_form', 'wporg_support_add_new_topic_link' );
     637
     638/**
    624639 * Change "Stick (to front)" link text to "Stick (to all forums)".
    625640 */
    626641function wporg_support_change_super_sticky_text( $links ) {
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/style-rtl.css

     
    38123812        text-decoration: none;
    38133813}
    38143814
     3815#bbpress-forums .bbp-reply-new-topic-instead {
     3816    font-size: 0.8rem;
     3817    text-align: left;
     3818    padding-top:5px;
     3819}
     3820
     3821@media (max-width:480px){
     3822    #bbpress-forums .bbp-reply-new-topic-instead {
     3823        text-align: right;
     3824    }
     3825    #bbpress-forums .bbp-reply-new-topic-instead a {
     3826        display:block;
     3827    }
     3828}
     3829
    38153830.bbpress #bbpress-forums li.bbp-body div.type-topic span.bbp-admin-links,
    38163831.bbpress #bbpress-forums li.bbp-body div.type-reply span.bbp-admin-links {
    38173832        display: none;
     
    38603875        display: block;
    38613876}
    38623877
     3878
    38633879.bbpress #bbpress-forums ul.status-closed,
    38643880.bbpress #bbpress-forums ul.status-closed a {
    38653881        color: inherit;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/style.css

     
    38143814        text-decoration: none;
    38153815}
    38163816
     3817#bbpress-forums .bbp-reply-new-topic-instead {
     3818    font-size: 0.8rem;
     3819    text-align: right;
     3820    padding-top:5px;
     3821}
     3822
     3823@media (max-width:480px){
     3824    #bbpress-forums .bbp-reply-new-topic-instead {
     3825        text-align: left;
     3826    }
     3827    #bbpress-forums .bbp-reply-new-topic-instead a {
     3828        display:block;
     3829    }
     3830}
     3831
    38173832.bbpress #bbpress-forums li.bbp-body div.type-topic span.bbp-admin-links,
    38183833.bbpress #bbpress-forums li.bbp-body div.type-reply span.bbp-admin-links {
    38193834        display: none;