WordPress.org

Plugin Directory

Changeset 815308


Ignore:
Timestamp:
12/05/13 08:30:37 (4 months ago)
Author:
markjaquith
Message:

deploy from git

Location:
wp-help/trunk
Files:
10 added
11 edited

Legend:

Unmodified
Added
Removed
  • wp-help/trunk/css/dashboard.css

    r729827 r815308  
    1 #cws-wp-help-dashboard-listing{margin:10px 5px 10px 20px;list-style:circle}#cws-wp-help-dashboard-listing ul{margin:5px 5px 5px 15px;list-style:square}#cws-wp-help-dashboard-listing>ul{list-style:square} 
     1#cws-wp-help-dashboard-listing{margin:10px 5px 10px 20px;list-style:circle}body.rtl #cws-wp-help-dashboard-listing{margin:10px 20px 10px 5px}#cws-wp-help-dashboard-listing ul{margin:5px 5px 5px 15px;list-style:square}body.rtl #cws-wp-help-dashboard-listing ul{margin:5px 15px 5px 5px}#cws-wp-help-dashboard-listing>ul{list-style:square} 
  • wp-help/trunk/css/dashboard.sass

    r729827 r815308  
    22    margin: 10px 5px 10px 20px 
    33    list-style: circle 
     4    body.rtl & 
     5        margin: 10px 20px 10px 5px 
    46    ul 
    57        margin: 5px 5px 5px 15px 
    68        list-style: square 
     9        body.rtl & 
     10            margin: 5px 15px 5px 5px 
    711    > ul 
    812        list-style: square 
  • wp-help/trunk/css/wp-help.css

    r660429 r815308  
    1 #cws-wp-help-actions{padding-bottom:5px}#cws-wp-help-actions a{text-decoration:none;float:right;font-size:12px;max-height:16px;font-weight:normal;padding:3px 4px;margin-left:5px;right:-5px;top:-5px;position:relative;border:1px solid #ccc;background:#fff;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;-webkit-box-shadow:#ddd 1px 1px 3px;-moz-box-shadow:#ddd 1px 1px 3px;box-shadow:#ddd 1px 1px 3px}#cws-wp-help-actions a#cws-wp-help-settings-on{float:left;left:-5px;margin-left:0}#cws-wp-help-actions a:hover{background:#fafafa;border:1px solid #c5c5c5}#cws-wp-help-listing{width:250px;float:left;clear:both;margin:10px 10px 10px 0;padding:10px;border:1px solid #ddd;background:#f4f4f4;min-height:400px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}#cws-wp-help-listing ul li a{text-decoration:none}#cws-wp-help-listing h3{margin:0;padding:0}#cws-wp-help-listing ul{margin:5px 5px 5px 15px;list-style:circle}#cws-wp-help-listing ul ul{list-style:square}#cws-wp-help-listing>ul{margin:10px 5px 10px 20px}#cws-wp-help-document,#cws-wp-help-settings{max-width:600px;padding-left:300px}#cws-wp-help-document ul,#cws-wp-help-settings ul{padding-left:25px;list-style:square}#cws-wp-help-document h2 small{font-size:12px;font-family:sans-serif;color:#888;text-shadow:#fff 0 1px 0}#cws-wp-help-document h2 small a{text-decoration:none}#cws-wp-help-settings li{font-style:italic}#cws-wp-help-settings,#cws-wp-help-listing-labels,#cws-wp-help-h2-label-wrap{display:none}#cws-wp-help-settings-cancel{margin-left:10px}#cws-wp-help-listing-labels{margin-bottom:-10px}input#cws-wp-help-listing-label{font-family:sans-serif;font-size:1.17em;font-weight:bold;position:relative;left:-5px;top:-5px;border:1px dashed #dfdfdf;width:258px;background:#ffe}#cws-wp-help-h2-label-wrap{margin-bottom:-4px}input#cws-wp-help-h2-label{font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif;font-size:23px;color:#464646;line-height:29px;position:relative;top:-4px;left:-4px;margin:9px 15px 0 0;border:1px dashed #dfdfdf;width:450px;background:#ffe;text-shadow:#fff 0 1px 0}input#cws-wp-help-api-url,input#cws-wp-help-slurp-url{width:100%}#cws-wp-help-slurp-error{display:none;margin:5px 0 15px;background:#ffebe8;border:1px solid #c00;padding:0 0.6em;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}#icon-wp-help{background:transparent url("../images/icon-32.png") no-repeat}.cws-wp-help-placeholder{background:#dadada;height:40px;padding-left:17px;left:-17px;position:relative;list-style:none;border:1px dashed #bbb;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}#cws-wp-help-listing-wrap ul>li>img.sort-handle,#cws-wp-help-listing-wrap ul>div#cws-wp-help-remote-docs-block>li>img.sort-handle,#cws-wp-help-listing-wrap ul.ui-sortable>li.cws-wp-help-is-slurped>img.sort-handle{display:none}#cws-wp-help-listing-wrap ul.ui-sortable li{position:relative}#cws-wp-help-listing-wrap ul.ui-sortable>li.cws-wp-help-local>img.sort-handle,#cws-wp-help-listing-wrap ul.ui-sortable>div#cws-wp-help-remote-docs-block>li:first-child>img.sort-handle{display:inline;position:absolute;left:-17px;vertical-align:middle}#cws-wp-help-listing-wrap ul.ui-sortable>li.cws-wp-help-local,#cws-wp-help-listing-wrap ul.ui-sortable>div#cws-wp-help-remote-docs-block>li:first-child{list-style:none}#cws-wp-help-listing-wrap ul.can-sort .sort-handle:hover{cursor:move}#cws-wp-help-loading{position:absolute;top:19px;left:27px} 
     1#cws-wp-help-actions{padding-bottom:5px}#cws-wp-help-actions a{text-decoration:none;float:right;font-size:12px;max-height:16px;font-weight:normal;padding:3px 4px;margin-left:5px;right:-5px;top:-5px;position:relative;border:1px solid #ccc;background:#fff;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;-webkit-box-shadow:#ddd 1px 1px 3px;-moz-box-shadow:#ddd 1px 1px 3px;box-shadow:#ddd 1px 1px 3px}body.rtl #cws-wp-help-actions a{float:left;margin-left:0;margin-right:5px;right:auto;left:-5px}#cws-wp-help-actions a#cws-wp-help-settings-on{float:left;left:-5px;margin-left:0}body.rtl #cws-wp-help-actions a#cws-wp-help-settings-on{float:right;left:auto;right:-5px;margin-right:0}#cws-wp-help-actions a:hover{background:#fafafa;border:1px solid #c5c5c5}#cws-wp-help-listing{width:250px;float:left;clear:both;margin:10px 10px 10px 0;padding:10px;border:1px solid #ddd;background:#f4f4f4;min-height:400px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}body.rtl #cws-wp-help-listing{float:right;margin:10px 0 10px 10px}#cws-wp-help-listing ul li a{text-decoration:none}#cws-wp-help-listing h3{margin:0;padding:0}#cws-wp-help-listing ul{margin:5px 5px 5px 15px;list-style:circle}body.rtl #cws-wp-help-listing ul{margin:5px 15px 5px 5px}#cws-wp-help-listing ul ul{list-style:square}#cws-wp-help-listing>ul{margin:10px 5px 10px 20px}body.rtl #cws-wp-help-listing>ul{margin:10px 20px 10px 5px}#cws-wp-help-document,#cws-wp-help-settings{max-width:600px;padding-left:300px}body.rtl #cws-wp-help-document,body.rtl #cws-wp-help-settings{padding-left:0;padding-right:300px}#cws-wp-help-document ul,#cws-wp-help-settings ul{padding-left:25px;list-style:square}body.rtl #cws-wp-help-document ul,body.rtl #cws-wp-help-settings ul{padding-left:0;padding-right:25px}#cws-wp-help-document h2 small{font-size:12px;font-family:sans-serif;color:#888;text-shadow:#fff 0 1px 0}#cws-wp-help-document h2 small a{text-decoration:none}#cws-wp-help-settings li{font-style:italic}#cws-wp-help-settings,#cws-wp-help-listing-labels,#cws-wp-help-h2-label-wrap{display:none}#cws-wp-help-settings-cancel{margin-left:10px}body.rtl #cws-wp-help-settings-cancel{margin-left:0;margin-right:10px}#cws-wp-help-listing-labels{margin-bottom:-10px}input#cws-wp-help-listing-label{font-family:"Open Sans",sans-serif;font-weight:600;font-size:1.3em;position:relative;left:-7px;top:-8px;margin-bottom:-4px;border:1px dashed #dfdfdf;width:258px;background:#ffe}body.rtl input#cws-wp-help-listing-label{left:auto;right:-7px}body.branch-3-6 input#cws-wp-help-listing-label,body.branch-3-7 input#cws-wp-help-listing-label{margin-bottom:0;font-family:sans-serif;font-size:1.17em;font-weight:bold;left:-5px;top:-5px}body.rtl.branch-3-6 input#cws-wp-help-listing-label,body.rtl.branch-3-7 input#cws-wp-help-listing-label{left:auto;right:-5px}#cws-wp-help-h2-label-wrap{margin-bottom:-4px}input#cws-wp-help-h2-label{font-family:"Open Sans",sans-serif;font-size:23px;color:#464646;line-height:29px;position:relative;top:-6px;left:-6px;margin:9px 15px -3px 0;border:1px dashed #dfdfdf;width:450px;background:#ffe;text-shadow:#fff 0 1px 0}body.rtl input#cws-wp-help-h2-label{left:auto;right:-6px;margin:9px 0 -3px 15px}body.branch-3-6 input#cws-wp-help-h2-label,body.branch-3-7 input#cws-wp-help-h2-label{font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif;top:-4px;left:-4px;margin:9px 15px 0 0}body.rtl.branch-3-6 input#cws-wp-help-h2-label,body.rtl.branch-3-7 input#cws-wp-help-h2-label{left:auto;right:-4px;margin:9px 0 0 15px}input#cws-wp-help-api-url,input#cws-wp-help-slurp-url{width:100%}#cws-wp-help-slurp-error{display:none;margin:5px 0 15px;background:#ffebe8;border:1px solid #c00;padding:0 0.6em;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}#icon-wp-help{background:transparent url('../images/icon-32.png?1357973464') no-repeat}.cws-wp-help-placeholder{background:#dadada;height:40px;padding-left:17px;left:-17px;position:relative;list-style:none;border:1px dashed #bbb;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}body.rtl .cws-wp-help-placeholder{left:auto;right:-17px;padding-left:0;padding-right:17px}#cws-wp-help-listing-wrap ul>li>img.sort-handle,#cws-wp-help-listing-wrap ul>div#cws-wp-help-remote-docs-block>li>img.sort-handle,#cws-wp-help-listing-wrap ul.ui-sortable>li.cws-wp-help-is-slurped>img.sort-handle{display:none}#cws-wp-help-listing-wrap ul.ui-sortable li{position:relative}#cws-wp-help-listing-wrap ul.ui-sortable>li.cws-wp-help-local>img.sort-handle,#cws-wp-help-listing-wrap ul.ui-sortable>div#cws-wp-help-remote-docs-block>li:first-child>img.sort-handle{display:inline;position:absolute;left:-17px;vertical-align:middle}body.rtl #cws-wp-help-listing-wrap ul.ui-sortable>li.cws-wp-help-local>img.sort-handle,body.rtl #cws-wp-help-listing-wrap ul.ui-sortable>div#cws-wp-help-remote-docs-block>li:first-child>img.sort-handle{left:auto;right:-17px}#cws-wp-help-listing-wrap ul.ui-sortable>li.cws-wp-help-local,#cws-wp-help-listing-wrap ul.ui-sortable>div#cws-wp-help-remote-docs-block>li:first-child{list-style:none}#cws-wp-help-listing-wrap ul.can-sort .sort-handle:hover{cursor:move}#cws-wp-help-loading{position:absolute;right:0;top:0}body.rtl #cws-wp-help-loading{right:auto;left:0} 
  • wp-help/trunk/css/wp-help.sass

    r660429 r815308  
    1818        +border-radius(3px) 
    1919        +box-shadow(#ddd 1px 1px 3px) 
     20        body.rtl & 
     21            float: left 
     22            margin-left: 0 
     23            margin-right: 5px 
     24            right: auto 
     25            left: -5px 
    2026        &#cws-wp-help-settings-on 
    2127            float:       left 
    2228            left:        -5px 
    2329            margin-left: 0 
     30            body.rtl & 
     31                float: right 
     32                left: auto 
     33                right: -5px 
     34                margin-right: 0 
    2435        &:hover 
    2536            background: #fafafa 
     
    3647    min-height: 400px 
    3748    +border-radius(3px) 
     49    body.rtl & 
     50        float: right 
     51        margin: 10px 0 10px 10px 
    3852    ul li a 
    3953        text-decoration: none 
     
    4458        margin:     5px 5px 5px 15px 
    4559        list-style: circle 
     60        body.rtl & 
     61            margin: 5px 15px 5px 5px 
    4662        ul 
    4763            list-style: square 
    4864    > ul 
    4965        margin: 10px 5px 10px 20px 
    50  
    51 %main-area 
     66        body.rtl & 
     67            margin: 10px 20px 10px 5px 
     68 
     69#cws-wp-help-document, 
     70#cws-wp-help-settings 
    5271    max-width:    600px 
    5372    padding-left: 300px 
     73    body.rtl & 
     74        padding-left: 0 
     75        padding-right: 300px 
    5476    ul 
    5577        padding-left: 25px 
    5678        list-style:   square 
     79        body.rtl & 
     80            padding-left: 0 
     81            padding-right: 25px 
    5782 
    5883#cws-wp-help-document 
    59     @extend %main-area 
    6084    h2 small 
    6185        font-size:   12px 
     
    6791 
    6892#cws-wp-help-settings 
    69     @extend %main-area 
    7093    li 
    7194        font-style: italic 
     
    78101#cws-wp-help-settings-cancel 
    79102    margin-left: 10px 
     103    body.rtl & 
     104        margin-left: 0 
     105        margin-right: 10px 
    80106 
    81107#cws-wp-help-listing-labels 
     
    83109 
    84110input#cws-wp-help-listing-label 
    85     font-family: sans-serif 
    86     font-size:   1.17em 
    87     font-weight: bold 
     111    font-family: 'Open Sans', sans-serif 
     112    font-weight: 600 
     113    font-size:   1.3em 
    88114    position:    relative 
    89     left:        -5px 
    90     top:         -5px 
     115    left:        -7px 
     116    top:         -8px 
     117    margin-bottom: -4px 
    91118    border:      1px dashed #dfdfdf 
    92119    width:       258px 
    93120    background:  #ffffee 
     121    body.rtl & 
     122        left: auto 
     123        right: -7px 
     124    body.branch-3-6 &, 
     125    body.branch-3-7 & 
     126        margin-bottom: 0 
     127        font-family: sans-serif 
     128        font-size:   1.17em 
     129        font-weight: bold 
     130        left:        -5px 
     131        top:         -5px 
     132    // BOTH 
     133    body.rtl.branch-3-6 &, 
     134    body.rtl.branch-3-7 & 
     135        left: auto 
     136        right: -5px 
    94137 
    95138#cws-wp-help-h2-label-wrap 
     
    97140 
    98141input#cws-wp-help-h2-label 
    99     font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif 
     142    font-family: 'Open Sans', sans-serif 
    100143    font-size:   23px 
    101144    color:       #464646 
    102145    line-height: 29px 
    103146    position:    relative 
    104     top:         -4px 
    105     left:        -4px 
    106     margin:      9px 15px 0 0 
     147    top:         -6px 
     148    left:        -6px 
     149    margin:      9px 15px -3px 0 
    107150    border:      1px dashed #dfdfdf 
    108151    width:       450px 
    109152    background:  #ffffee 
    110153    +text-shadow(white 0 1px 0) 
    111  
    112 %url-setting 
     154    body.rtl & 
     155        left: auto 
     156        right: -6px 
     157        margin: 9px 0 -3px 15px 
     158    body.branch-3-6 &, 
     159    body.branch-3-7 & 
     160        font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif 
     161        top: -4px 
     162        left: -4px 
     163        margin: 9px 15px 0 0 
     164    // BOTH 
     165    body.rtl.branch-3-6 &, 
     166    body.rtl.branch-3-7 & 
     167        left: auto 
     168        right: -4px 
     169        margin: 9px 0 0 15px 
     170 
     171input#cws-wp-help-api-url, 
     172input#cws-wp-help-slurp-url 
    113173    width: 100% 
    114  
    115 input#cws-wp-help-api-url 
    116     @extend %url-setting 
    117  
    118 input#cws-wp-help-slurp-url 
    119     @extend %url-setting 
    120174 
    121175#cws-wp-help-slurp-error 
     
    139193    border:       1px dashed #bbb 
    140194    +border-radius(3px) 
     195    body.rtl & 
     196        left: auto 
     197        right: -17px 
     198        padding-left: 0 
     199        padding-right: 17px 
    141200 
    142201#cws-wp-help-listing-wrap ul 
     
    154213            left:           -17px 
    155214            vertical-align: middle 
     215            body.rtl & 
     216                left: auto 
     217                right: -17px 
    156218        > li.cws-wp-help-local, 
    157219        > div#cws-wp-help-remote-docs-block > li:first-child 
     
    162224#cws-wp-help-loading 
    163225    position: absolute 
    164     top:      19px 
    165     left:     27px 
     226    right: 0 
     227    top: 0 
     228    body.rtl & 
     229        right: auto 
     230        left: 0 
  • wp-help/trunk/js/wp-help.coffee

    r660429 r815308  
    111111        init: -> 
    112112            # Small CSS Tweaks for Firefox 
     113            body = $ 'body' 
    113114            if $.browser.mozilla 
    114                 data.h2.edit.input.css 
    115                     top: '-3px' 
    116                     left: '-5px' 
    117                     'margin-bottom': '1px' 
    118                 data.h3.edit.input.css 
    119                     'margin-top': '2px' 
    120                     'margin-bottom': '2.25px' 
    121                     left: '-6px' 
     115                if body.hasClass( 'branch-3.6' ) or body.hasClass( 'branch-3.7' ) 
     116                    data.h2.edit.input.css 
     117                        top: '-3px' 
     118                        left: '-5px' 
     119                        'margin-bottom': '1px' 
     120                    data.h3.edit.input.css 
     121                        'margin-top': '2px' 
     122                        'margin-bottom': '2.25px' 
     123                        left: '-6px' 
     124                else 
     125                    data.h2.edit.input.css 
     126                        top: '-5px' 
     127                        left: '-7px' 
     128                        'margin-bottom': '-3px' 
     129                    data.h3.edit.input.css 
     130                        'margin-top': '1px' 
     131                        'margin-bottom': '-5px' 
     132                        left: '-8px' 
    122133 
    123134            # Sortable 
  • wp-help/trunk/js/wp-help.js

    r660429 r815308  
    1 // Generated by CoffeeScript 1.4.0 
    2 (function(){var e=[].slice;jQuery(function(t){var n,r,i;i=void 0;(function(){var s,o,u;u=[];s=void 0;o=void 0;return i={start:function(e){var n;e==null&&(e=0);n=t.Deferred();r.loading.show();setTimeout(function(){return n.resolve()},e);return n.promise()},stop:function(){s&&s.reject();s=null;u=[];return r.loading.hide()},until:function(){var r,i,o;o=arguments[0],i=2<=arguments.length?e.call(arguments,1):[];o==null&&(o=0);s=s||t.Deferred().always(n.load.stop);r=u.push(!1)-1;i.push(n.load.start(o));t.when.apply(t,i).always(function(){u[r]=!0;if(-1===t.inArray(!1,u))return s.resolve()});return s.promise()}}})();n={p:function(e){return t("#cws-wp-help-"+e)},load:i,bindH2Updates:function(){r.menu=t("#adminmenu a.current .wp-menu-name");r.menu.length||(r.menu=t("#adminmenu a.current"));r.menu.text(r.h2.edit.input.val());return r.h2.edit.input.bind("keyup",function(){return r.menu.text(t(this).val())})},sortable:function(){t(this).sortable({opacity:.8,placeholder:"cws-wp-help-placeholder",axis:"y",cursor:"move",cursorAt:{left:0,top:0},distance:10,delay:50,handle:".sort-handle",items:"> li.cws-wp-help-local, > div#cws-wp-help-remote-docs-block",start:function(e,n){var r,i,s;r=t(n.item);s=t(".cws-wp-help-placeholder");i=void 0;r.attr("id")==="cws-wp-help-remote-docs-block"?i=4:i=-2;return s.height(r.height()+i)},update:function(e,i){var s;s=t.post(ajaxurl,{action:"cws_wp_help_reorder",_ajax_nonce:r.ul.data("nonce"),order:t(this).sortable("toArray")});return n.load.until(200,s)}});return t(this).find("> li:not(.cws-wp-help-is-slurped) > ul > li:nth-child(2)").parent("ul").each(n.sortable)},sortableInit:function(){r.ul.find("> #cws-wp-help-remote-docs-block > li").unwrap();r.ul.find("> li.cws-wp-help-is-slurped:first").before('<div id="cws-wp-help-remote-docs-block"></div>');r.ul.find("> li.cws-wp-help-is-slurped").detach().appendTo("#cws-wp-help-remote-docs-block");return r.ulSortable.each(n.sortable)},init:function(){if(t.browser.mozilla){r.h2.edit.input.css({top:"-3px",left:"-5px","margin-bottom":"1px"});r.h3.edit.input.css({"margin-top":"2px","margin-bottom":"2.25px",left:"-6px"})}n.sortableInit();r.ul.find("li.page_item").each(function(){return t(this).attr("id","page-"+t(this).attr("class").match(/page-item-([0-9]+)/)[1])});r.apiURL.click(function(){return this.select()});r.saveButton.click(function(){return n.saveSettings()});r.cancelLink.click(function(e){e.preventDefault();n.restoreSettings();return n.hideSettings()});r.settingsButton.click(function(e){e.preventDefault();return n.revealSettings(!0)});r.h2.display.text.dblclick(function(){n.revealSettings();return r.h2.edit.input.focus().select()});r.h3.display.text.dblclick(function(){n.revealSettings();return r.h3.edit.input.focus().select()});r.returnMonitor.bind("keydown",function(e){if(13===e.which){t(this).blur();return n.saveSettings()}});n.bindH2Updates();return r.menuLocation.change(function(){var e,i,s;i=String(window.location);r.menuLocation.val().indexOf("submenu")===-1?i=i.replace("/index.php","/admin.php"):i=i.replace("/admin.php","/index.php");s=""+String(i)+"&wp-help-preview-menu-location="+r.menuLocation.val();e=String(i).replace(/\/wp-admin\/.*$/,"/wp-admin/js/common.js");return t("#adminmenu").load(s+" #adminmenu",function(){window.history.replaceState&&window.history.replaceState(null,null,i);t.getScript(e);return n.bindH2Updates()})})},fadeOutIn:function(e,t){return e.fadeOut(150,function(){return t.fadeIn(150)})},hideShow:function(e,t){e.hide();return t.show()},revealSettings:function(e){var t,i,s,o;o=[r.h2,r.h3];for(i=0,s=o.length;i<s;i++){t=o[i];n.hideShow(t.display.wrap,t.edit.wrap)}r.actions.fadeTo(200,.3);r.ul.fadeTo(200,.3);n.fadeOutIn(r.doc,r.settings);if(e)return r.h2.edit.input.focus().select()},restoreSettings:function(){return t("input, select",r.settings).each(function(){var e;e=t(this);if(e.data("original-value"))return e.val(e.data("original-value")).change()})},saveSettings:function(){var e;n.clearError();t([r.h2,r.h3]).each(function(){return this.display.text.text(this.edit.input.val())});e=t.post(ajaxurl,{action:"cws_wp_help_settings",_ajax_nonce:t("#_cws_wp_help_nonce").val(),h2:r.h2.edit.input.val(),h3:r.h3.edit.input.val(),menu_location:r.menuLocation.val(),slurp_url:r.slurp.val()});e.success(function(e){e=t.parseJSON(e);r.slurp.val(e.slurp_url);if(e.error){n.error(e.error);r.slurp.focus()}else n.hideSettings();if(e.topics){n.p("nodocs").remove();r.ul.html(e.topics);return n.sortableInit()}});return n.load.until(200,e)},hideSettings:function(){var e,t,i,s;s=[r.h2,r.h3];for(t=0,i=s.length;t<i;t++){e=s[t];n.hideShow(e.edit.wrap,e.display.wrap)}r.actions.fadeTo(200,1);r.ul.fadeTo(200,1);return n.fadeOutIn(r.settings,r.doc)},clearError:function(){return r.slurpError.html("").hide()},error:function(e){return r.slurpError.html("<p>"+e+"</p>").fadeIn(150)}};r={menu:function(){return t("#adminmenu a.current")},h2:{edit:{input:n.p("h2-label"),wrap:n.p("h2-label-wrap")},display:{text:t(".wrap h2:first"),wrap:t(".wrap h2:first")}},h3:{edit:{input:n.p("listing-label"),wrap:n.p("listing-labels")},display:{text:n.p("listing h3"),wrap:n.p("listing h3")}},settingsButton:n.p("settings-on"),doc:n.p("document"),ul:n.p("listing-wrap > ul"),ulSortable:n.p("listing-wrap > ul.can-sort"),actions:n.p("actions"),settings:n.p("settings"),listing:n.p("listing"),apiURL:n.p("api-url"),slurp:n.p("slurp-url"),slurpError:n.p("slurp-error"),saveButton:n.p("settings-save"),cancelLink:n.p("settings-cancel"),menuLocation:n.p("menu-location"),loading:n.p("loading"),returnMonitor:t('.wrap input[type="text"]')};return n.init()})}).call(this); 
     1// Generated by CoffeeScript 1.6.3 
     2(function(){var e=[].slice;jQuery(function(t){var n,r,i;i=void 0;(function(){var s,o,u;u=[];s=void 0;o=void 0;return i={start:function(e){var n;e==null&&(e=0);n=t.Deferred();r.loading.show();setTimeout(function(){return n.resolve()},e);return n.promise()},stop:function(){s&&s.reject();s=null;u=[];return r.loading.hide()},until:function(){var r,i,o;o=arguments[0],i=2<=arguments.length?e.call(arguments,1):[];o==null&&(o=0);s=s||t.Deferred().always(n.load.stop);r=u.push(!1)-1;i.push(n.load.start(o));t.when.apply(t,i).always(function(){u[r]=!0;if(-1===t.inArray(!1,u))return s.resolve()});return s.promise()}}})();n={p:function(e){return t("#cws-wp-help-"+e)},load:i,bindH2Updates:function(){r.menu=t("#adminmenu a.current .wp-menu-name");r.menu.length||(r.menu=t("#adminmenu a.current"));r.menu.text(r.h2.edit.input.val());return r.h2.edit.input.bind("keyup",function(){return r.menu.text(t(this).val())})},sortable:function(){t(this).sortable({opacity:.8,placeholder:"cws-wp-help-placeholder",axis:"y",cursor:"move",cursorAt:{left:0,top:0},distance:10,delay:50,handle:".sort-handle",items:"> li.cws-wp-help-local, > div#cws-wp-help-remote-docs-block",start:function(e,n){var r,i,s;r=t(n.item);s=t(".cws-wp-help-placeholder");i=void 0;r.attr("id")==="cws-wp-help-remote-docs-block"?i=4:i=-2;return s.height(r.height()+i)},update:function(e,i){var s;s=t.post(ajaxurl,{action:"cws_wp_help_reorder",_ajax_nonce:r.ul.data("nonce"),order:t(this).sortable("toArray")});return n.load.until(200,s)}});return t(this).find("> li:not(.cws-wp-help-is-slurped) > ul > li:nth-child(2)").parent("ul").each(n.sortable)},sortableInit:function(){r.ul.find("> #cws-wp-help-remote-docs-block > li").unwrap();r.ul.find("> li.cws-wp-help-is-slurped:first").before('<div id="cws-wp-help-remote-docs-block"></div>');r.ul.find("> li.cws-wp-help-is-slurped").detach().appendTo("#cws-wp-help-remote-docs-block");return r.ulSortable.each(n.sortable)},init:function(){var e;e=t("body");if(t.browser.mozilla)if(e.hasClass("branch-3.6")||e.hasClass("branch-3.7")){r.h2.edit.input.css({top:"-3px",left:"-5px","margin-bottom":"1px"});r.h3.edit.input.css({"margin-top":"2px","margin-bottom":"2.25px",left:"-6px"})}else{r.h2.edit.input.css({top:"-5px",left:"-7px","margin-bottom":"-3px"});r.h3.edit.input.css({"margin-top":"1px","margin-bottom":"-5px",left:"-8px"})}n.sortableInit();r.ul.find("li.page_item").each(function(){return t(this).attr("id","page-"+t(this).attr("class").match(/page-item-([0-9]+)/)[1])});r.apiURL.click(function(){return this.select()});r.saveButton.click(function(){return n.saveSettings()});r.cancelLink.click(function(e){e.preventDefault();n.restoreSettings();return n.hideSettings()});r.settingsButton.click(function(e){e.preventDefault();return n.revealSettings(!0)});r.h2.display.text.dblclick(function(){n.revealSettings();return r.h2.edit.input.focus().select()});r.h3.display.text.dblclick(function(){n.revealSettings();return r.h3.edit.input.focus().select()});r.returnMonitor.bind("keydown",function(e){if(13===e.which){t(this).blur();return n.saveSettings()}});n.bindH2Updates();return r.menuLocation.change(function(){var e,i,s;i=String(window.location);r.menuLocation.val().indexOf("submenu")===-1?i=i.replace("/index.php","/admin.php"):i=i.replace("/admin.php","/index.php");s=""+String(i)+"&wp-help-preview-menu-location="+r.menuLocation.val();e=String(i).replace(/\/wp-admin\/.*$/,"/wp-admin/js/common.js");return t("#adminmenu").load(s+" #adminmenu",function(){window.history.replaceState&&window.history.replaceState(null,null,i);t.getScript(e);return n.bindH2Updates()})})},fadeOutIn:function(e,t){return e.fadeOut(150,function(){return t.fadeIn(150)})},hideShow:function(e,t){e.hide();return t.show()},revealSettings:function(e){var t,i,s,o;o=[r.h2,r.h3];for(i=0,s=o.length;i<s;i++){t=o[i];n.hideShow(t.display.wrap,t.edit.wrap)}r.actions.fadeTo(200,.3);r.ul.fadeTo(200,.3);n.fadeOutIn(r.doc,r.settings);if(e)return r.h2.edit.input.focus().select()},restoreSettings:function(){return t("input, select",r.settings).each(function(){var e;e=t(this);if(e.data("original-value"))return e.val(e.data("original-value")).change()})},saveSettings:function(){var e;n.clearError();t([r.h2,r.h3]).each(function(){return this.display.text.text(this.edit.input.val())});e=t.post(ajaxurl,{action:"cws_wp_help_settings",_ajax_nonce:t("#_cws_wp_help_nonce").val(),h2:r.h2.edit.input.val(),h3:r.h3.edit.input.val(),menu_location:r.menuLocation.val(),slurp_url:r.slurp.val()});e.success(function(e){e=t.parseJSON(e);r.slurp.val(e.slurp_url);if(e.error){n.error(e.error);r.slurp.focus()}else n.hideSettings();if(e.topics){n.p("nodocs").remove();r.ul.html(e.topics);return n.sortableInit()}});return n.load.until(200,e)},hideSettings:function(){var e,t,i,s;s=[r.h2,r.h3];for(t=0,i=s.length;t<i;t++){e=s[t];n.hideShow(e.edit.wrap,e.display.wrap)}r.actions.fadeTo(200,1);r.ul.fadeTo(200,1);return n.fadeOutIn(r.settings,r.doc)},clearError:function(){return r.slurpError.html("").hide()},error:function(e){return r.slurpError.html("<p>"+e+"</p>").fadeIn(150)}};r={menu:function(){return t("#adminmenu a.current")},h2:{edit:{input:n.p("h2-label"),wrap:n.p("h2-label-wrap")},display:{text:t(".wrap h2:first"),wrap:t(".wrap h2:first")}},h3:{edit:{input:n.p("listing-label"),wrap:n.p("listing-labels")},display:{text:n.p("listing h3"),wrap:n.p("listing h3")}},settingsButton:n.p("settings-on"),doc:n.p("document"),ul:n.p("listing-wrap > ul"),ulSortable:n.p("listing-wrap > ul.can-sort"),actions:n.p("actions"),settings:n.p("settings"),listing:n.p("listing"),apiURL:n.p("api-url"),slurp:n.p("slurp-url"),slurpError:n.p("slurp-error"),saveButton:n.p("settings-save"),cancelLink:n.p("settings-cancel"),menuLocation:n.p("menu-location"),loading:n.p("loading"),returnMonitor:t('.wrap input[type="text"]')};return n.init()})}).call(this); 
  • wp-help/trunk/languages/import.rb

    r729827 r815308  
    125125    'zh_TW' => 'zh-tw', 
    126126} 
     127reverse_langs = langs.invert 
    127128require 'pathname' 
     129require 'open-uri' 
    128130plugin = Pathname.new(File.expand_path '../').basename 
    129 url_root = 'http://translate.markjaquith.com/projects/wordpress-plugins/%s/%s/default/export-translations?format=%s' 
    130 files = Dir.glob("*.mo").map { |f| g = f[/#{plugin}-(.*)\.mo/, 1]; [g, langs[g]] } 
    131 files.each do |l| 
    132     ['po', 'mo'].each do |fmt| 
    133         `wget -O #{plugin}-#{l[0]}.#{fmt} #{format url_root, plugin, l[1], fmt} 2>/dev/null` 
     131url_domain = 'http://translate.markjaquith.com' 
     132url_path = '/projects/wordpress-plugins/' 
     133item_url = url_domain + url_path + '%s/%s/default/export-translations?format=%s' 
     134index_url = url_domain + url_path + '%s/' 
     135 
     136formats = [] 
     137language_regex = %r{<a href="#{url_path}#{plugin}/([^/]+)/default"} 
     138 
     139open( format index_url, plugin ) do |f| 
     140    f.each_line do |l| 
     141        if l.match language_regex 
     142            lang = l[language_regex, 1] 
     143            formats << [reverse_langs[lang], lang] 
     144        end 
    134145    end 
    135146end 
     147 
     148formats.each do |l| 
     149    ['po', 'mo'].each do |fmt| 
     150        `wget -O #{plugin}-#{l[0]}.#{fmt} #{format item_url, plugin, l[1], fmt} 2>/dev/null` 
     151    end 
     152    `git checkout #{plugin}-#{l[0]}.*` if `git diff #{plugin}-#{l[0]}.po | ack '^[+-][^+-]{2}' | ack -v 'PO-Revision-Date'`.chomp.length === 0 
     153end 
  • wp-help/trunk/languages/wp-help-nl_NL.po

    r729827 r815308  
    33msgid "" 
    44msgstr "" 
    5 "PO-Revision-Date: 2013-06-22 05:02:13+0000\n" 
     5"PO-Revision-Date: 2013-07-01 20:33:18+0000\n" 
    66"MIME-Version: 1.0\n" 
    77"Content-Type: text/plain; charset=UTF-8\n" 
     
    1313#: wp-help.php:273 
    1414msgid "Parent:" 
    15 msgstr "" 
     15msgstr "Hoofd:" 
    1616 
    1717#: templates/list-documents.php:7 
    1818msgctxt "Button with limited space" 
    1919msgid "Settings" 
    20 msgstr "" 
     20msgstr "Instellingen" 
    2121 
    2222#: templates/list-documents.php:8 
    2323msgctxt "Button with limited space" 
    2424msgid "Add New" 
    25 msgstr "" 
     25msgstr "Nieuw" 
    2626 
    2727#: templates/list-documents.php:8 wp-help.php:268 
     
    3232#: templates/list-documents.php:16 
    3333msgid "There are no help documents." 
    34 msgstr "" 
     34msgstr "Er zijn geen help documenten." 
    3535 
    3636#: templates/list-documents.php:18 
    3737msgid "There are no help documents yet." 
    38 msgstr "" 
     38msgstr "Er zijn nog geen help documenten." 
    3939 
    4040#: templates/list-documents.php:36 
    4141msgid "edit" 
    42 msgstr "" 
     42msgstr "wijzig" 
    4343 
    4444#: templates/list-documents.php:39 
    4545msgid "The requested help document could not be found." 
    46 msgstr "" 
     46msgstr "Het opgevraagde help document kon niet worden gevonden." 
    4747 
    4848#: templates/settings.php:7 
    4949msgid "WP Help Settings" 
    50 msgstr "" 
     50msgstr "WP Help instellingen" 
    5151 
    5252#: templates/settings.php:9 
    5353msgid "Headlines" 
    54 msgstr "" 
     54msgstr "Koppen" 
    5555 
    5656#: templates/settings.php:11 
    5757msgid "The main WP Help headline and document listing headline are directly editable." 
    58 msgstr "" 
     58msgstr "De hoofd WP Help kop en document opsommingskop zijn direct te wijzigen." 
    5959 
    6060#: templates/settings.php:13 
    6161msgid "Menu Location" 
    62 msgstr "" 
     62msgstr "Menu locatie" 
    6363 
    6464#: templates/settings.php:15 
    6565msgid "Display the help documents menu item:" 
    66 msgstr "" 
     66msgstr "Toon het help document menu item:" 
    6767 
    6868#: templates/settings.php:17 
    6969msgid "as a Dashboard submenu" 
    70 msgstr "" 
     70msgstr "als een Dashboard submenu" 
    7171 
    7272#: templates/settings.php:18 
    7373msgid "above the Dashboard menu" 
    74 msgstr "" 
     74msgstr "boven het Dashboard menu" 
    7575 
    7676#: templates/settings.php:19 
    7777msgid "below the Dashboard menu" 
    78 msgstr "" 
     78msgstr "onder het Dashboard menu" 
    7979 
    8080#: templates/settings.php:20 
    8181msgid "at the bottom" 
    82 msgstr "" 
     82msgstr "onderaan" 
    8383 
    8484#: templates/settings.php:23 
    8585msgctxt "noun, h3 heading about synchronization" 
    8686msgid "Sync Source" 
    87 msgstr "" 
     87msgstr "Synchronisatie bron" 
    8888 
    8989#: templates/settings.php:25 
    9090msgid "To treat this install as a source, use this secret URL:" 
    91 msgstr "" 
     91msgstr "Om deze installatie als bron te gebruiken is deze geheime URL nodig:" 
    9292 
    9393#: templates/settings.php:27 
    9494msgid "Sync Pull" 
    95 msgstr "" 
     95msgstr "Synchroniseren" 
    9696 
    9797#: templates/settings.php:29 
    9898msgid "Pull in help documents from this WP Help secret URL:" 
    99 msgstr "" 
     99msgstr "Synchroniseer help documenten binnen vanaf deze geheime WP Help URL:" 
    100100 
    101101#: templates/settings.php:31 
    102102msgid "Note:" 
    103 msgstr "" 
     103msgstr "Opmerking:" 
    104104 
    105105#: templates/settings.php:33 
    106106msgid "Sync pull refreshes automatically once a day." 
    107 msgstr "" 
     107msgstr "Synchroniseren ververst automatisch één keer per dag." 
    108108 
    109109#: templates/settings.php:34 
    110110msgid "You can manually refresh by saving the setting again." 
    111 msgstr "" 
     111msgstr "Je kunt handmatig verversen door de instelling opnieuw op te slaan." 
    112112 
    113113#: templates/settings.php:35 
    114114msgid "Synced documents cannot be modified locally while syncing is still enabled." 
    115 msgstr "" 
     115msgstr "Gesynchroniseerde documenten kunnen niet lokaal wanneer synchroniseren nog is toegestaan." 
    116116 
    117117#: templates/settings.php:38 
    118118msgid "Save Changes" 
    119 msgstr "" 
     119msgstr "Wijzigingen opslaan" 
    120120 
    121121#: templates/settings.php:38 
    122122msgid "Cancel" 
    123 msgstr "" 
     123msgstr "Annuleren" 
    124124 
    125125#: wp-help.php:108 
     
    186186msgctxt "h2 default title" 
    187187msgid "Publishing Help" 
    188 msgstr "" 
     188msgstr "Publicatie Help" 
    189189 
    190190#: wp-help.php:153 
    191191msgctxt "h3 default title" 
    192192msgid "Help Topics" 
    193 msgstr "" 
     193msgstr "Help Onderwerpen" 
    194194 
    195195#: wp-help.php:170 
    196196msgid "Donate" 
    197 msgstr "" 
     197msgstr "Doneer" 
    198198 
    199199#: wp-help.php:246 
    200200msgid "&mdash; Remote document" 
    201 msgstr "" 
     201msgstr "&mdash; Afgelegen document" 
    202202 
    203203#: wp-help.php:481 
    204204msgid "What are you doing? You&#8217;re going to create an infinite loop!" 
    205 msgstr "" 
     205msgstr "Wat ben je aan het doen? Je maakt een oneindige cirkel nu!" 
    206206 
    207207#: wp-help.php:485 
    208208msgid "That is not a WP Help URL. Make sure you copied it correctly." 
    209 msgstr "" 
     209msgstr "Dat is niet een WP Help URL. Controleer of je het juist hebt gekopieerd." 
    210210 
    211211#: wp-help.php:574 
    212212msgid "Set as default help document" 
    213 msgstr "" 
     213msgstr "Stel in al standaard help document" 
    214214 
    215215#: wp-help.php:596 
     
    261261 
    262262msgid "http://txfx.net/wordpress-plugins/wp-help/" 
    263 msgstr "" 
     263msgstr "http://txfx.net/wordpress-plugins/wp-help/" 
    264264 
    265265msgid "Administrators can create detailed, hierarchical documentation for the site's authors and editors, viewable in the WordPress admin." 
  • wp-help/trunk/readme.txt

    r729827 r815308  
    66Donate link: http://txfx.net/wordpress-plugins/donate   
    77Tags: help, documentation, client sites, clients, docs   
    8 Requires at least: 3.4   
    9 Tested up to: 3.5.1   
    10 Stable tag: 1.2   
     8Requires at least: 3.6.1   
     9Tested up to: 3.8   
     10Stable tag: 1.3   
    1111 
    1212Site operators can create detailed, hierarchical documentation for the site's authors, editors, and contributors, viewable in the WordPress admin. 
     
    6969 
    7070== Upgrade Notice == 
     71= 1.3 = 
     72Update for WordPress 3.8 support. 
     73 
    7174= 1.2 = 
    7275Update for better UI and support for WordPress 3.5. 
     
    8790= 1.3 = 
    8891* Make the `wp_list_pages()` call filterable. 
    89 * Added Serbian and Turkish translations. 
     92* Added Serbian, Turkish, and Japanese translations. 
     93* Use a Dashicon for WordPress 3.8+. 
     94* RTL CSS styles. 
    9095 
    9196= 1.2 = 
  • wp-help/trunk/wp-help.php

    r729827 r815308  
    33Plugin Name: WP Help 
    44Description: Administrators can create detailed, hierarchical documentation for the site's authors and editors, viewable in the WordPress admin. 
    5 Version: 1.2 
     5Version: 1.3 
    66License: GPL 
    77Plugin URI: http://txfx.net/wordpress-plugins/wp-help/ 
     
    556556 
    557557    public function admin_menu() { 
    558         if ( 'dashboard-submenu' != $this->get_option( 'menu_location' ) ) 
    559             $hook = add_menu_page( $this->get_option( 'h2' ), $this->get_option( 'h2' ), $this->get_cap( 'read_posts' ), self::MENU_SLUG, array( $this, 'render_listing_page' ), plugin_dir_url( __FILE__ ) . 'images/icon-16.png' ); 
    560         else 
     558        if ( 'dashboard-submenu' != $this->get_option( 'menu_location' ) ) { 
     559            $icon = version_compare( $GLOBALS['wp_version'], '3.8-RC1', '>=' ) ? 'dashicons-editor-help' : plugin_dir_url( __FILE__ ) . 'images/icon-16.png'; 
     560            $hook = add_menu_page( $this->get_option( 'h2' ), $this->get_option( 'h2' ), $this->get_cap( 'read_posts' ), self::MENU_SLUG, array( $this, 'render_listing_page' ), $icon ); 
     561        } else { 
    561562            $hook = add_dashboard_page( $this->get_option( 'h2' ), $this->get_option( 'h2' ), $this->get_cap( 'read_posts' ), self::MENU_SLUG, array( $this, 'render_listing_page' ) ); 
     563        } 
    562564        $this->hook( "load-{$hook}", 'enqueue' ); 
    563565    } 
     
    616618    } 
    617619 
     620    public function admin_page_url() { 
     621        return admin_url( $this->admin_base . '?page=' . self::MENU_SLUG ); 
     622    } 
     623 
    618624    public function page_link( $link, $post ) { 
    619625        $post = get_post( $post ); 
    620626        if ( self::POST_TYPE == $post->post_type ) 
    621             return admin_url( $this->admin_base . '?page=' . self::MENU_SLUG . '&document=' . absint( $post->ID ) ); 
     627            return $this->admin_page_url() . '&document=' . absint( $post->ID ); 
    622628        else 
    623629            return $link; 
     
    645651        <?php endif; ?> 
    646652<div class="wrap"> 
    647     <?php screen_icon(self::POST_TYPE); ?><div id="cws-wp-help-h2-label-wrap"><input type="text" id="cws-wp-help-h2-label" value="<?php echo esc_attr( $this->get_option( 'h2' ) ); ?>" /></div><img id="cws-wp-help-loading" src="<?php echo plugins_url( '/images/loading.gif', __FILE__ ); ?>" style="display:none;" /><h2><?php echo esc_html( $this->get_option( 'h2' ) ); ?></h2> 
     653    <?php screen_icon(self::POST_TYPE); ?><div id="cws-wp-help-h2-label-wrap"><input type="text" id="cws-wp-help-h2-label" value="<?php echo esc_attr( $this->get_option( 'h2' ) ); ?>" /></div><span id="cws-wp-help-loading" class="spinner"></span><h2><?php echo esc_html( $this->get_option( 'h2' ) ); ?></h2> 
    648654    <?php include( dirname( __FILE__ ) . '/templates/list-documents.php' ); ?> 
    649655</div> 
Note: See TracChangeset for help on using the changeset viewer.