Making WordPress.org


Ignore:
Timestamp:
12/19/2014 09:57:26 PM (11 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Reintroduce Explanations, with editorial flow.

  • Add explanations as an associated post type
  • Add metabox to create, unpublish, and link to edit explanation for a parsed post type
  • Add template tags: get_explanation() and get_explanation_field()
  • Re-enable display of Explanations on the frontend

props DrewAPicture.
fixes #786.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/admin.scss

    r831 r1057  
    2121    display: block;
    2222}
     23
     24
     25/* Explanations */
     26
     27.post-type-wporg_explanations .add-new-h2 {
     28    display: none;
     29}
     30
     31.expl-row-actions {
     32    display: block;
     33
     34    a {
     35        display: inline-block;
     36
     37        &:first-child {
     38            padding-right: 6px;
     39            padding-left: 0;
     40        }
     41        &:nth-child(n+2) {
     42            padding-left: 8px;
     43            border-left: 1px solid #ccc;
     44        }
     45    }
     46}
     47
     48.status {
     49    font-weight: bold;
     50
     51    &.pending {
     52        color: red;
     53    }
     54
     55    &.publish {
     56        color: green;
     57    }
     58}
     59.post-type-wp-parser-function,
     60.post-type-wp-parser-class,
     61.post-type-wp-parser-method,
     62.post-type-wp-parser-hook {
     63    .form-table {
     64        th {
     65            padding-top: 10px;
     66            padding-bottom: 10px;
     67        }
     68        td {
     69            padding: 10px;
     70
     71            p {
     72                margin-top: 0;
     73            }
     74        }
     75    }
     76}
Note: See TracChangeset for help on using the changeset viewer.