Admin Columns - Version 2.4

Version Description

  • [Added] Added content column for post(types).
  • [Added] Added the column shortcodes, which will display any used shortcodes in your post's content
  • [Added] Column width has a text field to enter the width
  • [Added] Added a message for when a custom field is empty
  • [Added] Column width can be set to pixels or percentages
  • [Added] Added a width indicator to the column settings header
  • [Added] Added a singular label to all storage_models
Download this release

Release Info

Developer codepress
Plugin Icon 128x128 Admin Columns
Version 2.4
Comparing to
See all releases

Code changes from version 2.3.5 to 2.4

Files changed (51) hide show
  1. README.md +0 -0
  2. assets/css/admin-column.css +1 -1
  3. assets/js/admin-settings.js +91 -32
  4. assets/js/admin-settings.min.js +1 -1
  5. assets/less/admin-column.less +79 -12
  6. classes/column.php +43 -15
  7. classes/column/custom-field.php +5 -3
  8. classes/column/media/attached-to.php +44 -0
  9. classes/column/post/attachment.php +20 -6
  10. classes/column/post/content.php +52 -0
  11. classes/column/post/date-published.php +60 -0
  12. classes/column/post/excerpt.php +3 -3
  13. classes/column/post/shortcodes.php +50 -0
  14. classes/settings.php +1 -0
  15. classes/storage_model.php +5 -0
  16. classes/storage_model/comment.php +6 -6
  17. classes/storage_model/link.php +10 -10
  18. classes/storage_model/media.php +12 -12
  19. classes/storage_model/post.php +40 -27
  20. classes/storage_model/user.php +10 -11
  21. codepress-admin-columns.php +29 -25
  22. languages/cpac-ar.po +470 -266
  23. languages/cpac-da_DK.mo +0 -0
  24. languages/cpac-da_DK.po +328 -222
  25. languages/cpac-de_DE.mo +0 -0
  26. languages/cpac-de_DE.po +334 -225
  27. languages/cpac-es_ES.mo +0 -0
  28. languages/cpac-es_ES.po +330 -224
  29. languages/cpac-fa_IR.mo +0 -0
  30. languages/cpac-fa_IR.po +331 -224
  31. languages/cpac-fr_FR.mo +0 -0
  32. languages/cpac-fr_FR.po +498 -269
  33. languages/cpac-hu_HU.mo +0 -0
  34. languages/cpac-hu_HU.po +328 -222
  35. languages/cpac-ja.mo +0 -0
  36. languages/cpac-ja.po +329 -224
  37. languages/cpac-nl_NL.mo +0 -0
  38. languages/cpac-nl_NL.po +330 -224
  39. languages/cpac-pl_PL.mo +0 -0
  40. languages/cpac-pl_PL.po +329 -223
  41. languages/cpac-pt_BR.mo +0 -0
  42. languages/cpac-pt_BR.po +356 -252
  43. languages/cpac-ru_RU.mo +0 -0
  44. languages/cpac-ru_RU.po +330 -224
  45. languages/cpac-sv_SE.mo +0 -0
  46. languages/cpac-sv_SE.po +329 -224
  47. languages/cpac-zh_CN.mo +0 -0
  48. languages/cpac-zh_CN.po +329 -224
  49. languages/cpac.mo +0 -0
  50. languages/cpac.po +213 -172
  51. readme.txt +8 -39
README.md DELETED
File without changes
assets/css/admin-column.css CHANGED
@@ -1 +1 @@
1
- #cpac a:focus,#cpac a:active{outline:none}#icon-codepress-admin-columns{background:transparent url('../images/icon.png') no-repeat 0 0}.cpac-settings-link{float:right;margin:12px 14px 5px 0;background:transparent url('../images/settings.png') no-repeat 0 0;padding-left:20px;text-decoration:none;display:inline-block;line-height:16px}.cpac-settings-link.current{font-weight:bold}.rtl .cpac-settings-link{float:left;margin:12px 0 5px 14px;padding-right:20px;padding-left:0}a.help{background:transparent url('../images/help.png') no-repeat 0 0;display:inline-block;width:16px;height:16px}.button.loading{padding-right:25px;position:relative}.rtl .button.loading{padding-left:25px;padding-right:0}.button.loading span{position:absolute;top:2px;right:6px;background:transparent url('../images/loading.gif') no-repeat right 50%;width:16px;height:16px;display:inline-block}.rtl .button.loading span{left:6px;right:auto}.icon-yes{background:transparent url(../images/yes.png) no-repeat 0 0;width:16px;height:16px;display:inline-block;position:relative;top:2px}.icon-no{background:transparent url(../images/no.png) no-repeat 0 0;width:16px;height:16px;display:inline-block;position:relative;top:2px}h2.cpac-nav-tab-wrapper{margin-bottom:10px}.cpac-menu{clear:both;overflow:hidden;margin-bottom:10px}.cpac-menu .subsubsub{white-space:normal;margin-right:14px;width:100%;margin:0 14px 0 0}.cpac-menu .subsubsub li.first{font-weight:bold;min-width:90px}.columns-container{margin-right:300px;max-width:700px}.columns-container .columns-left{float:left;width:100%}.columns-container .columns-right{float:right;margin-right:-300px;width:280px}.columns-container .columns-right .columns-right-inside.fixed{position:fixed;top:40px;width:280px}.ui-sortable-helper{-webkit-box-shadow:1px 3px 6px 0 rgba(1,1,1,0.4);box-shadow:1px 3px 6px 0 rgba(1,1,1,0.4)}.ui-sortable-helper .column-meta{border-width:1px}.cpac-placeholder{visibility:visible !important;border-top:1px solid #dfdfdf;padding:5px 4px 7px 0}.cpac-placeholder .inner-placeholder{border:1px dashed #808080;background:#eee;width:100%;height:100%}.cpac-placeholder :first-child{border:none}.columns-left .cpac-boxes .cpac-columns form{box-shadow:0 1px 3px rgba(0,0,0,0.1)}.cpac-column .column-meta{border-style:solid;border-color:#dfdfdf;border-width:1px 1px 0;background:#fcfcfc}.cpac-column .column-meta:nth-child(2n) .column-meta{background:#f9f9f9}.cpac-column .column-meta img{margin-right:3px}.cpac-column .column-meta table{border:none;background:transparent;border-radius:0}.cpac-column .column-meta table tr td{vertical-align:top;height:18px;border:none;padding:11px 8px;border-width:1px 0 0;border-style:solid;border-color:transparent}.cpac-column .column-meta table tr td.column_sort{width:10px;background:transparent url('../images/drag.png') no-repeat 8px 8px;cursor:move}.cpac-column .column-meta table tr td.column_label{width:70%;font-weight:bold;vertical-align:middle;position:relative}.cpac-column .column-meta table tr td.column_label .inner{position:relative;overflow:hidden;height:18px}.cpac-column .column-meta table tr td.column_label .inner>a{color:#5a5a5a;padding:0 4px}.cpac-column .column-meta table tr td.column_label .inner>a:hover{color:#333}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button,.cpac-column .column-meta table tr td.column_label .inner>a.remove-button,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button{display:none;color:#a00;text-decoration:none;text-shadow:none;font-weight:normal;margin-left:5px;font-size:12px}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.remove-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button:hover{color:#f00}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button{color:#0074a2}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button:hover{color:#2ea2cc}.cpac-column .column-meta table tr td.column_label .inner .meta{display:inline-block;float:right;font-weight:normal;color:#b2b2b2;font-size:12px}.cpac-column .column-meta table tr td.column_label .inner .meta span{cursor:pointer}.cpac-column .column-meta table tr td.column_label .inner .meta span.width{margin-right:5px;cursor:auto}.cpac-column .column-meta table tr td.column_label span.vers{float:left}.cpac-column .column-meta table tr td.column_type{width:auto;min-width:120px;text-align:right;vertical-align:middle;color:#999;padding-right:0}.cpac-column .column-meta table tr td.column_type .inner{height:18px;overflow:hidden}.cpac-column .column-meta table tr td.column_type .inner a{color:#999}.cpac-column .column-meta table tr td.column_edit{width:38px;min-width:38px;background:transparent url('../images/arrow.png') no-repeat 23px 18px;cursor:pointer}.cpac-column .column-meta:hover .column_label .inner>a.remove-button,.cpac-column .column-meta:hover .column_label .inner>a.edit-button,.cpac-column .column-meta:hover .column_label .inner>a.clone-button{display:inline-block}.cpac-column .column-meta span.vers{padding-top:2px}.cpac-column .column-meta span.vers .comment-grey-bubble{background:transparent url("../images/comment-grey-bubble.png") no-repeat 0 0;height:12px;width:12px;float:right}.cpac-column .column-form{display:none;border-width:1px 1px 0;border-style:solid;border-color:#dfdfdf;position:relative}.cpac-column .column-form table{border:none;background:#fcfcfc}.cpac-column .column-form table tr td{vertical-align:top;border:none;padding:8px;background:#fff;border-top:1px solid #f5f5f5}.cpac-column .column-form table tr td select,.cpac-column .column-form table tr td input[type=text]{width:99.95%}.cpac-column .column-form table tr td select.small,.cpac-column .column-form table tr td input[type=text].small{width:100px}.cpac-column .column-form table tr td span.suffix{line-height:40px;color:#808080}.cpac-column .column-form table tr td select optgroup:nth-child(2n){background:#f9f9f9}.cpac-column .column-form table tr td.label{position:relative;overflow:visible;background:#f9f9f9;background:#f5f5f5;border-right:1px solid #e1e1e1;vertical-align:top;width:34%;border-top:1px solid #f0f0f0}.cpac-column .column-form table tr td.label label{font-weight:bold;color:#333;display:block;position:relative}.cpac-column .column-form table tr td.label p{color:#666;display:block;font-size:12px;font-style:normal;line-height:16px;margin:0 !important}.cpac-column .column-form table tr td.label p.description{display:none;position:absolute;z-index:99;top:30px;left:0;background:#eaf2fa;border-radius:5px;border:1px solid #c7d7e2;padding:5px 8px !important;font-weight:normal}.cpac-column .column-form table tr td.label p.description em{display:block;color:#999}.cpac-column .column-form table tr td.input label{padding-left:10px;padding-right:0}.cpac-column .column-form table tr td.input div.msg{margin-top:5px;display:none;color:#333;padding:6px 8px;background-color:#ffebe8;border:1px solid #fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.cpac-column .column-form table tr td.input .section{padding:12px}.cpac-column .column-form table tr.column_width div.description{font-size:11px;width:12%;float:left;text-align:middle}.cpac-column .column-form table tr.column_width div.input-width-range{float:left;position:relative;width:87%;margin-top:4px}.cpac-column .column-form table tr.column_width div.input-width-range .ui-slider-handle{cursor:ew-resize}.cpac-column .column-form table tr.column_image_size{border:10px solid #f00}.cpac-column .column-form table tr.column_image_size td.input label.custom-size{display:inline-block;margin-top:4px;margin-bottom:4px}.cpac-column .column-form table tr.column_image_size td.input label.custom-size input{margin-right:3px}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size{display:inline-block}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .hidden{display:none}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h{margin:0}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w.hidden,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h.hidden{display:none}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w input[type="text"],.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h input[type="text"]{margin-right:3px;width:40px !important}.cpac-column .column-form table tr.column_action td{background:#f9f9f9}.cpac-column .column-form table tr.column_action td p{margin:0}.cpac-column .column-form table tr.column_action td p a.remove-button{color:#a00;text-decoration:none;text-shadow:none;font-weight:normal;margin-left:5px;font-size:12px;padding:0 5px}.cpac-column .column-form table tr.column_action td p a.remove-button:hover{color:#fff;background:#f00}.cpac-column .column-form table tr:first-child td{border-top:none}.cpac-column.loading .column-form>.spinner{position:absolute;left:50%;top:50%;z-index:200;margin-left:-10px;margin-top:-10px;display:block}.cpac-column.loading .column-form:before{content:'';position:absolute;width:100%;height:100%;background:#fff;z-index:100;opacity:.5}.cpac-column.opened .column-meta{background-color:#c7c7c7;background-image:-ms-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:-moz-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:-o-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:-webkit-gradient(linear, left top, left bottom, from(#e9e9e9), to(#c7c7c7));background-image:-webkit-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:linear-gradient(top, #e9e9e9, #c7c7c7);border-color:#aeaeae}.cpac-column.opened .column-meta table{background:transparent}.cpac-column.opened .column-meta table td{border-color:#f8f8f8;color:#333;text-shadow:0 1px 0 #fff}.cpac-column.opened .column-meta table td a{color:#333;text-shadow:0 1px 0 #fff}.cpac-column.opened .column-meta table td.column_sort{background-position:8px -39px}.cpac-column.opened .column-meta table td.column_label .inner .meta span{color:#808080;text-shadow:none}.cpac-column.opened .column-meta table td.column_type{color:#5c5c5c}.column-footer{background:#eaf2fa;border:1px solid #c7d7e2;min-height:26px;padding:8px;overflow:hidden}.column-footer .order-message{background:transparent url('../images/order_arrow.png') no-repeat 0 0;color:#7a9bbe;float:left;font-family:Comic Sans MS,sans-serif;font-size:11px;height:13px;line-height:1em;margin-left:4px;padding:7px 0 0 22px;text-shadow:0 1px 0 #fff;display:inline-block}.column-footer .button-container{float:right;display:inline-block;margin-top:-5px}.column-footer .button-container a{display:inline-block;margin-top:5px}.cpac-content-body hr{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:none repeat scroll 0 0 transparent;border-color:#dfdfdf -moz-use-text-color -moz-use-text-color;border-image:none;border-right:0 none;border-style:solid none none;border-width:1px 0 0;clear:both;margin:30px 0;opacity:.2}#cpac-welcome.about-wrap div.error{display:block !important}.cpac-alert{display:inline-block;background:none repeat scroll 0 0 #fcf8e3;border:1px solid #fbeed5;border-radius:4px 4px 4px 4px;color:#c09853;margin:20px 0;padding:16px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.cpac-alert p{margin:0}.cpac-alert.cpac-alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#468847}.cpac-alert.cpac-alert-error{background-color:#f2dede;border-color:#eed3d7;color:#b94a48}.cpac-alert a.button-primary{height:28px;line-height:28px;display:inline-block}#cpac-download-add-ons-table{max-width:600px}.wp-core-ui .button-large{height:40px;line-height:40px;font-size:16px;padding:0 15px;text-shadow:0 1px 0 rgba(0,0,0,0.5)}.cac-notification.updated{border-left-color:#0071aa}.cac-notification.updated .learnmore{float:right}.cac-notification.updated .learnmore:after{content:"\f139";font:normal 20px/1 'dashicons';float:right}.columns-right{margin-top:54px}.columns-right .sidebox{background:none repeat scroll 0 0 #fff;border:1px solid #e1e1e1;border-radius:0 0 0 0;box-shadow:0 1px 3px rgba(0,0,0,0.1);position:relative;margin-bottom:14px}.columns-right .sidebox h3{padding:10px;margin:0}.columns-right .sidebox h3.title{font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:15px;font-weight:normal;line-height:1;margin:0;padding:7px 10px;background:#f1f1f1;background-image:-webkit-gradient(linear, left bottom, left top, from(#ececec), to(#f9f9f9));background-image:-webkit-linear-gradient(bottom, #ececec, #f9f9f9);background-image:-moz-linear-gradient(bottom, #ececec, #f9f9f9);background-image:-o-linear-gradient(bottom, #ececec, #f9f9f9);background-image:linear-gradient(to top, #ececec, #f9f9f9);border-bottom-color:#dfdfdf;text-shadow:#fff 0 1px 0;-webkit-box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 #fff;border-bottom-style:solid;border-bottom-width:1px}.columns-right .sidebox .inside{padding:10px}.columns-right .sidebox .inside p{margin-top:0}.columns-right .sidebox#form-actions .form-reset{border-bottom:1px solid #f5f5f5;padding:8px}.columns-right .sidebox#form-actions .reset-column-type{text-decoration:none;color:#bc0b0b;line-height:25px;display:inline-block}.columns-right .sidebox#form-actions .form-update{padding:8px;overflow:hidden}.columns-right .sidebox#form-actions .submit-update{display:block;width:100%;height:28px;line-height:28px;text-align:center}.columns-right .sidebox#pro-version .cta{background:transparent url(../images/get_the_addon.png) no-repeat 0 0;background-size:cover}.columns-right .sidebox#pro-version .padding-box{padding:8px 15px 0}.columns-right .sidebox#pro-version h3 a{color:#fff;font-size:19px;text-decoration:none;font-weight:normal;margin-top:6px}.columns-right .sidebox#pro-version .inside ul{margin:0 0 10px 0}.columns-right .sidebox#pro-version .inside ul li{margin:0;padding:0}.columns-right .sidebox#pro-version .inside ul li a{display:inline-block;min-height:24px;font-size:19px;line-height:24px;margin-bottom:1px;padding:0 5px;background:#000;color:#fff;text-decoration:none}.columns-right .sidebox#pro-version .inside p{color:#fff;font-size:12px}.columns-right .sidebox#pro-version .inside p a{color:#fff;display:inline-block;background:#a4c518;padding:0 2px;font-size:15px;text-decoration:none}.columns-right .sidebox#direct-feedback #feedback-support,.columns-right .sidebox#direct-feedback #feedback-rate{display:none}.columns-right .sidebox#direct-feedback .inside>a{border-radius:4px;border:1px solid #ccc;width:48%;height:64px;text-align:center;line-height:64px;font-weight:bold;color:#222;display:inline-block;text-decoration:none}.columns-right .sidebox#direct-feedback .inside>a:hover{background:#fafafa}.columns-right .sidebox#direct-feedback .inside form textarea{width:100%;height:120px}.columns-right .sidebox#direct-feedback .inside form input[type="submit"]{float:right;border-radius:4px;border:1px solid #ccc;height:32px;text-align:center;line-height:32px;font-weight:bold;font-size:12px;padding:0 32px;color:#ccc;display:inline-block;background:none;text-decoration:none;cursor:pointer}.columns-right .sidebox#direct-feedback .inside form input[type="submit"]:hover{background:#fafafa}.columns-right .sidebox#direct-feedback .inside form p.description{float:left;font-size:10px}.columns-right .sidebox#direct-feedback .inside ul{margin:0}.columns-right .sidebox#direct-feedback .inside ul.share li{margin:0;display:block;float:left;margin-left:9px;width:30%}.columns-right .sidebox#direct-feedback .inside ul.share li a{text-decoration:none;vertical-align:middle;line-height:20px;padding:16px 0;width:100%;text-align:center;border:1px solid #ccc;border-radius:4px;display:block}.columns-right .sidebox#direct-feedback .inside ul.share li a:hover{background:#fafafa}.columns-right .sidebox#direct-feedback .inside ul.share li:first-child{margin-left:0}.columns-right .sidebox#direct-feedback #feedback-support .inside ul.share li{width:48%}table.cpac-form-table{max-width:1100px;margin-top:20px}table.cpac-form-table>tbody>tr>td,table.cpac-form-table>tbody>tr>th{vertical-align:top}table.cpac-form-table td.padding-22{padding-top:22px}table.cpac-form-table td .cpac_export .ms-container{background:transparent url('../images/switch_bw.png') no-repeat 50% 50%}table.cpac-form-table td .cpac_export .ms-container .ms-selectable{width:48%;margin-right:0}table.cpac-form-table td .cpac_export .ms-container .ms-selection{float:right;width:48%}table.cpac-form-table td .cpac_export .ms-container ul.ms-list{width:100%}table.cpac-form-table td .cpac_export .ms-container ul.ms-list li{margin:0;padding-top:5px;padding-bottom:5px}table.cpac-form-table.settings tr td{padding-top:74px}table.cpac-form-table.settings tr:first-child th{padding-top:0}table.cpac-form-table.settings tr:first-child td{padding-top:54px}.wp-pointer-content{overflow:hidden}.wp-pointer-content ol{margin-left:1.5em;padding:0 15px}.wp-pointer-right{margin-right:15px}body.rtl .wp-pointer-right{margin-left:15px;margin-right:0}body.rtl .wp-pointer-right ol{margin-right:1.5em;margin-left:0}body.rtl .cpac-menu .subsubsub{margin-left:14px;margin-right:0}body.rtl .columns-container{margin-left:300px;margin-right:0}body.rtl .columns-left{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-meta img{margin-left:3px;margin-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner>a.remove-button{margin-right:12px;margin-left:0}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner .meta{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label span.vers{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_type{text-align:left;padding-left:0;padding-right:auto}body.rtl .columns-left .cpac-columns .cpac-column .column-meta span.vers .comment-grey-bubble{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr.column_image_size td.input label input{margin-left:3px;margin-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label p.description{right:0;left:auto}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label a.more-info{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-form div.description{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-form div.input-width-range{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-form tr td.input label{padding-left:10px;padding-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-form a.help{float:left}body.rtl .columns-left .column-footer .order-message{float:right;padding-right:22px;padding-left:0;background:transparent url('../images/order_arrow-rtl.png') no-repeat right top}body.rtl .columns-left .column-footer .button-container{float:left}body.rtl .columns-right{float:left;margin-left:-300px;margin-right:0}body.rtl .cpac-placeholder{padding:5px 0 7px 4px}body.rtl .cpac_export .ms-container .ms-selection{float:left}@media only screen and (max-width:900px){.columns-container{margin-right:0}.columns-container .columns-left{float:none}.columns-container .columns-right{float:none;margin-top:0;margin-right:0;width:100%}.columns-container .columns-right .columns-right-inside.fixed{position:relative;top:0;width:100%}}.cpac-addons li{width:200px;background:#fff;float:left;margin-right:16px;margin-bottom:16px;border:1px solid #ddd;-webkit-box-shadow:0 3px 10px 0 rgba(0,0,0,0.15);-moz-box-shadow:0 3px 10px 0 rgba(0,0,0,0.15);box-shadow:0 3px 10px 0 rgba(0,0,0,0.15)}.cpac-addons li:hover{-webkit-box-shadow:0 3px 10px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 3px 10px 0 rgba(0,0,0,0.25);box-shadow:0 3px 10px 0 rgba(0,0,0,0.25)}.cpac-addons li a{color:#444}.cpac-addons li .cpac-addon-content{display:table;width:100%;height:125px;text-align:center;vertical-align:middle;border-top:1px solid #ddd;background:#0069a4;background:-moz-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:-webkit-gradient(radial, center center, 0, center center, 100%, color-stop(0, #0069a4), color-stop(100%, #085079));background:-webkit-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:-o-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:-ms-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:radial-gradient(ellipse at center, #0069a4 0, #085079 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0069a4', endColorstr='#085079', GradientType=1)}.cpac-addons li .cpac-addon-content>*{display:table-cell;vertical-align:middle}.cpac-addons li .cpac-addon-content h3{padding:0 16px;color:#fff;line-height:150%}.cpac-addons li .cpac-addon-content img{width:100%}.cpac-addons li .cpac-addon-header{width:100%;padding:25px 15px;-moz-box-sizing:border-box;box-sizing:border-box}.cpac-addons li .cpac-addon-header>*:first-child{margin-top:0}.cpac-addons li .cpac-addon-header>*:last-child{margin-bottom:0}.cpac-addons li .cpac-addon-actions{background:#eee;border-top:1px solid #ddd;padding:8px}.cpac-addons li .cpac-addon-actions .cpac-installed:before{content:"\f147";font-family:'dashicons';vertical-align:middle;margin-left:-5px;margin-right:3px}
1
+ #cpac a:focus,#cpac a:active{outline:none}#icon-codepress-admin-columns{background:transparent url('../images/icon.png') no-repeat 0 0}.cpac-settings-link{float:right;margin:12px 14px 5px 0;background:transparent url('../images/settings.png') no-repeat 0 0;padding-left:20px;text-decoration:none;display:inline-block;line-height:16px}.cpac-settings-link.current{font-weight:bold}.rtl .cpac-settings-link{float:left;margin:12px 0 5px 14px;padding-right:20px;padding-left:0}a.help{background:transparent url('../images/help.png') no-repeat 0 0;display:inline-block;width:16px;height:16px}.button.loading{padding-right:25px;position:relative}.rtl .button.loading{padding-left:25px;padding-right:0}.button.loading span{position:absolute;top:2px;right:6px;background:transparent url('../images/loading.gif') no-repeat right 50%;width:16px;height:16px;display:inline-block}.rtl .button.loading span{left:6px;right:auto}.icon-yes{background:transparent url(../images/yes.png) no-repeat 0 0;width:16px;height:16px;display:inline-block;position:relative;top:2px}.icon-no{background:transparent url(../images/no.png) no-repeat 0 0;width:16px;height:16px;display:inline-block;position:relative;top:2px}h2.cpac-nav-tab-wrapper{margin-bottom:10px}.cpac-menu{clear:both;overflow:hidden;margin-bottom:10px}.cpac-menu .subsubsub{white-space:normal;margin-right:14px;width:100%;margin:0 14px 0 0}.cpac-menu .subsubsub li.first{font-weight:bold;min-width:90px}.columns-container{margin-right:300px;max-width:700px}.columns-container .columns-left{float:left;width:100%}.columns-container .columns-right{float:right;margin-right:-300px;width:280px}.columns-container .columns-right .columns-right-inside.fixed{position:fixed;top:40px;width:280px}.ui-sortable-helper{-webkit-box-shadow:1px 3px 6px 0 rgba(1,1,1,0.4);box-shadow:1px 3px 6px 0 rgba(1,1,1,0.4)}.ui-sortable-helper .column-meta{border-width:1px}.cpac-placeholder{visibility:visible !important;border-top:1px solid #dfdfdf;padding:5px 4px 7px 0}.cpac-placeholder .inner-placeholder{border:1px dashed #808080;background:#eee;width:100%;height:100%}.cpac-placeholder :first-child{border:none}.columns-left .cpac-boxes .cpac-columns form{box-shadow:0 1px 3px rgba(0,0,0,0.1)}.cpac-column .column-meta{border-style:solid;border-color:#dfdfdf;border-width:1px 1px 0;background:#fcfcfc}.cpac-column .column-meta:nth-child(2n) .column-meta{background:#f9f9f9}.cpac-column .column-meta img{margin-right:3px}.cpac-column .column-meta table{border:none;background:transparent;border-radius:0}.cpac-column .column-meta table tr td{vertical-align:top;height:18px;border:none;padding:11px 8px;border-width:1px 0 0;border-style:solid;border-color:transparent}.cpac-column .column-meta table tr td.column_sort{width:10px;background:transparent url('../images/drag.png') no-repeat 8px 8px;cursor:move}.cpac-column .column-meta table tr td.column_label{width:70%;font-weight:bold;vertical-align:middle;position:relative}.cpac-column .column-meta table tr td.column_label .inner{position:relative;overflow:hidden;height:18px}.cpac-column .column-meta table tr td.column_label .inner>a{color:#5a5a5a;padding:0 4px}.cpac-column .column-meta table tr td.column_label .inner>a:hover{color:#333}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button,.cpac-column .column-meta table tr td.column_label .inner>a.remove-button,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button{display:none;color:#a00;text-decoration:none;text-shadow:none;font-weight:normal;margin-left:5px;font-size:12px}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.remove-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button:hover{color:#f00}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button{color:#0074a2}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button:hover{color:#2ea2cc}.cpac-column .column-meta table tr td.column_label .inner .meta{display:inline-block;float:right;font-weight:normal;color:#b2b2b2;font-size:12px}.cpac-column .column-meta table tr td.column_label .inner .meta span{cursor:pointer}.cpac-column .column-meta table tr td.column_label .inner .meta span.width{margin-right:5px;cursor:auto}.cpac-column .column-meta table tr td.column_label span.vers{float:left}.cpac-column .column-meta table tr td.column_type{width:auto;min-width:120px;text-align:right;vertical-align:middle;color:#999;padding-right:0}.cpac-column .column-meta table tr td.column_type .inner{height:18px;overflow:hidden}.cpac-column .column-meta table tr td.column_type .inner a{color:#999}.cpac-column .column-meta table tr td.column_edit{width:38px;min-width:38px;background:transparent url('../images/arrow.png') no-repeat 23px 18px;cursor:pointer}.cpac-column .column-meta:hover .column_label .inner>a.remove-button,.cpac-column .column-meta:hover .column_label .inner>a.edit-button,.cpac-column .column-meta:hover .column_label .inner>a.clone-button{display:inline-block}.cpac-column .column-meta span.vers{padding-top:2px}.cpac-column .column-meta span.vers .comment-grey-bubble{background:transparent url("../images/comment-grey-bubble.png") no-repeat 0 0;height:12px;width:12px;float:right}.cpac-column .column-form{display:none;border-width:1px 1px 0;border-style:solid;border-color:#dfdfdf;position:relative}.cpac-column .column-form table{border:none;background:#fcfcfc}.cpac-column .column-form table tr td{vertical-align:top;border:none;padding:8px;background:#fff;border-top:1px solid #f5f5f5}.cpac-column .column-form table tr td select,.cpac-column .column-form table tr td input[type=text]{width:99.95%}.cpac-column .column-form table tr td select.small,.cpac-column .column-form table tr td input[type=text].small{width:100px}.cpac-column .column-form table tr td span.suffix{line-height:40px;color:#808080}.cpac-column .column-form table tr td select optgroup:nth-child(2n){background:#f9f9f9}.cpac-column .column-form table tr td.label{position:relative;overflow:visible;background:#f9f9f9;background:#f5f5f5;border-right:1px solid #e1e1e1;vertical-align:top;width:34%;border-top:1px solid #f0f0f0}.cpac-column .column-form table tr td.label label{font-weight:bold;color:#333;display:block;position:relative}.cpac-column .column-form table tr td.label p{color:#666;display:block;font-size:12px;font-style:normal;line-height:16px;margin:0 !important}.cpac-column .column-form table tr td.label p.description{display:none;position:absolute;z-index:99;top:30px;left:0;background:#eaf2fa;border-radius:5px;border:1px solid #c7d7e2;padding:5px 8px !important;font-weight:normal}.cpac-column .column-form table tr td.label p.description em{display:block;color:#999}.cpac-column .column-form table tr td.label .info{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cpac-column .column-form table tr td.label .info:before{position:absolute;z-index:1;right:10px;top:50%;margin-top:-7px;content:'';display:block;border-radius:32px;border:1px solid #e6e6e6;width:12px;height:12px}.cpac-column .column-form table tr td.label .info:after{position:absolute;z-index:1;right:10px;top:50%;margin-top:-6px;content:'?';display:block;width:14px;height:14px;color:#e6e6e6;font:bold 10px Arial;text-align:center;vertical-align:middle;line-height:14px}.cpac-column .column-form table tr td.input label{padding-left:10px;padding-right:0}.cpac-column .column-form table tr td.input div.msg{margin-top:5px;display:none;color:#333;padding:6px 8px;background-color:#ffebe8;border:1px solid #fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.cpac-column .column-form table tr td.input .section{padding:12px}.cpac-column .column-form table tr.column_width .input{position:relative}.cpac-column .column-form table tr.column_width .input div.description{font-size:11px;width:54px;position:absolute;left:10px;text-align:middle}.cpac-column .column-form table tr.column_width .input div.description input{background:#efefef;border:none;height:20px;line-height:20px;text-align:right;width:36px;font-size:12px}.cpac-column .column-form table tr.column_width .input div.width-slider{margin-left:60px;margin-right:100px;position:relative;margin-top:4px}.cpac-column .column-form table tr.column_width .input div.width-slider .ui-slider-handle{cursor:ew-resize}.cpac-column .column-form table tr.column_width .input div.unit-select{position:absolute;top:8px;right:10px;width:90px;text-align:right}.cpac-column .column-form table tr.column_width .input div.unit-select label{padding-left:5px}.cpac-column .column-form table tr.column_image_size{border:10px solid #f00}.cpac-column .column-form table tr.column_image_size td.input label.custom-size{display:inline-block;margin-top:4px;margin-bottom:4px}.cpac-column .column-form table tr.column_image_size td.input label.custom-size input{margin-right:3px}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size{display:inline-block}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .hidden{display:none}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h{margin:0}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w.hidden,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h.hidden{display:none}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w input[type="text"],.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h input[type="text"]{margin-right:3px;width:40px !important}.cpac-column .column-form table tr.column_action td{background:#f9f9f9}.cpac-column .column-form table tr.column_action td p{margin:0}.cpac-column .column-form table tr.column_action td p a.remove-button{color:#a00;text-decoration:none;text-shadow:none;font-weight:normal;margin-left:5px;font-size:12px;padding:0 5px}.cpac-column .column-form table tr.column_action td p a.remove-button:hover{color:#fff;background:#f00}.cpac-column .column-form table tr:first-child td{border-top:none}.cpac-column.loading .column-form>.spinner{position:absolute;left:50%;top:50%;z-index:200;margin-left:-10px;margin-top:-10px;display:block}.cpac-column.loading .column-form:before{content:'';position:absolute;width:100%;height:100%;background:#fff;z-index:100;opacity:.5}.cpac-column.opened .column-meta{background-color:#c7c7c7;background-image:-ms-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:-moz-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:-o-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:-webkit-gradient(linear, left top, left bottom, from(#e9e9e9), to(#c7c7c7));background-image:-webkit-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:linear-gradient(top, #e9e9e9, #c7c7c7);border-color:#aeaeae}.cpac-column.opened .column-meta table{background:transparent}.cpac-column.opened .column-meta table td{border-color:#f8f8f8;color:#333;text-shadow:0 1px 0 #fff}.cpac-column.opened .column-meta table td a{color:#333;text-shadow:0 1px 0 #fff}.cpac-column.opened .column-meta table td.column_sort{background-position:8px -39px}.cpac-column.opened .column-meta table td.column_label .inner .meta span{color:#808080;text-shadow:none}.cpac-column.opened .column-meta table td.column_type{color:#5c5c5c}.column-footer{background:#eaf2fa;border:1px solid #c7d7e2;min-height:26px;padding:8px;overflow:hidden}.column-footer .order-message{background:transparent url('../images/order_arrow.png') no-repeat 0 0;color:#7a9bbe;float:left;font-family:Comic Sans MS,sans-serif;font-size:11px;height:13px;line-height:1em;margin-left:4px;padding:7px 0 0 22px;text-shadow:0 1px 0 #fff;display:inline-block}.column-footer .button-container{float:right;display:inline-block;margin-top:-5px}.column-footer .button-container a{display:inline-block;margin-top:5px}.cpac-content-body hr{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:none repeat scroll 0 0 transparent;border-color:#dfdfdf -moz-use-text-color -moz-use-text-color;border-image:none;border-right:0 none;border-style:solid none none;border-width:1px 0 0;clear:both;margin:30px 0;opacity:.2}#cpac-welcome.about-wrap div.error{display:block !important}.cpac-alert{display:inline-block;background:none repeat scroll 0 0 #fcf8e3;border:1px solid #fbeed5;border-radius:4px 4px 4px 4px;color:#c09853;margin:20px 0;padding:16px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.cpac-alert p{margin:0}.cpac-alert.cpac-alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#468847}.cpac-alert.cpac-alert-error{background-color:#f2dede;border-color:#eed3d7;color:#b94a48}.cpac-alert a.button-primary{height:28px;line-height:28px;display:inline-block}#cpac-download-add-ons-table{max-width:600px}.wp-core-ui .button-large{height:40px;line-height:40px;font-size:16px;padding:0 15px;text-shadow:0 1px 0 rgba(0,0,0,0.5)}.cac-notification.updated{border-left-color:#0071aa}.cac-notification.updated .learnmore{float:right}.cac-notification.updated .learnmore:after{content:"\f139";font:normal 20px/1 'dashicons';float:right}.columns-right{margin-top:54px}.columns-right .sidebox{background:none repeat scroll 0 0 #fff;border:1px solid #e1e1e1;border-radius:0 0 0 0;box-shadow:0 1px 3px rgba(0,0,0,0.1);position:relative;margin-bottom:14px}.columns-right .sidebox h3{padding:10px;margin:0}.columns-right .sidebox h3.title{font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:15px;font-weight:normal;line-height:1;margin:0;padding:7px 10px;background:#f1f1f1;background-image:-webkit-gradient(linear, left bottom, left top, from(#ececec), to(#f9f9f9));background-image:-webkit-linear-gradient(bottom, #ececec, #f9f9f9);background-image:-moz-linear-gradient(bottom, #ececec, #f9f9f9);background-image:-o-linear-gradient(bottom, #ececec, #f9f9f9);background-image:linear-gradient(to top, #ececec, #f9f9f9);border-bottom-color:#dfdfdf;text-shadow:#fff 0 1px 0;-webkit-box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 #fff;border-bottom-style:solid;border-bottom-width:1px}.columns-right .sidebox .inside{padding:10px}.columns-right .sidebox .inside p{margin-top:0}.columns-right .sidebox#form-actions .form-reset{border-bottom:1px solid #f5f5f5;padding:8px}.columns-right .sidebox#form-actions .reset-column-type{text-decoration:none;color:#bc0b0b;line-height:25px;display:inline-block}.columns-right .sidebox#form-actions .form-update{padding:8px;overflow:hidden}.columns-right .sidebox#form-actions .submit-update{display:block;width:100%;height:28px;line-height:28px;text-align:center}.columns-right .sidebox#pro-version .cta{background:transparent url(../images/get_the_addon.png) no-repeat 0 0;background-size:cover}.columns-right .sidebox#pro-version .padding-box{padding:8px 15px 0}.columns-right .sidebox#pro-version h3 a{color:#fff;font-size:19px;text-decoration:none;font-weight:normal;margin-top:6px}.columns-right .sidebox#pro-version .inside ul{margin:0 0 10px 0}.columns-right .sidebox#pro-version .inside ul li{margin:0;padding:0}.columns-right .sidebox#pro-version .inside ul li a{display:inline-block;min-height:24px;font-size:19px;line-height:24px;margin-bottom:1px;padding:0 5px;background:#000;color:#fff;text-decoration:none}.columns-right .sidebox#pro-version .inside p{color:#fff;font-size:12px}.columns-right .sidebox#pro-version .inside p a{color:#fff;display:inline-block;background:#a4c518;padding:0 2px;font-size:15px;text-decoration:none}.columns-right .sidebox#direct-feedback #feedback-support,.columns-right .sidebox#direct-feedback #feedback-rate{display:none}.columns-right .sidebox#direct-feedback .inside>a{border-radius:4px;border:1px solid #ccc;width:48%;height:64px;text-align:center;line-height:64px;font-weight:bold;color:#222;display:inline-block;text-decoration:none}.columns-right .sidebox#direct-feedback .inside>a:hover{background:#fafafa}.columns-right .sidebox#direct-feedback .inside form textarea{width:100%;height:120px}.columns-right .sidebox#direct-feedback .inside form input[type="submit"]{float:right;border-radius:4px;border:1px solid #ccc;height:32px;text-align:center;line-height:32px;font-weight:bold;font-size:12px;padding:0 32px;color:#ccc;display:inline-block;background:none;text-decoration:none;cursor:pointer}.columns-right .sidebox#direct-feedback .inside form input[type="submit"]:hover{background:#fafafa}.columns-right .sidebox#direct-feedback .inside form p.description{float:left;font-size:10px}.columns-right .sidebox#direct-feedback .inside ul{margin:0}.columns-right .sidebox#direct-feedback .inside ul.share li{margin:0;display:block;float:left;margin-left:9px;width:30%}.columns-right .sidebox#direct-feedback .inside ul.share li a{text-decoration:none;vertical-align:middle;line-height:20px;padding:16px 0;width:100%;text-align:center;border:1px solid #ccc;border-radius:4px;display:block}.columns-right .sidebox#direct-feedback .inside ul.share li a:hover{background:#fafafa}.columns-right .sidebox#direct-feedback .inside ul.share li:first-child{margin-left:0}.columns-right .sidebox#direct-feedback #feedback-support .inside ul.share li{width:48%}table.cpac-form-table{max-width:1100px;margin-top:20px}table.cpac-form-table>tbody>tr>td,table.cpac-form-table>tbody>tr>th{vertical-align:top}table.cpac-form-table td.padding-22{padding-top:22px}table.cpac-form-table td .cpac_export .ms-container{background:transparent url('../images/switch_bw.png') no-repeat 50% 50%}table.cpac-form-table td .cpac_export .ms-container .ms-selectable{width:48%;margin-right:0}table.cpac-form-table td .cpac_export .ms-container .ms-selection{float:right;width:48%}table.cpac-form-table td .cpac_export .ms-container ul.ms-list{width:100%}table.cpac-form-table td .cpac_export .ms-container ul.ms-list li{margin:0;padding-top:5px;padding-bottom:5px}table.cpac-form-table.settings tr td{padding-top:74px}table.cpac-form-table.settings tr:first-child th{padding-top:0}table.cpac-form-table.settings tr:first-child td{padding-top:54px}.wp-pointer-content{overflow:hidden}.wp-pointer-content ol{margin-left:1.5em;padding:0 15px}.wp-pointer-right{margin-right:15px}body.rtl .wp-pointer-right{margin-left:15px;margin-right:0}body.rtl .wp-pointer-right ol{margin-right:1.5em;margin-left:0}body.rtl .cpac-menu .subsubsub{margin-left:14px;margin-right:0}body.rtl .columns-container{margin-left:300px;margin-right:0}body.rtl .columns-left{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-meta img{margin-left:3px;margin-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner>a.remove-button{margin-right:12px;margin-left:0}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner .meta{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label span.vers{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_type{text-align:left;padding-left:0;padding-right:auto}body.rtl .columns-left .cpac-columns .cpac-column .column-meta span.vers .comment-grey-bubble{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr.column_image_size td.input label input{margin-left:3px;margin-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label p.description{right:0;left:auto}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label a.more-info{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-form div.description{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-form div.input-width-range{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-form tr td.input label{padding-left:10px;padding-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-form a.help{float:left}body.rtl .columns-left .column-footer .order-message{float:right;padding-right:22px;padding-left:0;background:transparent url('../images/order_arrow-rtl.png') no-repeat right top}body.rtl .columns-left .column-footer .button-container{float:left}body.rtl .columns-right{float:left;margin-left:-300px;margin-right:0}body.rtl .cpac-placeholder{padding:5px 0 7px 4px}body.rtl .cpac_export .ms-container .ms-selection{float:left}@media only screen and (max-width:900px){.columns-container{margin-right:0}.columns-container .columns-left{float:none}.columns-container .columns-right{float:none;margin-top:0;margin-right:0;width:100%}.columns-container .columns-right .columns-right-inside.fixed{position:relative;top:0;width:100%}}.cpac-addons li{width:200px;background:#fff;float:left;margin-right:16px;margin-bottom:16px;border:1px solid #ddd;-webkit-box-shadow:0 3px 10px 0 rgba(0,0,0,0.15);-moz-box-shadow:0 3px 10px 0 rgba(0,0,0,0.15);box-shadow:0 3px 10px 0 rgba(0,0,0,0.15)}.cpac-addons li:hover{-webkit-box-shadow:0 3px 10px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 3px 10px 0 rgba(0,0,0,0.25);box-shadow:0 3px 10px 0 rgba(0,0,0,0.25)}.cpac-addons li a{color:#444}.cpac-addons li .cpac-addon-content{display:table;width:100%;height:125px;text-align:center;vertical-align:middle;border-top:1px solid #ddd;background:#0069a4;background:-moz-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:-webkit-gradient(radial, center center, 0, center center, 100%, color-stop(0, #0069a4), color-stop(100%, #085079));background:-webkit-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:-o-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:-ms-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:radial-gradient(ellipse at center, #0069a4 0, #085079 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0069a4', endColorstr='#085079', GradientType=1)}.cpac-addons li .cpac-addon-content>*{display:table-cell;vertical-align:middle}.cpac-addons li .cpac-addon-content h3{padding:0 16px;color:#fff;line-height:150%}.cpac-addons li .cpac-addon-content img{width:100%}.cpac-addons li .cpac-addon-header{width:100%;padding:25px 15px;-moz-box-sizing:border-box;box-sizing:border-box}.cpac-addons li .cpac-addon-header>*:first-child{margin-top:0}.cpac-addons li .cpac-addon-header>*:last-child{margin-bottom:0}.cpac-addons li .cpac-addon-actions{background:#eee;border-top:1px solid #ddd;padding:8px}.cpac-addons li .cpac-addon-actions .cpac-installed:before{content:"\f147";font-family:'dashicons';vertical-align:middle;margin-left:-5px;margin-right:3px}
assets/js/admin-settings.js CHANGED
@@ -215,35 +215,57 @@ jQuery.fn.column_bind_events = function() {
215
jQuery(this).closest('.cpac-column').find( 'td.column_label .inner > a.toggle' ).text( value );
216
});
217
218
- /** width slider */
219
- column.find('.input-width-range').each( function(){
220
-
221
- var input = jQuery(this).closest('td').find('.input-width');
222
- var descr = jQuery(this).closest('td').find('.width-decription');
223
- var indicator = jQuery(this).closest('.cpac-column').find('.column-meta span.width');
224
- var input_default = jQuery(input)[0].defaultValue;
225
- var translation_default = descr.attr('title');
226
-
227
- // add slider
228
- jQuery(this).slider({
229
- range: 'min',
230
- min: 0,
231
- max: 100,
232
- value: input_default,
233
- slide: function( event, ui ) {
234
-
235
- // set default
236
- var descr_value = ui.value > 0 ? ui.value + '%' : translation_default;
237
- var indicator_value = ui.value > 0 ? ui.value + '%' : '';
238
-
239
- // set input value
240
- jQuery(input).val( ui.value );
241
-
242
- // set description
243
- descr.text( descr_value );
244
- indicator.text( indicator_value );
245
- }
246
- });
247
});
248
249
/** display custom image size */
@@ -263,10 +285,10 @@ jQuery.fn.column_bind_events = function() {
263
});
264
265
/** tooltip */
266
- column.find('.column-form .label label').hover(function(){
267
- jQuery(this).find('p.description').show();
268
},function(){
269
- jQuery(this).find('p.description').hide();
270
});
271
272
if ( column.find( '.column_type select' ).val() == 'column-meta' ) {
@@ -287,6 +309,43 @@ jQuery.fn.column_remove = function() {
287
});
288
};
289
290
/*
291
* Column: clone
292
*
215
jQuery(this).closest('.cpac-column').find( 'td.column_label .inner > a.toggle' ).text( value );
216
});
217
218
+ /** width */
219
+
220
+ // slider
221
+ column.column_width_slider();
222
+
223
+ // indicator
224
+ var width_indicator = column.find('.column-meta span.width');
225
+ width_indicator.on( 'update', function(){
226
+ var _width = column.find('input.width').val();
227
+ var _unit = column.find('input.unit').filter(':checked').val();
228
+ if ( _width > 0 ) {
229
+ jQuery(this).text( _width + _unit );
230
+ } else {
231
+ jQuery(this).text('');
232
+ }
233
+ });
234
+
235
+ // unit selector
236
+ var width_unit_select = column.find('.column_width .unit-select label');
237
+ width_unit_select.on( 'click', function(){
238
+
239
+ column.find('span.unit').text( jQuery(this).find('input').val() );
240
+ column.column_width_slider(); // re-init slider
241
+ width_indicator.trigger('update'); // update indicator
242
+ });
243
+
244
+ // width_input
245
+ var width_input = column.find('input.width')
246
+ .on( 'keyup', function() {
247
+ column.column_width_slider(); // re-init slider
248
+ jQuery(this).trigger('validate'); // validate input
249
+ width_indicator.trigger('update'); // update indicator
250
+ })
251
+
252
+ // width_input:validate
253
+ .on( 'validate', function() {
254
+ var _width = width_input.val();
255
+ var _new_width = jQuery.trim( _width );
256
+
257
+ if ( ! jQuery.isNumeric( _new_width ) ) {
258
+ _new_width = _new_width.replace(/\D/g,'');
259
+ }
260
+ if ( _new_width.length > 3 ) {
261
+ _new_width = _new_width.substring(0, 3);
262
+ }
263
+ if ( _new_width <= 0 ) {
264
+ _new_width = '';
265
+ }
266
+ if ( _new_width !== _width ) {
267
+ width_input.val( _new_width );
268
+ }
269
});
270
271
/** display custom image size */
285
});
286
287
/** tooltip */
288
+ column.find('.column-form .label label, .column-form .label .info').hover(function(){
289
+ jQuery(this).parents( '.label' ).find('p.description').show();
290
},function(){
291
+ jQuery(this).parents( '.label' ).find('p.description').hide();
292
});
293
294
if ( column.find( '.column_type select' ).val() == 'column-meta' ) {
309
});
310
};
311
312
+ /*
313
+ * Column: remove from DOM
314
+ *
315
+ * @since 2.0
316
+ */
317
+ jQuery.fn.column_width_slider = function() {
318
+
319
+ var column_width = jQuery(this).find('.column_width');
320
+
321
+ var input_width = column_width.find('input.width'),
322
+ input_unit = column_width.find('input.unit'),
323
+ unit = input_unit.filter(':checked').val(),
324
+ width = input_width.val(),
325
+ slider = column_width.find('.width-slider'),
326
+ indicator = jQuery(this).find('.column-meta span.width');
327
+
328
+ // width
329
+ if ( '%' == unit && width > 100 ) {
330
+ width = 100;
331
+ }
332
+
333
+ input_width.val( width );
334
+
335
+ slider.slider({
336
+ range: 'min',
337
+ min: 0,
338
+ max: '%' == unit ? 100 : 500,
339
+ value: width,
340
+ slide: function( event, ui ) {
341
+
342
+ input_width.val( ui.value );
343
+ indicator.trigger('update');
344
+ input_width.trigger('validate');
345
+ }
346
+ });
347
+ };
348
+
349
/*
350
* Column: clone
351
*
assets/js/admin-settings.min.js CHANGED
@@ -1,4 +1,4 @@
1
/*
2
* Fires when the dom is ready
3
*
4
- */function cpac_importexport(){jQuery("#php-export-results textarea").on("focus, mouseup",function(){jQuery(this).select()}).select().focus()}function cpac_submit_form(){jQuery(".form-update a.submit-update").click(function(e){e.preventDefault();jQuery(this).closest(".columns-container").find(".cpac-columns form").submit()})}function cpac_create_column(e){var t=jQuery(".for-cloning-only .cpac-column",e).first().clone(),n=e.attr("data-type");if(t.length>0){t.cpac_update_clone_id(n);jQuery(".cpac-columns form",e).append(t);t.column_bind_toggle();t.column_bind_remove();t.column_bind_clone();t.column_bind_events();cpac_sortable();jQuery(document).trigger("column_add",t)}return t}function cpac_add_column(){jQuery("#cpac .add_column").click(function(e){var t=jQuery(this).closest(".columns-container"),n=cpac_create_column(t);n.addClass("opened").find(".column-form").slideDown(150,function(){jQuery("html, body").animate({scrollTop:n.offset().top-58},300)});e.preventDefault()})}function cpac_sidebar_feedback(){jQuery(function(e){var t=e(".sidebox#direct-feedback");t.find("#feedback-choice a.no").click(function(e){e.preventDefault();t.find("#feedback-choice").slideUp();t.find("#feedback-support").slideDown()});t.find("#feedback-choice a.yes").click(function(e){e.preventDefault();t.find("#feedback-choice").slideUp();t.find("#feedback-rate").slideDown()})})}function cpac_clear_input_defaults(){jQuery.fn.cleardefault=function(){return this.focus(function(){this.value==this.defaultValue&&(this.value="")}).blur(function(){this.value.length||(this.value=this.defaultValue)})};jQuery("#cpac-box-plugin_settings .addons input").cleardefault()}function cpac_help(){jQuery("#cpac a.help").click(function(e){e.preventDefault();var t=jQuery("#contextual-help-wrap");t.parent().show();jQuery('a[href="#tab-panel-cpac-'+jQuery(this).attr("data-help")+'"]',t).trigger("click");t.slideDown("fast",function(){t.focus()})})}function cpac_pointer(){jQuery(".cpac-pointer").each(function(){var e=jQuery(this),t=e.attr("rel"),n=e.attr("data-pos"),r={at:"left top",my:"right top",edge:"right",offset:"0 0"};"right"==n&&(r={at:"right middle",my:"left middle",edge:"left"});e.pointer({content:jQuery("#"+t).html(),position:r,pointerWidth:250,close:function(){e.removeClass("open")},pointerClass:"wp-pointer wp-pointer-"+r.edge});e.click(function(){e.hasClass("open")?e.removeClass("open"):e.addClass("open")});e.hover(function(){jQuery(this).pointer("open")},function(){e.hasClass("open")||jQuery(this).pointer("close")})})}function cpac_sortable(){jQuery("div.cpac-columns").each(function(){jQuery(this).hasClass("ui-sortable")?jQuery(this).sortable("refresh"):jQuery(this).sortable({items:".cpac-column"})})}function cpac_menu(){var e=jQuery("#cpac div.cpac-menu");e.find("a").click(function(e,t){var n=jQuery(this).attr("href");if(n){var r=n.replace("#cpac-box-","");jQuery(".cpac-menu a").removeClass("current");jQuery(".columns-container").hide();jQuery(this).addClass("current");var i=jQuery('.columns-container[data-type="'+r+'"]').show(),s=i.find(".cpac-columns");jQuery(document).trigger("cac_menu_change",s)}e.preventDefault()});e.find("a.current").trigger("click")}jQuery(document).ready(function(){if(jQuery("#cpac").length===0)return!1;cpac_pointer();cpac_submit_form();cpac_clear_input_defaults();cpac_sortable();cpac_menu();cpac_help();cpac_add_column();cpac_importexport();cpac_sidebar_feedback();jQuery(".cpac-column").each(function(e,t){jQuery(t).column_bind_toggle();jQuery(t).column_bind_remove();jQuery(t).column_bind_clone();jQuery(t).cpac_bind_container_addon_events()})});jQuery.fn.column_bind_toggle=function(){var e=jQuery(this);e.find("td.column_type a, td.column_edit, td.column_label a.toggle, td.column_label .edit-button").click(function(t){t.preventDefault();e.toggleClass("opened").find(".column-form").slideToggle(150);e.hasClass("events-binded")||e.column_bind_events();e.addClass("events-binded");jQuery(document).trigger("column_init",e)})};jQuery.fn.column_bind_remove=function(){jQuery(this).find(".remove-button").click(function(e){jQuery(this).closest(".cpac-column").column_remove();e.preventDefault()})};jQuery.fn.column_bind_clone=function(){jQuery(this).find(".clone-button").click(function(e){var t,n;e.preventDefault();t=jQuery(this).closest(".cpac-column");n=t.column_clone();typeof n!="undefined"&&n.removeClass("loading").hide().slideDown()})};jQuery.fn.cpac_column_refresh=function(){var e=jQuery(this);e.addClass("loading");e.find(".column-form").prepend('<span class="spinner" />');jQuery.post(ajaxurl,{plugin_id:"cpac",action:"cpac_column_refresh",column:jQuery(this).find("input.column-name").val(),formdata:jQuery(this).parents("form").serialize()},function(t){var n=jQuery("<div>"+t+"</div>").children();e.replaceWith(n);e=n;e.column_bind_toggle();e.column_bind_remove();e.column_bind_clone();e.column_bind_events();e.removeClass("loading").addClass("opened").find(".column-form").show();jQuery(document).trigger("column_change",e)})};jQuery.fn.column_bind_events=function(){var e=jQuery(this),t=e.closest(".columns-container "),n=t.attr("data-type"),r=e.find(".column_type select option:selected").val();e.find(".column_type select").change(function(){var i=jQuery("optgroup",this).children(":selected"),s=i.val(),o=i.text(),u=jQuery(this).next(".msg").hide(),a=t.find('.for-cloning-only .cpac-column[data-type="'+s+'"]');if(a.length)if(a.find(".is-disabled").length){u.html(a.find(".is-disabled").html()).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected")}else{if(typeof a.attr("data-clone")=="undefined"&&jQuery(".cpac-columns",t).find('[data-type="'+s+'"]').length){u.html(cpac_i18n.clone.replace("%s","<strong>"+o+"</strong>")).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected");return}var f=a.clone();f.addClass("opened").find(".column-form").show();f.find(".column-meta").replaceWith(e.find(".column-meta"));f.find(".column-form").replaceWith(e.find(".column-form"));f.cpac_update_clone_id(n);e.replaceWith(f);f.cpac_column_refresh()}});e.find(".column_label .input input").bind("keyup change",function(){var e=jQuery(this).val();jQuery(this).closest(".cpac-column").find("td.column_label .inner > a.toggle").text(e)});e.find(".input-width-range").each(function(){var e=jQuery(this).closest("td").find(".input-width"),t=jQuery(this).closest("td").find(".width-decription"),n=jQuery(this).closest(".cpac-column").find(".column-meta span.width"),r=jQuery(e)[0].defaultValue,i=t.attr("title");jQuery(this).slider({range:"min",min:0,max:100,value:r,slide:function(r,s){var o=s.value>0?s.value+"%":i,u=s.value>0?s.value+"%":"";jQuery(e).val(s.value);t.text(o);n.text(u)}})});e.find(".column_image_size label.custom-size").click(function(){var e=jQuery(this).closest(".input");if(jQuery(this).hasClass("image-size-custom")){jQuery(".custom-size-w",e).removeClass("hidden");jQuery(".custom-size-h",e).removeClass("hidden")}else{jQuery(".custom-size-w",e).addClass("hidden");jQuery(".custom-size-h",e).addClass("hidden")}});e.find(".column-form .label label").hover(function(){jQuery(this).find("p.description").show()},function(){jQuery(this).find("p.description").hide()});e.find(".column_type select").val()=="column-meta"&&e.find(".column_field_type select").change(function(){e.cpac_column_refresh()})};jQuery.fn.column_remove=function(){jQuery(this).addClass("deleting").animate({opacity:0,height:0},350,function(e){jQuery(this).remove()})};jQuery.fn.column_clone=function(){var e=jQuery(this).closest(".columns-container"),t=jQuery(this);if(typeof t.attr("data-clone")=="undefined"){var n=cpac_i18n.clone.replace("%s","<strong>"+t.find(".column_label .toggle").text()+"</strong>");t.addClass("opened").find(".column-form").slideDown(150);t.find(".msg").html(n).show();return}var r=jQuery(this).clone();r.cpac_update_clone_id(e.attr("data-type"));jQuery(this).after(r);r.column_bind_toggle();r.column_bind_remove();r.column_bind_clone();r.column_bind_events();cpac_sortable();jQuery(document).trigger("column_add",r);return r};jQuery.fn.cpac_update_clone_id=function(e){var t=jQuery(this),n=t.attr("data-type"),r=jQuery('.columns-container[data-type="'+e+'"]').find(".cpac-columns"),i=jQuery(r).find('*[data-type="'+n+'"]').not(t),s=jQuery.map(i,function(e,t){return jQuery(e).attr("data-clone")?parseInt(jQuery(e).attr("data-clone"),10):0});s.sort();var o=Math.max.apply(null,s)+1;for(var u=0;u<=o;u++)if(-1===jQuery.inArray(u,s))break;if(0===u)return;var a=t.attr("data-clone"),f="";a&&(f="-"+a);t.attr("data-clone",u);t.find("input.clone").val(u);t.find("input.column-name").val(n+"-"+u);var l=t.find("input, select, label");jQuery(l).each(function(e,t){var r=n+"-"+u;jQuery(t).attr("name")&&jQuery(t).attr("name",jQuery(t).attr("name").replace(n+f,r));jQuery(t).attr("for")&&jQuery(t).attr("for",jQuery(t).attr("for").replace(n+f,r));jQuery(t).attr("id")&&jQuery(t).attr("id",jQuery(t).attr("id").replace(n+f,r))})};jQuery(document).bind("column_init column_change column_add",function(e,t){jQuery(t).cpac_bind_column_addon_events();jQuery(t).cpac_bind_container_addon_events()});jQuery.fn.cpac_bind_column_addon_events=function(){var e=jQuery(this),t=e.find("[data-toggle-id] label");t.click(function(){var t=jQuery(this).closest("td.input").data("toggle-id"),n=e.find('[data-indicator-id="'+t+'"]').removeClass("on"),r=jQuery("input",this).val();"on"==r&&n.addClass("on")})};jQuery.fn.cpac_bind_container_addon_events=function(){var e=jQuery(this),t=e.find("[data-indicator-id]");t.unbind("click").click(function(){var t=jQuery(this).data("indicator-id"),n=e.find('[data-toggle-id="'+t+'"] input');if(jQuery(this).hasClass("on")){jQuery(this).removeClass("on").addClass("off");n.filter("[value=off]").prop("checked",!0)}else{jQuery(this).removeClass("off").addClass("on");n.filter("[value=on]").prop("checked",!0)}})};
1
/*
2
* Fires when the dom is ready
3
*
4
+ */function cpac_importexport(){jQuery("#php-export-results textarea").on("focus, mouseup",function(){jQuery(this).select()}).select().focus()}function cpac_submit_form(){jQuery(".form-update a.submit-update").click(function(e){e.preventDefault();jQuery(this).closest(".columns-container").find(".cpac-columns form").submit()})}function cpac_create_column(e){var t=jQuery(".for-cloning-only .cpac-column",e).first().clone(),n=e.attr("data-type");if(t.length>0){t.cpac_update_clone_id(n);jQuery(".cpac-columns form",e).append(t);t.column_bind_toggle();t.column_bind_remove();t.column_bind_clone();t.column_bind_events();cpac_sortable();jQuery(document).trigger("column_add",t)}return t}function cpac_add_column(){jQuery("#cpac .add_column").click(function(e){var t=jQuery(this).closest(".columns-container"),n=cpac_create_column(t);n.addClass("opened").find(".column-form").slideDown(150,function(){jQuery("html, body").animate({scrollTop:n.offset().top-58},300)});e.preventDefault()})}function cpac_sidebar_feedback(){jQuery(function(e){var t=e(".sidebox#direct-feedback");t.find("#feedback-choice a.no").click(function(e){e.preventDefault();t.find("#feedback-choice").slideUp();t.find("#feedback-support").slideDown()});t.find("#feedback-choice a.yes").click(function(e){e.preventDefault();t.find("#feedback-choice").slideUp();t.find("#feedback-rate").slideDown()})})}function cpac_clear_input_defaults(){jQuery.fn.cleardefault=function(){return this.focus(function(){this.value==this.defaultValue&&(this.value="")}).blur(function(){this.value.length||(this.value=this.defaultValue)})};jQuery("#cpac-box-plugin_settings .addons input").cleardefault()}function cpac_help(){jQuery("#cpac a.help").click(function(e){e.preventDefault();var t=jQuery("#contextual-help-wrap");t.parent().show();jQuery('a[href="#tab-panel-cpac-'+jQuery(this).attr("data-help")+'"]',t).trigger("click");t.slideDown("fast",function(){t.focus()})})}function cpac_pointer(){jQuery(".cpac-pointer").each(function(){var e=jQuery(this),t=e.attr("rel"),n=e.attr("data-pos"),r={at:"left top",my:"right top",edge:"right",offset:"0 0"};"right"==n&&(r={at:"right middle",my:"left middle",edge:"left"});e.pointer({content:jQuery("#"+t).html(),position:r,pointerWidth:250,close:function(){e.removeClass("open")},pointerClass:"wp-pointer wp-pointer-"+r.edge});e.click(function(){e.hasClass("open")?e.removeClass("open"):e.addClass("open")});e.hover(function(){jQuery(this).pointer("open")},function(){e.hasClass("open")||jQuery(this).pointer("close")})})}function cpac_sortable(){jQuery("div.cpac-columns").each(function(){jQuery(this).hasClass("ui-sortable")?jQuery(this).sortable("refresh"):jQuery(this).sortable({items:".cpac-column"})})}function cpac_menu(){var e=jQuery("#cpac div.cpac-menu");e.find("a").click(function(e,t){var n=jQuery(this).attr("href");if(n){var r=n.replace("#cpac-box-","");jQuery(".cpac-menu a").removeClass("current");jQuery(".columns-container").hide();jQuery(this).addClass("current");var i=jQuery('.columns-container[data-type="'+r+'"]').show(),s=i.find(".cpac-columns");jQuery(document).trigger("cac_menu_change",s)}e.preventDefault()});e.find("a.current").trigger("click")}jQuery(document).ready(function(){if(jQuery("#cpac").length===0)return!1;cpac_pointer();cpac_submit_form();cpac_clear_input_defaults();cpac_sortable();cpac_menu();cpac_help();cpac_add_column();cpac_importexport();cpac_sidebar_feedback();jQuery(".cpac-column").each(function(e,t){jQuery(t).column_bind_toggle();jQuery(t).column_bind_remove();jQuery(t).column_bind_clone();jQuery(t).cpac_bind_container_addon_events()})});jQuery.fn.column_bind_toggle=function(){var e=jQuery(this);e.find("td.column_type a, td.column_edit, td.column_label a.toggle, td.column_label .edit-button").click(function(t){t.preventDefault();e.toggleClass("opened").find(".column-form").slideToggle(150);e.hasClass("events-binded")||e.column_bind_events();e.addClass("events-binded");jQuery(document).trigger("column_init",e)})};jQuery.fn.column_bind_remove=function(){jQuery(this).find(".remove-button").click(function(e){jQuery(this).closest(".cpac-column").column_remove();e.preventDefault()})};jQuery.fn.column_bind_clone=function(){jQuery(this).find(".clone-button").click(function(e){var t,n;e.preventDefault();t=jQuery(this).closest(".cpac-column");n=t.column_clone();typeof n!="undefined"&&n.removeClass("loading").hide().slideDown()})};jQuery.fn.cpac_column_refresh=function(){var e=jQuery(this);e.addClass("loading");e.find(".column-form").prepend('<span class="spinner" />');jQuery.post(ajaxurl,{plugin_id:"cpac",action:"cpac_column_refresh",column:jQuery(this).find("input.column-name").val(),formdata:jQuery(this).parents("form").serialize()},function(t){var n=jQuery("<div>"+t+"</div>").children();e.replaceWith(n);e=n;e.column_bind_toggle();e.column_bind_remove();e.column_bind_clone();e.column_bind_events();e.removeClass("loading").addClass("opened").find(".column-form").show();jQuery(document).trigger("column_change",e)})};jQuery.fn.column_bind_events=function(){var e=jQuery(this),t=e.closest(".columns-container "),n=t.attr("data-type"),r=e.find(".column_type select option:selected").val();e.find(".column_type select").change(function(){var i=jQuery("optgroup",this).children(":selected"),s=i.val(),o=i.text(),u=jQuery(this).next(".msg").hide(),a=t.find('.for-cloning-only .cpac-column[data-type="'+s+'"]');if(a.length)if(a.find(".is-disabled").length){u.html(a.find(".is-disabled").html()).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected")}else{if(typeof a.attr("data-clone")=="undefined"&&jQuery(".cpac-columns",t).find('[data-type="'+s+'"]').length){u.html(cpac_i18n.clone.replace("%s","<strong>"+o+"</strong>")).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected");return}var f=a.clone();f.addClass("opened").find(".column-form").show();f.find(".column-meta").replaceWith(e.find(".column-meta"));f.find(".column-form").replaceWith(e.find(".column-form"));f.cpac_update_clone_id(n);e.replaceWith(f);f.cpac_column_refresh()}});e.find(".column_label .input input").bind("keyup change",function(){var e=jQuery(this).val();jQuery(this).closest(".cpac-column").find("td.column_label .inner > a.toggle").text(e)});e.column_width_slider();var i=e.find(".column-meta span.width");i.on("update",function(){var t=e.find("input.width").val(),n=e.find("input.unit").filter(":checked").val();t>0?jQuery(this).text(t+n):jQuery(this).text("")});var s=e.find(".column_width .unit-select label");s.on("click",function(){e.find("span.unit").text(jQuery(this).find("input").val());e.column_width_slider();i.trigger("update")});var o=e.find("input.width").on("keyup",function(){e.column_width_slider();jQuery(this).trigger("validate");i.trigger("update")}).on("validate",function(){var e=o.val(),t=jQuery.trim(e);jQuery.isNumeric(t)||(t=t.replace(/\D/g,""));t.length>3&&(t=t.substring(0,3));t<=0&&(t="");t!==e&&o.val(t)});e.find(".column_image_size label.custom-size").click(function(){var e=jQuery(this).closest(".input");if(jQuery(this).hasClass("image-size-custom")){jQuery(".custom-size-w",e).removeClass("hidden");jQuery(".custom-size-h",e).removeClass("hidden")}else{jQuery(".custom-size-w",e).addClass("hidden");jQuery(".custom-size-h",e).addClass("hidden")}});e.find(".column-form .label label, .column-form .label .info").hover(function(){jQuery(this).parents(".label").find("p.description").show()},function(){jQuery(this).parents(".label").find("p.description").hide()});e.find(".column_type select").val()=="column-meta"&&e.find(".column_field_type select").change(function(){e.cpac_column_refresh()})};jQuery.fn.column_remove=function(){jQuery(this).addClass("deleting").animate({opacity:0,height:0},350,function(e){jQuery(this).remove()})};jQuery.fn.column_width_slider=function(){var e=jQuery(this).find(".column_width"),t=e.find("input.width"),n=e.find("input.unit"),r=n.filter(":checked").val(),i=t.val(),s=e.find(".width-slider"),o=jQuery(this).find(".column-meta span.width");"%"==r&&i>100&&(i=100);t.val(i);s.slider({range:"min",min:0,max:"%"==r?100:500,value:i,slide:function(e,n){t.val(n.value);o.trigger("update");t.trigger("validate")}})};jQuery.fn.column_clone=function(){var e=jQuery(this).closest(".columns-container"),t=jQuery(this);if(typeof t.attr("data-clone")=="undefined"){var n=cpac_i18n.clone.replace("%s","<strong>"+t.find(".column_label .toggle").text()+"</strong>");t.addClass("opened").find(".column-form").slideDown(150);t.find(".msg").html(n).show();return}var r=jQuery(this).clone();r.cpac_update_clone_id(e.attr("data-type"));jQuery(this).after(r);r.column_bind_toggle();r.column_bind_remove();r.column_bind_clone();r.column_bind_events();cpac_sortable();jQuery(document).trigger("column_add",r);return r};jQuery.fn.cpac_update_clone_id=function(e){var t=jQuery(this),n=t.attr("data-type"),r=jQuery('.columns-container[data-type="'+e+'"]').find(".cpac-columns"),i=jQuery(r).find('*[data-type="'+n+'"]').not(t),s=jQuery.map(i,function(e,t){return jQuery(e).attr("data-clone")?parseInt(jQuery(e).attr("data-clone"),10):0});s.sort();var o=Math.max.apply(null,s)+1;for(var u=0;u<=o;u++)if(-1===jQuery.inArray(u,s))break;if(0===u)return;var a=t.attr("data-clone"),f="";a&&(f="-"+a);t.attr("data-clone",u);t.find("input.clone").val(u);t.find("input.column-name").val(n+"-"+u);var l=t.find("input, select, label");jQuery(l).each(function(e,t){var r=n+"-"+u;jQuery(t).attr("name")&&jQuery(t).attr("name",jQuery(t).attr("name").replace(n+f,r));jQuery(t).attr("for")&&jQuery(t).attr("for",jQuery(t).attr("for").replace(n+f,r));jQuery(t).attr("id")&&jQuery(t).attr("id",jQuery(t).attr("id").replace(n+f,r))})};jQuery(document).bind("column_init column_change column_add",function(e,t){jQuery(t).cpac_bind_column_addon_events();jQuery(t).cpac_bind_container_addon_events()});jQuery.fn.cpac_bind_column_addon_events=function(){var e=jQuery(this),t=e.find("[data-toggle-id] label");t.click(function(){var t=jQuery(this).closest("td.input").data("toggle-id"),n=e.find('[data-indicator-id="'+t+'"]').removeClass("on"),r=jQuery("input",this).val();"on"==r&&n.addClass("on")})};jQuery.fn.cpac_bind_container_addon_events=function(){var e=jQuery(this),t=e.find("[data-indicator-id]");t.unbind("click").click(function(){var t=jQuery(this).data("indicator-id"),n=e.find('[data-toggle-id="'+t+'"] input');if(jQuery(this).hasClass("on")){jQuery(this).removeClass("on").addClass("off");n.filter("[value=off]").prop("checked",!0)}else{jQuery(this).removeClass("off").addClass("on");n.filter("[value=on]").prop("checked",!0)}})};
assets/less/admin-column.less CHANGED
@@ -429,6 +429,46 @@ h2.cpac-nav-tab-wrapper {
429
}
430
}
431
}
432
}
433
434
&.input {
@@ -456,20 +496,47 @@ h2.cpac-nav-tab-wrapper {
456
}
457
458
&.column_width {
459
- div.description {
460
- font-size: 11px;
461
- width: 12%;
462
- float: left;
463
- text-align: middle;
464
- }
465
- div.input-width-range {
466
- float: left;
467
position: relative;
468
- width: 87%;
469
- margin-top: 4px;
470
471
- .ui-slider-handle {
472
- cursor:ew-resize;
473
}
474
}
475
}
429
}
430
}
431
}
432
+
433
+ .info {
434
+ position: absolute;
435
+ top: 0;
436
+ left: 0;
437
+ width: 100%;
438
+ height: 100%;
439
+ z-index: 1;
440
+
441
+ &:before {
442
+ position: absolute;
443
+ z-index: 1;
444
+ right: 10px;
445
+ top: 50%;
446
+ margin-top: -7px;
447
+ content: '';
448
+ display: block;
449
+ border-radius: 32px;
450
+ border: 1px solid #E6E6E6;
451
+ width: 12px;
452
+ height: 12px;
453
+ }
454
+
455
+ &:after {
456
+ position: absolute;
457
+ z-index: 1;
458
+ right: 10px;
459
+ top: 50%;
460
+ margin-top: -6px;
461
+ content: '?';
462
+ display: block;
463
+ width: 14px;
464
+ height: 14px;
465
+ color: #E6E6E6;
466
+ font: bold 10px Arial;
467
+ text-align: center;
468
+ vertical-align: middle;
469
+ line-height: 14px;
470
+ }
471
+ }
472
}
473
474
&.input {
496
}
497
498
&.column_width {
499
+
500
+ .input {
501
position: relative;
502
503
+ div.description {
504
+ font-size: 11px;
505
+ width: 54px;
506
+ position: absolute;
507
+ left: 10px;
508
+ text-align: middle;
509
+
510
+ input {
511
+ background: #efefef;
512
+ border: none;
513
+ height: 20px;
514
+ line-height: 20px;
515
+ text-align: right;
516
+ width: 36px;
517
+ font-size: 12px;
518
+ }
519
+ }
520
+ div.width-slider {
521
+ margin-left: 60px;
522
+ margin-right: 100px;
523
+ position: relative;
524
+ margin-top: 4px;
525
+
526
+ .ui-slider-handle {
527
+ cursor:ew-resize;
528
+ }
529
+ }
530
+ div.unit-select {
531
+ position: absolute;
532
+ top: 8px;
533
+ right: 10px;
534
+ width: 90px;
535
+ text-align: right;
536
+
537
+ label {
538
+ padding-left: 5px;
539
+ }
540
}
541
}
542
}
classes/column.php CHANGED
@@ -82,6 +82,13 @@ class CPAC_Column {
82
$options['date_format'] = trim( $options['date_format'] );
83
}
84
85
return $options;
86
}
87
@@ -160,6 +167,7 @@ class CPAC_Column {
160
'before' => '', // Before field
161
'after' => '', // After field
162
'width' => null, // Width for this column.
163
'state' => 'off' // Active state for this column.
164
);
165
@@ -892,20 +900,29 @@ class CPAC_Column {
892
return false;
893
}
894
895
- // some plugins store dates in a jquery timestamp format, format is in ms since The Epoch
896
// See http://api.jqueryui.com/datepicker/#utility-formatDate
897
// credits: nmarks
898
- if ( is_numeric( $date ) && 13 === strlen( trim( $date ) ) ) {
899
- $date = substr( $date, 0, -3 );
900
- }
901
902
- // Parse with strtotime if it's:
903
- // - not numeric ( like a unixtimestamp )
904
- // - date format: yyyymmdd ( format used by ACF ) must start with 19xx or 20xx and is 8 long
905
906
- // @todo: in theory a numeric string of 8 can also be a unixtimestamp.
907
- // we need to replace this with an option to mark a date as unixtimestamp.
908
- if ( ! is_numeric( $date ) || ( is_numeric( $date ) && strlen( trim( $date ) ) == 8 && ( strpos( $date, '20' ) === 0 || strpos( $date, '19' ) === 0 ) ) ) {
909
$date = strtotime( $date );
910
}
911
@@ -1217,7 +1234,7 @@ class CPAC_Column {
1217
<div class="meta">
1218
1219
<span title="<?php echo esc_attr( __( 'width', 'cpac' ) ); ?>" class="width" data-indicator-id="">
1220
- <?php echo ! empty( $this->options->width ) ? $this->options->width . '%' : ''; ?>
1221
</span>
1222
1223
<?php
@@ -1279,11 +1296,22 @@ class CPAC_Column {
1279
<tr class="column_width">
1280
<?php $this->label_view( __( 'Width', 'cpac' ), '', 'width' ); ?>
1281
<td class="input">
1282
- <div class="description width-decription" title="<?php _e( 'default', 'cpac' ); ?>">
1283
- <?php echo $this->options->width > 0 ? $this->options->width . '%' : __( 'default', 'cpac' ); ?>
1284
</div>
1285
- <div class="input-width-range"></div>
1286
- <input type="hidden" class="input-width" name="<?php $this->attr_name( 'width' ); ?>" id="<?php $this->attr_id( 'width' ); ?>" value="<?php echo $this->options->width; ?>" />
1287
1288
</td>
1289
</tr><!--.column_width-->
82
$options['date_format'] = trim( $options['date_format'] );
83
}
84
85
+ if ( isset( $options['width'] ) ) {
86
+ $options['width'] = trim( $options['width'] );
87
+ if ( ! is_numeric( $options['width'] ) ) {
88
+ $options['width'] = '';
89
+ }
90
+ }
91
+
92
return $options;
93
}
94
167
'before' => '', // Before field
168
'after' => '', // After field
169
'width' => null, // Width for this column.
170
+ 'width_unit'=> '%', // Unit for width; pecentage (%) or pixels (px).
171
'state' => 'off' // Active state for this column.
172
);
173
900
return false;
901
}
902
903
+ // some plugins store dates in a jquery timestamp format, format is in ms since The Epoch.
904
// See http://api.jqueryui.com/datepicker/#utility-formatDate
905
// credits: nmarks
906
+ if ( is_numeric( $date ) ) {
907
+ $length = strlen( trim( $date ) );
908
+
909
+ // Dates before / around September 8th, 2001 are saved as 9 numbers * 1000 resulting in 12 numbers to store the time.
910
+ // Dates after September 8th are saved as 10 numbers * 1000, resulting in 13 numbers.
911
+ // For example the ACF Date and Time Picker uses this format.
912
+ // credits: Ben C
913
+ if ( 12 === $length || 13 === $length ) {
914
+ $date = round( $date / 1000 ); // remove the ms
915
+ }
916
917
+ // Date format: yyyymmdd ( often used by ACF ) must start with 19xx or 20xx and is 8 long
918
+ // @todo: in theory a numeric string of 8 can also be a unixtimestamp; no conversion would be needed
919
+ if ( 8 === $length && ( strpos( $date, '20' ) === 0 || strpos( $date, '19' ) === 0 ) ) {
920
+ $date = strtotime( $date );
921
+ }
922
+ }
923
924
+ // Parse with strtotime if it's not numeric
925
+ else {
926
$date = strtotime( $date );
927
}
928
1234
<div class="meta">
1235
1236
<span title="<?php echo esc_attr( __( 'width', 'cpac' ) ); ?>" class="width" data-indicator-id="">
1237
+ <?php echo ! empty( $this->options->width ) ? $this->options->width . $this->options->width_unit : ''; ?>
1238
</span>
1239
1240
<?php
1296
<tr class="column_width">
1297
<?php $this->label_view( __( 'Width', 'cpac' ), '', 'width' ); ?>
1298
<td class="input">
1299
+ <div class="description" title="<?php _e( 'default', 'cpac' ); ?>">
1300
+ <input class="width" type="text" placeholder="<?php _e( 'auto', 'cpac' ); ?>" name="<?php $this->attr_name( 'width' ); ?>" id="<?php $this->attr_id( 'width' ); ?>" value="<?php echo $this->options->width; ?>" />
1301
+ <span class="unit"><?php echo $this->options->width_unit; ?></span>
1302
+ </div>
1303
+ <div class="width-slider"></div>
1304
+
1305
+ <div class="unit-select">
1306
+ <label for="<?php $this->attr_id( 'width_unit_px' ); ?>">
1307
+ <input type="radio" class="unit" name="<?php $this->attr_name( 'width_unit' ); ?>" id="<?php $this->attr_id( 'width_unit_px' ); ?>" value="px"<?php checked( $this->options->width_unit, 'px' ); ?>/>
1308
+ px
1309
+ </label>
1310
+ <label for="<?php $this->attr_id( 'width_unit_perc' ); ?>">
1311
+ <input type="radio" class="unit" name="<?php $this->attr_name( 'width_unit' ); ?>" id="<?php $this->attr_id( 'width_unit_perc' ); ?>" value="%"<?php checked( $this->options->width_unit, '%' ); ?>/>
1312
+ %
1313
+ </label>
1314
</div>
1315
1316
</td>
1317
</tr><!--.column_width-->
classes/column/custom-field.php CHANGED
@@ -162,7 +162,9 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
162
if ( $ids = $this->get_ids_from_meta( $meta ) ) {
163
foreach ( (array) $ids as $id ) {
164
165
- if ( ! is_numeric( $id ) ) continue;
166
167
$link = get_edit_post_link( $id );
168
if ( $title = get_the_title( $id ) )
@@ -395,14 +397,14 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
395
<?php endforeach; ?>
396
</select>
397
<?php else : ?>
398
- <?php _e( 'No custom fields available.', 'cpac' ); ?>
399
<?php endif; ?>
400
401
</td>
402
</tr>
403
404
<tr class="column_field_type">
405
- <?php $this->label_view( __( "Field Type", 'cpac' ), __( 'This will determine how the value will be displayed.', 'cpac' ), 'field_type' ); ?>
406
<td class="input">
407
<select name="<?php $this->attr_name( 'field_type' ); ?>" id="<?php $this->attr_id( 'field_type' ); ?>">
408
<?php foreach ( $this->get_custom_field_types() as $fieldkey => $fieldtype ) : ?>
162
if ( $ids = $this->get_ids_from_meta( $meta ) ) {
163
foreach ( (array) $ids as $id ) {
164
165
+ if ( ! is_numeric( $id ) ) {
166
+ continue;
167
+ }
168
169
$link = get_edit_post_link( $id );
170
if ( $title = get_the_title( $id ) )
397
<?php endforeach; ?>
398
</select>
399
<?php else : ?>
400
+ <?php _e( 'No custom fields available.', 'cpac' ); ?> <?php printf( __( 'Please create a %s item first.', 'cpac' ), '<em>' . $this->storage_model->singular_label . '</em>' ); ?>
401
<?php endif; ?>
402
403
</td>
404
</tr>
405
406
<tr class="column_field_type">
407
+ <?php $this->label_view( __( "Field Type", 'cpac' ), __( 'This will determine how the value will be displayed.', 'cpac' ) . '<em>' . __( 'Type', 'cpac' ) . ': ' . $this->options->field_type . '</em>', 'field_type' ); ?>
408
<td class="input">
409
<select name="<?php $this->attr_name( 'field_type' ); ?>" id="<?php $this->attr_id( 'field_type' ); ?>">
410
<?php foreach ( $this->get_custom_field_types() as $fieldkey => $fieldtype ) : ?>
classes/column/media/attached-to.php ADDED
@@ -0,0 +1,44 @@
1
+ <?php
2
+ /**
3
+ * CPAC_Column_Attached_To
4
+ *
5
+ * @since 2.0
6
+ */
7
+ class CPAC_Column_Attached_To extends CPAC_Column {
8
+
9
+ /**
10
+ * @see CPAC_Column::init()
11
+ * @since 2.2.1
12
+ */
13
+ public function init() {
14
+
15
+ parent::init();
16
+
17
+ // Properties
18
+ $this->properties['type'] = 'column-attached_to';
19
+ $this->properties['label'] = __( 'Attached to post', 'cpac' );
20
+ }
21
+
22
+ /**
23
+ * @see CPAC_Column::get_value()
24
+ * @since 2.0
25
+ */
26
+ public function get_value( $id ) {
27
+ $value = false;
28
+ if ( $attached_to = $this->get_raw_value() ) {
29
+ $value = get_the_title( $attached_to );
30
+ if ( $edit_link = get_edit_post_link( $id ) ) {
31
+ $value = '<a href="' . $edit_link . '">' . $value . '</a>';
32
+ }
33
+ }
34
+ return $value;
35
+ }
36
+
37
+ /**
38
+ * @see CPAC_Column::get_value()
39
+ * @since 2.0
40
+ */
41
+ public function get_raw_value( $id ) {
42
+ return get_post_field( $id, 'post_parent' );
43
+ }
44
+ }
classes/column/post/attachment.php CHANGED
@@ -16,7 +16,7 @@ class CPAC_Column_Post_Attachment extends CPAC_Column {
16
17
// Properties
18
$this->properties['type'] = 'column-attachment';
19
- $this->properties['label'] = __( 'Attachment', 'cpac' );
20
21
// Options
22
$this->options['image_size'] = '';
@@ -28,18 +28,32 @@ class CPAC_Column_Post_Attachment extends CPAC_Column {
28
* @see CPAC_Column::get_value()
29
* @since 2.0
30
*/
31
- function get_value( $post_id ) {
32
33
- $attachment_ids = $this->get_raw_value( $post_id );
34
35
- return implode( $this->get_thumbnails( $attachment_ids, $this->options ) );
36
}
37
38
/**
39
* @see CPAC_Column::get_raw_value()
40
* @since 2.0.3
41
*/
42
- function get_raw_value( $post_id ) {
43
44
return get_posts( array(
45
'post_type' => 'attachment',
@@ -54,7 +68,7 @@ class CPAC_Column_Post_Attachment extends CPAC_Column {
54
* @see CPAC_Column::display_settings()
55
* @since 2.0
56
*/
57
- function display_settings() {
58
59
$this->display_field_preview_size();
60
}
16
17
// Properties
18
$this->properties['type'] = 'column-attachment';
19
+ $this->properties['label'] = __( 'Attachments', 'cpac' );
20
21
// Options
22
$this->options['image_size'] = '';
28
* @see CPAC_Column::get_value()
29
* @since 2.0
30
*/
31
+ public function get_value( $post_id ) {
32
33
+ $values = (array) $this->get_raw_value( $post_id );
34
35
+ foreach ( $values as $index => $value ) {
36
+ if ( ! $value ) {
37
+ unset( $values[ $index ] );
38
+ continue;
39
+ }
40
+
41
+ $image = implode( $this->get_thumbnails( $value, array(
42
+ 'image_size' => $this->options->image_size,
43
+ 'image_size_w' => $this->options->image_size_w,
44
+ 'image_size_h' => $this->options->image_size_h,
45
+ ) ) );
46
+
47
+ $values[ $index ] = '<div class="cacie-item" data-cacie-id="' . esc_attr( $value ) . '">' . $image . '</div>';
48
+ }
49
+ return implode( '', $values );
50
}
51
52
/**
53
* @see CPAC_Column::get_raw_value()
54
* @since 2.0.3
55
*/
56
+ public function get_raw_value( $post_id ) {
57
58
return get_posts( array(
59
'post_type' => 'attachment',
68
* @see CPAC_Column::display_settings()
69
* @since 2.0
70
*/
71
+ public function display_settings() {
72
73
$this->display_field_preview_size();
74
}
classes/column/post/content.php ADDED
@@ -0,0 +1,52 @@
1
+ <?php
2
+ /**
3
+ * CPAC_Column_Post_Content
4
+ *
5
+ * @since 2.4
6
+ */
7
+ class CPAC_Column_Post_Content extends CPAC_Column {
8
+
9
+ /**
10
+ * @see CPAC_Column::init()
11
+ * @since 2.4
12
+ */
13
+ public function init() {
14
+
15
+ parent::init();
16
+
17
+ // Properties
18
+ $this->properties['type'] = 'column-content';
19
+ $this->properties['label'] = __( 'Content', 'cpac' );
20
+ $this->properties['object_property'] = 'post_content';
21
+
22
+ // Options
23
+ $this->options['excerpt_length'] = 30;
24
+ }
25
+
26
+ /**
27
+ * @see CPAC_Column::get_value()
28
+ * @since 2.4
29
+ */
30
+ public function get_value( $post_id ) {
31
+
32
+ return $this->get_shortened_string( $this->get_raw_value( $post_id ), $this->options->excerpt_length );
33
+ }
34
+
35
+ /**
36
+ * @see CPAC_Column::get_raw_value()
37
+ * @since 2.4
38
+ */
39
+ public function get_raw_value( $post_id ) {
40
+
41
+ return get_post_field( 'post_content', $post_id, 'raw' );
42
+ }
43
+
44
+ /**
45
+ * @see CPAC_Column::display_settings()
46
+ * @since 2.4
47
+ */
48
+ public function display_settings() {
49
+
50
+ $this->display_field_excerpt_length();
51
+ }
52
+ }
classes/column/post/date-published.php ADDED
@@ -0,0 +1,60 @@
1
+ <?php
2
+ /**
3
+ * @since 2.4
4
+ */
5
+ class CPAC_Column_Post_Date_Published extends CPAC_Column {
6
+
7
+ /**
8
+ * @see CPAC_Column::init()
9
+ * @since 2.4
10
+ */
11
+ public function init() {
12
+
13
+ parent::init();
14
+
15
+ // Properties
16
+ $this->properties['type'] = 'column-date_published';
17
+ $this->properties['label'] = __( 'Date Published' );
18
+
19
+ // Options
20
+ $this->options['date_format'] = '';
21
+ }
22
+
23
+ /**
24
+ * @see CPAC_Column::get_value()
25
+ * @since 2.4
26
+ */
27
+ public function get_value( $post_id ) {
28
+
29
+ $raw_value = $this->get_raw_value( $post_id );
30
+
31
+ if ( ! $this->get_option( 'date_format' ) ) {
32
+ return $this->get_date( $raw_value ) . ' ' . $this->get_time( $raw_value );
33
+ }
34
+
35
+ return $this->get_date( $raw_value, $this->get_option( 'date_format' ) );
36
+ }
37
+
38
+ /**
39
+ * @see CPAC_Column::get_raw_value()
40
+ * @since 2.4
41
+ */
42
+ public function get_raw_value( $post_id ) {
43
+
44
+ $post = get_post( $post_id );
45
+
46
+ return $post->post_date;
47
+ }
48
+
49
+ /**
50
+ * @see CPAC_Column::display_settings()
51
+ * @since 2.4
52
+ */
53
+ public function display_settings() {
54
+
55
+ parent::display_settings();
56
+
57
+ $this->display_field_date_format();
58
+ }
59
+
60
+ }
classes/column/post/excerpt.php CHANGED
@@ -27,7 +27,7 @@ class CPAC_Column_Post_Excerpt extends CPAC_Column {
27
* @see CPAC_Column::get_value()
28
* @since 2.0
29
*/
30
- function get_value( $post_id ) {
31
32
return $this->get_post_excerpt( $post_id, $this->options->excerpt_length );
33
}
@@ -36,7 +36,7 @@ class CPAC_Column_Post_Excerpt extends CPAC_Column {
36
* @see CPAC_Column::get_raw_value()
37
* @since 2.0.3
38
*/
39
- function get_raw_value( $post_id ) {
40
41
return get_post_field( 'post_excerpt', $post_id, 'raw' );
42
}
@@ -45,7 +45,7 @@ class CPAC_Column_Post_Excerpt extends CPAC_Column {
45
* @see CPAC_Column::display_settings()
46
* @since 2.0
47
*/
48
- function display_settings() {
49
50
$this->display_field_excerpt_length();
51
}
27
* @see CPAC_Column::get_value()
28
* @since 2.0
29
*/
30
+ public function get_value( $post_id ) {
31
32
return $this->get_post_excerpt( $post_id, $this->options->excerpt_length );
33
}
36
* @see CPAC_Column::get_raw_value()
37
* @since 2.0.3
38
*/
39
+ public function get_raw_value( $post_id ) {
40
41
return get_post_field( 'post_excerpt', $post_id, 'raw' );
42
}
45
* @see CPAC_Column::display_settings()
46
* @since 2.0
47
*/
48
+ public function display_settings() {
49
50
$this->display_field_excerpt_length();
51
}
classes/column/post/shortcodes.php ADDED
@@ -0,0 +1,50 @@
1
+ <?php
2
+ /**
3
+ * Display used shortcodes
4
+ *
5
+ * @since 2.3.5
6
+ */
7
+ class CPAC_Column_Post_Shortcodes extends CPAC_Column {
8
+
9
+ /**
10
+ * @see CPAC_Column::init()
11
+ * @since 2.3.4
12
+ */
13
+ public function init() {
14
+
15
+ parent::init();
16
+
17
+ // Properties
18
+ $this->properties['type'] = 'column-shortcode';
19
+ $this->properties['label'] = __( 'Shortcodes', 'cpac' );
20
+ }
21
+
22
+ /**
23
+ * @see CPAC_Column::get_value()
24
+ * @since 2.3.5
25
+ */
26
+ public function get_value( $post_id ) {
27
+ if ( ! ( $shortcodes = $this->get_raw_value( $post_id ) ) ) {
28
+ return false;
29
+ }
30
+ return '[' . implode( '] [', $shortcodes ) . ']';
31
+ }
32
+
33
+ /**
34
+ * @see CPAC_Column::get_raw_value()
35
+ * @since 2.3.5
36
+ */
37
+ public function get_raw_value( $post_id ) {
38
+
39
+ $content = get_post_field( 'post_content', $post_id );
40
+ $pattern = get_shortcode_regex();
41
+
42
+ preg_match_all( "/$pattern/s", $content, $matches );
43
+
44
+ if ( ! isset( $matches[2] ) ) {
45
+ return false;
46
+ }
47
+
48
+ return $matches[2];
49
+ }
50
+ }
classes/settings.php CHANGED
@@ -65,6 +65,7 @@ class CPAC_Settings {
65
*/
66
$settings_urls = apply_filters( 'cac/settings/settings_urls', array(
67
'admin' => admin_url( 'options-general.php?page=codepress-admin-columns' ),
68
'info' => admin_url( 'options-general.php?page=codepress-admin-columns&info=' ),
69
'upgrade' => admin_url( 'options-general.php?page=cpac-upgrade' )
70
), $this );
65
*/
66
$settings_urls = apply_filters( 'cac/settings/settings_urls', array(
67
'admin' => admin_url( 'options-general.php?page=codepress-admin-columns' ),
68
+ 'settings' => admin_url( 'options-general.php?page=codepress-admin-columns&tab=settings' ),
69
'info' => admin_url( 'options-general.php?page=codepress-admin-columns&info=' ),
70
'upgrade' => admin_url( 'options-general.php?page=cpac-upgrade' )
71
), $this );
classes/storage_model.php CHANGED
@@ -12,6 +12,11 @@ abstract class CPAC_Storage_Model {
12
*/
13
public $label;
14
15
/**
16
* Identifier for Storage Model; Posttype etc.
17
*
12
*/
13
public $label;
14
15
+ /**
16
+ * @since 2.3.5
17
+ */
18
+ public $singular_label;
19
+
20
/**
21
* Identifier for Storage Model; Posttype etc.
22
*
classes/storage_model/comment.php CHANGED
@@ -11,6 +11,7 @@ class CPAC_Storage_Model_Comment extends CPAC_Storage_Model {
11
12
$this->key = 'wp-comments';
13
$this->label = __( 'Comments' );
14
$this->type = 'comment';
15
$this->meta_type = 'comment';
16
$this->page = 'edit-comments';
@@ -97,14 +98,13 @@ class CPAC_Storage_Model_Comment extends CPAC_Storage_Model {
97
*/
98
public function manage_value( $column_name, $comment_id ) {
99
100
- $value = '';
101
-
102
- // get column instance
103
- if ( $column = $this->get_column_by_name( $column_name ) ) {
104
- $value = $column->get_value( $comment_id );
105
}
106
107
- // filters
108
$value = apply_filters( "cac/column/value", $value, $comment_id, $column, $this->key );
109
$value = apply_filters( "cac/column/value/{$this->type}", $value, $comment_id, $column, $this->key );
110
11
12
$this->key = 'wp-comments';
13
$this->label = __( 'Comments' );
14
+ $this->singular_label = __( 'Comment' );
15
$this->type = 'comment';
16
$this->meta_type = 'comment';
17
$this->page = 'edit-comments';
98
*/
99
public function manage_value( $column_name, $comment_id ) {
100
101
+ if ( ! ( $column = $this->get_column_by_name( $column_name ) ) ) {
102
+ return false;
103
}
104
105
+ $value = $column->get_value( $comment_id );
106
+
107
+ // hook
108
$value = apply_filters( "cac/column/value", $value, $comment_id, $column, $this->key );
109
$value = apply_filters( "cac/column/value/{$this->type}", $value, $comment_id, $column, $this->key );
110
classes/storage_model/link.php CHANGED
@@ -9,11 +9,12 @@ class CPAC_Storage_Model_Link extends CPAC_Storage_Model {
9
*/
10
function __construct() {
11
12
- $this->key = 'wp-links';
13
- $this->label = __( 'Links' );
14
- $this->type = 'link';
15
- $this->page = 'link-manager';
16
- $this->menu_type = 'other';
17
18
// headings
19
add_filter( "manage_{$this->page}_columns", array( $this, 'add_headings' ), 100 );
@@ -67,13 +68,12 @@ class CPAC_Storage_Model_Link extends CPAC_Storage_Model {
67
*/
68
public function manage_value( $column_name, $link_id ) {
69
70
- $value = '';
71
-
72
- // get column instance
73
- if ( $column = $this->get_column_by_name( $column_name ) ) {
74
- $value = $column->get_value( $link_id );
75
}
76
77
// add hook
78
$value = apply_filters( "cac/column/value", $value, $link_id, $column, $this->key );
79
$value = apply_filters( "cac/column/value/{$this->type}", $value, $link_id, $column, $this->key );
9
*/
10
function __construct() {
11
12
+ $this->key = 'wp-links';
13
+ $this->label = __( 'Links' );
14
+ $this->singular_label = __( 'Link' );
15
+ $this->type = 'link';
16
+ $this->page = 'link-manager';
17
+ $this->menu_type = 'other';
18
19
// headings
20
add_filter( "manage_{$this->page}_columns", array( $this, 'add_headings' ), 100 );
68
*/
69
public function manage_value( $column_name, $link_id ) {
70
71
+ if ( ! ( $column = $this->get_column_by_name( $column_name ) ) ) {
72
+ return false;
73
}
74
75
+ $value = $column->get_value( $link_id );
76
+
77
// add hook
78
$value = apply_filters( "cac/column/value", $value, $link_id, $column, $this->key );
79
$value = apply_filters( "cac/column/value/{$this->type}", $value, $link_id, $column, $this->key );
classes/storage_model/media.php CHANGED
@@ -9,13 +9,14 @@ class CPAC_Storage_Model_Media extends CPAC_Storage_Model {
9
*/
10
function __construct() {
11
12
- $this->key = 'wp-media';
13
- $this->label = __( 'Media Library' );
14
- $this->type = 'media';
15
- $this->meta_type = 'post';
16
- $this->page = 'upload';
17
- $this->post_type = 'attachment';
18
- $this->menu_type = 'other';
19
20
// headings
21
// Increased the priority to overrule 3th party plugins such as Media Tags
@@ -85,13 +86,12 @@ class CPAC_Storage_Model_Media extends CPAC_Storage_Model {
85
*/
86
public function manage_value( $column_name, $media_id ) {
87
88
- $value = '';
89
-
90
- // get column instance
91
- if ( $column = $this->get_column_by_name( $column_name ) ) {
92
- $value = $column->get_value( $media_id );
93
}
94
95
// add hook
96
$value = apply_filters( "cac/column/value", $value, $media_id, $column, $this->key );
97
$value = apply_filters( "cac/column/value/{$this->type}", $value, $media_id, $column, $this->key );
9
*/
10
function __construct() {
11
12
+ $this->key = 'wp-media';
13
+ $this->label = __( 'Media Library' );
14
+ $this->singular_label = __( 'Media' );
15
+ $this->type = 'media';
16
+ $this->meta_type = 'post';
17
+ $this->page = 'upload';
18
+ $this->post_type = 'attachment';
19
+ $this->menu_type = 'other';
20
21
// headings
22
// Increased the priority to overrule 3th party plugins such as Media Tags
86
*/
87
public function manage_value( $column_name, $media_id ) {
88
89
+ if ( ! ( $column = $this->get_column_by_name( $column_name ) ) ) {
90
+ return false;
91
}
92
93
+ $value = $column->get_value( $media_id );
94
+
95
// add hook
96
$value = apply_filters( "cac/column/value", $value, $media_id, $column, $this->key );
97
$value = apply_filters( "cac/column/value/{$this->type}", $value, $media_id, $column, $this->key );
classes/storage_model/post.php CHANGED
@@ -2,6 +2,10 @@
2
3
class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
4
5
/**
6
* Constructor
7
*
@@ -9,13 +13,16 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
9
*/
10
function __construct( $post_type ) {
11
12
- $this->key = $post_type;
13
- $this->label = $this->get_label();
14
- $this->type = 'post';
15
- $this->meta_type = 'post';
16
- $this->page = 'edit';
17
- $this->post_type = $post_type;
18
- $this->menu_type = 'post';
19
20
// Headings
21
@@ -37,6 +44,26 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
37
parent::__construct();
38
}
39
40
/**
41
* @since 2.2.1
42
*/
@@ -109,19 +136,6 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
109
return $is_columns_screen;
110
}
111
112
- /**
113
- * Get Label
114
- *
115
- * @since 2.0
116
- *
117
- * @return string Singular posttype name
118
- */
119
- private function get_label() {
120
- $posttype_obj = get_post_type_object( $this->key );
121
-
122
- return $posttype_obj->labels->name;
123
- }
124
-
125
/**
126
* Get WP default supported admin columns per post type.
127
*
@@ -183,6 +197,10 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
183
*/
184
public function manage_value( $column_name, $post_id ) {
185
186
global $post;
187
188
// Setup post data for current post
@@ -190,17 +208,12 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
190
$post = get_post( $post_id );
191
setup_postdata( $post );
192
193
- $value = '';
194
195
- // Set column value
196
- if ( $column = $this->get_column_by_name( $column_name ) ) {
197
- $value = $column->get_value( $post_id );
198
- }
199
-
200
- // Filters
201
$value = apply_filters( "cac/column/value", $value, $post_id, $column, $this->key );
202
$value = apply_filters( "cac/column/value/{$this->type}", $value, $post_id, $column, $this->key );
203
204
// Reset query to old post
205
$post = $post_old;
206
2
3
class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
4
5
+ public $post_type;
6
+
7
+ private $post_type_object;
8
+
9
/**
10
* Constructor
11
*
13
*/
14
function __construct( $post_type ) {
15
16
+ $this->set_post_type( $post_type );
17
+
18
+ $this->key = $post_type;
19
+ $this->post_type = $post_type;
20
+ $this->label = $this->post_type_object->labels->name;
21
+ $this->singular_label = $this->post_type_object->labels->singular_name;
22
+ $this->type = 'post';
23
+ $this->meta_type = 'post';
24
+ $this->page = 'edit';
25
+ $this->menu_type = 'post';
26
27
// Headings
28
44
parent::__construct();
45
}
46
47
+ /**
48
+ * Set posttype
49
+ *
50
+ * @since 2.3.5
51
+ */
52
+ public function get_post_type() {
53
+
54
+ return $this->post_type;
55
+ }
56
+
57
+ /**
58
+ * Set posttype
59
+ *
60
+ * @since 2.3.5
61
+ */
62
+ private function set_post_type( $post_type ) {
63
+
64
+ $this->post_type_object = get_post_type_object( $post_type );
65
+ }
66
+
67
/**
68
* @since 2.2.1
69
*/
136
return $is_columns_screen;
137
}
138
139
/**
140
* Get WP default supported admin columns per post type.
141
*
197
*/
198
public function manage_value( $column_name, $post_id ) {
199
200
+ if ( ! ( $column = $this->get_column_by_name( $column_name ) ) ) {
201
+ return false;
202
+ }
203
+
204
global $post;
205
206
// Setup post data for current post
208
$post = get_post( $post_id );
209
setup_postdata( $post );
210
211
+ $value = $column->get_value( $post_id );
212
213
$value = apply_filters( "cac/column/value", $value, $post_id, $column, $this->key );
214
$value = apply_filters( "cac/column/value/{$this->type}", $value, $post_id, $column, $this->key );
215
216
+
217
// Reset query to old post
218
$post = $post_old;
219
classes/storage_model/user.php CHANGED
@@ -9,12 +9,13 @@ class CPAC_Storage_Model_User extends CPAC_Storage_Model {
9
*/
10
function __construct() {
11
12
- $this->key = 'wp-users';
13
- $this->label = __( 'Users' );
14
- $this->type = 'user';
15
- $this->meta_type = 'user';
16
- $this->page = 'users';
17
- $this->menu_type = 'other';
18
19
// headings
20
add_filter( "manage_{$this->page}_columns", array( $this, 'add_headings' ), 100 );
@@ -62,13 +63,11 @@ class CPAC_Storage_Model_User extends CPAC_Storage_Model {
62
* @param int $user_id
63
* @param string $value
64
*/
65
- function manage_value( $column_name, $user_id, $value = '' ) {
66
67
- // get column instance
68
- $column = $this->get_column_by_name( $column_name );
69
-
70
- if ( ! $column )
71
return $value;
72
73
// get value
74
$custom_value = $column->get_value( $user_id );
9
*/
10
function __construct() {
11
12
+ $this->key = 'wp-users';
13
+ $this->label = __( 'Users' );
14
+ $this->singular_label = __( 'User' );
15
+ $this->type = 'user';
16
+ $this->meta_type = 'user';
17
+ $this->page = 'users';
18
+ $this->menu_type = 'other';
19
20
// headings
21
add_filter( "manage_{$this->page}_columns", array( $this, 'add_headings' ), 100 );
63
* @param int $user_id
64
* @param string $value
65
*/
66
+ public function manage_value( $column_name, $user_id, $value = '' ) {
67
68
+ if ( ! ( $column = $this->get_column_by_name( $column_name ) ) ) {
69
return $value;
70
+ }
71
72
// get value
73
$custom_value = $column->get_value( $user_id );
codepress-admin-columns.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
Plugin Name: Admin Columns
4
- Version: 2.3.5
5
Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
6
Author: AdminColumns.com
7
Author URI: http://www.admincolumns.com
@@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
32
}
33
34
// Plugin information
35
- define( 'CPAC_VERSION', '2.3.5' ); // Current plugin version
36
define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // Latest version which requires an upgrade
37
define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
38
define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
@@ -397,38 +397,35 @@ class CPAC {
397
*/
398
public function admin_scripts() {
399
400
$css_column_width = '';
401
$edit_link = '';
402
403
- if ( $this->storage_models ) {
404
- foreach ( $this->storage_models as $storage_model ) {
405
406
- if ( ! $storage_model->is_columns_screen() ) {
407
- continue;
408
}
409
410
- // CSS: columns width
411
- if ( $columns = $storage_model->get_stored_columns() ) {
412
- foreach ( $columns as $name => $options ) {
413
-
414
- if ( ! empty( $options['width'] ) && is_numeric( $options['width'] ) && $options['width'] > 0 ) {
415
- $css_column_width .= ".cp-{$storage_model->key} .wrap table th.column-{$name} { width: {$options['width']}% !important; }";
416
- }
417
-
418
- // Load custom column scripts, used by 3rd party columns
419
- if ( $column = $storage_model->get_column_by_name( $name ) ) {
420
- $column->scripts();
421
- }
422
- }
423
- }
424
-
425
- // JS: edit button
426
- $general_options = get_option( 'cpac_general_options' );
427
- if ( current_user_can( 'manage_admin_columns' ) && ( ! isset( $general_options['show_edit_button'] ) || '1' === $general_options['show_edit_button'] ) ) {
428
- $edit_link = $storage_model->get_edit_link();
429
}
430
}
431
}
432
?>
433
<?php if ( $css_column_width ) : ?>
434
<style type="text/css">
@@ -444,6 +441,13 @@ class CPAC {
444
<?php endif; ?>
445
446
<?php
447
}
448
449
/**
1
<?php
2
/*
3
Plugin Name: Admin Columns
4
+ Version: 2.4
5
Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
6
Author: AdminColumns.com
7
Author URI: http://www.admincolumns.com
32
}
33
34
// Plugin information
35
+ define( 'CPAC_VERSION', '2.4' ); // Current plugin version
36
define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // Latest version which requires an upgrade
37
define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
38
define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
397
*/
398
public function admin_scripts() {
399
400
+ if ( ! ( $storage_model = $this->get_current_storage_model() ) ) {
401
+ return;
402
+ }
403
+
404
$css_column_width = '';
405
$edit_link = '';
406
407
+ // CSS: columns width
408
+ if ( $columns = $storage_model->get_stored_columns() ) {
409
+ foreach ( $columns as $name => $options ) {
410
411
+ if ( ! empty( $options['width'] ) && is_numeric( $options['width'] ) && $options['width'] > 0 ) {
412
+ $unit = isset( $options['width_unit'] ) ? $options['width_unit'] : '%';
413
+ $css_column_width .= ".cp-{$storage_model->key} .wrap table th.column-{$name} { width: {$options['width']}{$unit} !important; }";
414
}
415
416
+ // Load custom column scripts, used by 3rd party columns
417
+ if ( $column = $storage_model->get_column_by_name( $name ) ) {
418
+ $column->scripts();
419
}
420
}
421
}
422
+
423
+ // JS: edit button
424
+ $general_options = get_option( 'cpac_general_options' );
425
+ if ( current_user_can( 'manage_admin_columns' ) && ( ! isset( $general_options['show_edit_button'] ) || '1' === $general_options['show_edit_button'] ) ) {
426
+ $edit_link = $storage_model->get_edit_link();
427
+ }
428
+
429
?>
430
<?php if ( $css_column_width ) : ?>
431
<style type="text/css">
441
<?php endif; ?>
442
443
<?php
444
+
445
+ /**
446
+ * Add header scripts that only apply to column screens.
447
+ * @since 2.3.5
448
+ * @param object CPAC Main Class
449
+ */
450
+ do_action( 'cac/admin_head', $storage_model, $this );
451
}
452
453
/**
languages/cpac-ar.po CHANGED
@@ -1,28 +1,28 @@
1
- #
2
# Translators:
3
# Hassan, 2013
4
msgid ""
5
msgstr ""
6
"Project-Id-Version: Admin Columns\n"
7
"Report-Msgid-Bugs-To: \n"
8
- "POT-Creation-Date: 2014-12-10 17:02+0100\n"
9
- "PO-Revision-Date: 2014-12-10 17:24+0100\n"
10
- "Last-Translator: Codepress <info@codepress.nl>\n"
11
"Language-Team: Arabic (http://www.transifex.com/projects/p/admin-columns/language/ar/)\n"
12
"MIME-Version: 1.0\n"
13
"Content-Type: text/plain; charset=UTF-8\n"
14
"Content-Transfer-Encoding: 8bit\n"
15
"Language: ar\n"
16
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
17
- "X-Generator: Poedit 1.7.1\n"
18
"X-Poedit-Basepath: .\n"
19
"X-Poedit-KeywordsList: __;_e\n"
20
- "X-Poedit-SourceCharset: UTF-8\n"
21
"X-Poedit-SearchPath-0: .\n"
22
"X-Poedit-SearchPath-1: ..\n"
23
24
#: ../classes/addons.php:110
25
- msgid "Third party plugin integration"
26
msgstr ""
27
28
#: ../classes/addons.php:135
@@ -30,7 +30,9 @@ msgid "Advanced Custom Fields"
30
msgstr ""
31
32
#: ../classes/addons.php:136
33
- msgid "Display and edit Advanced Custom Fields fields in the posts overview in seconds!"
34
msgstr ""
35
36
#: ../classes/addons.php:141
@@ -38,185 +40,263 @@ msgid "WooCommerce"
38
msgstr ""
39
40
#: ../classes/addons.php:142
41
- msgid "Enhance the products, orders and coupons overviews with new columns and inline editing."
42
msgstr ""
43
44
- #: ../classes/column.php:500
45
msgid "Thumbnail"
46
msgstr "صورة مصغرة"
47
48
- #: ../classes/column.php:501
49
msgid "Medium"
50
msgstr "وسط"
51
52
- #: ../classes/column.php:502
53
msgid "Large"
54
msgstr "كبير"
55
56
- #: ../classes/column.php:503
57
msgid "Full"
58
msgstr "كامل"
59
60
- #: ../classes/column.php:863
61
msgid "Date Format"
62
msgstr "تنسيق التاريخ"
63
64
- #: ../classes/column.php:864
65
msgid "This will determine how the date will be displayed."
66
msgstr "هذا سيحدد كيف سيتم عرض التاريخ."
67
68
- #: ../classes/column.php:870
69
msgid "Example:"
70
msgstr "مثال:"
71
72
- #: ../classes/column.php:872
73
#, php-format
74
- msgid "Leave empty for WordPress date format, change your <a href=\"%s\">default date format here</a>."
75
msgstr "أترك خاليا لتنسيق ووردبريس الإفتراضي للتاريخ، قم بتغيير <a href=\"%s\">تنسيق التاريخ الخاص بك هنا</a>."
76
77
- #: ../classes/column.php:873
78
msgid "Documentation on date and time formatting."
79
msgstr "توثيق حول تنسيق التاريخ والوقت."
80
81
- #: ../classes/column.php:887
82
msgid "Excerpt length"
83
msgstr "طول المقتطف"
84
85
- #: ../classes/column.php:888
86
msgid "Number of words"
87
msgstr "عدد الكلمات"
88
89
- #: ../classes/column.php:906
90
msgid "Preview size"
91
msgstr "حجم المعاينة"
92
93
- #: ../classes/column.php:923 ../classes/storage_model.php:534
94
msgid "Custom"
95
msgstr "مخصوص"
96
97
- #: ../classes/column.php:926
98
msgid "width"
99
msgstr "عرض"
100
101
- #: ../classes/column.php:929
102
msgid "height"
103
msgstr "إرتفاع"
104
105
- #: ../classes/column.php:943
106
msgid "Before"
107
msgstr "قبل"
108
109
- #: ../classes/column.php:943
110
msgid "This text will appear before the custom field value."
111
msgstr "هذا النص سيظهر قبل الحقل المخصوص."
112
113
- #: ../classes/column.php:949
114
msgid "After"
115
msgstr "بعد"
116
117
- #: ../classes/column.php:949
118
msgid "This text will appear after the custom field value."
119
msgstr "هذا النص سيظهر بعد الحقل المخصوص."
120
121
- #: ../classes/column.php:1043 ../classes/column/comment/actions.php:99 ../classes/column/link/actions.php:48 ../classes/column/post/actions.php:31 ../classes/column/user/actions.php:69
122
msgid "Edit"
123
msgstr "تحرير"
124
125
- #: ../classes/column.php:1044 ../classes/column.php:1122 ../classes/column/user/actions.php:77
126
msgid "Remove"
127
msgstr "إزالة"
128
129
- #: ../classes/column.php:1062
130
msgid "Type"
131
msgstr "نوع"
132
133
- #: ../classes/column.php:1062
134
msgid "Choose a column type."
135
msgstr "اختر نوع عمود"
136
137
- #: ../classes/column.php:1062 ../classes/column/comment/ID.php:19 ../classes/column/link/ID.php:19 ../classes/column/media/ID.php:19 ../classes/column/post/ID.php:19
138
- msgid "ID"
139
- msgstr "رقم"
140
141
- #: ../classes/column.php:1072
142
msgid "Label"
143
msgstr "العنوان"
144
145
- #: ../classes/column.php:1072
146
msgid "This is the name which will appear as the column header."
147
msgstr "هذا هو الاسم الذي سيظهر كترويسة العمود."
148
149
- #: ../classes/column.php:1079 ../classes/column/media/width.php:19
150
msgid "Width"
151
msgstr "عرض"
152
153
- #: ../classes/column.php:1081 ../classes/column.php:1082
154
msgid "default"
155
msgstr "إفتراضي"
156
157
#: ../classes/column/acf-placeholder.php:19
158
msgid "ACF Field"
159
msgstr ""
160
161
#: ../classes/column/acf-placeholder.php:32
162
- msgid "This feature is only available in Admin Columns Pro - Business or Developer."
163
msgstr ""
164
165
#: ../classes/column/acf-placeholder.php:35
166
#, php-format
167
- msgid "If you have a developer licence please download & install your ACF add-on from the <a href='%s'>add-ons tab</a>."
168
msgstr ""
169
170
#: ../classes/column/acf-placeholder.php:38
171
- msgid "Admin Columns Pro - Developer offers full Advanced Custom Fields integeration, allowing you to easily display and edit ACF fields from within your posts overview."
172
msgstr ""
173
174
#: ../classes/column/acf-placeholder.php:44
175
msgid "Find out more"
176
msgstr ""
177
178
- #: ../classes/column/actions.php:29 ../classes/column/comment/actions.php:19 ../classes/column/link/actions.php:19 ../classes/column/media/actions.php:20
179
#: ../classes/column/user/actions.php:19
180
msgid "Actions"
181
msgstr "تطبيقات"
182
183
- #: ../classes/column/actions.php:87
184
msgid "Use icons?"
185
msgstr ""
186
187
- #: ../classes/column/actions.php:87
188
msgid "Use icons instead of text for displaying the actions."
189
msgstr ""
190
191
- #: ../classes/column/actions.php:91 ../classes/column/post/permalink.php:72 ../classes/column/used-by-menu.php:137
192
msgid "Yes"
193
msgstr ""
194
195
- #: ../classes/column/actions.php:95 ../classes/column/post/permalink.php:76 ../classes/column/used-by-menu.php:141
196
msgid "No"
197
msgstr ""
198
199
- #: ../classes/column/comment/actions.php:76 ../classes/column/comment/actions.php:81
200
msgid "Unapprove"
201
msgstr "إلغاء الموافقة"
202
203
- #: ../classes/column/comment/actions.php:78 ../classes/column/comment/actions.php:80
204
msgid "Approve"
205
msgstr "موافقة"
206
207
- #: ../classes/column/comment/actions.php:89 ../classes/column/post/actions.php:39 ../classes/settings.php:665
208
msgid "Restore"
209
msgstr "استرجاع"
210
211
- #: ../classes/column/comment/actions.php:93 ../classes/column/post/actions.php:43
212
msgid "Delete Permanently"
213
msgstr "حذف نهائي"
214
215
- #: ../classes/column/comment/actions.php:100 ../classes/column/post/actions.php:34
216
msgid "Quick&nbsp;Edit"
217
msgstr "تحرير سريع"
218
219
- #: ../classes/column/comment/actions.php:101
220
msgid "Reply"
221
msgstr "رد"
222
@@ -224,7 +304,8 @@ msgstr "رد"
224
msgid "Agent"
225
msgstr "عميل"
226
227
- #: ../classes/column/comment/approved.php:19 ../classes/column/post/comment-count.php:35
228
msgid "Approved"
229
msgstr "موافق عليه"
230
@@ -252,16 +333,20 @@ msgstr "الكاتب"
252
msgid "Date GMT"
253
msgstr "تاريخ GMT"
254
255
- #: ../classes/column/comment/date-gmt.php:30 ../classes/column/comment/date.php:30
256
#, php-format
257
msgid "Submitted on <a href=\"%1$s\">%2$s at %3$s</a>"
258
msgstr "أرسل في <a href=\"%1$s\">%2$s في %3$s</a>"
259
260
- #: ../classes/column/comment/date.php:19 ../classes/column/custom-field.php:98 ../classes/settings.php:315
261
msgid "Date"
262
msgstr "تاريخ"
263
264
- #: ../classes/column/comment/excerpt.php:19 ../classes/column/custom-field.php:99 ../classes/column/post/excerpt.php:19 ../classes/settings.php:312
265
msgid "Excerpt"
266
msgstr "مقتطف"
267
@@ -269,15 +354,18 @@ msgstr "مقتطف"
269
msgid "In Reply To"
270
msgstr "ردا على"
271
272
- #: ../classes/column/comment/word-count.php:19 ../classes/column/post/word-count.php:19
273
msgid "Word count"
274
msgstr "عدد الكلمات"
275
276
- #: ../classes/column/custom-field.php:23 ../classes/column/custom-field.php:356 ../classes/settings.php:305
277
msgid "Custom Field"
278
msgstr "حقل مخصوص"
279
280
- #: ../classes/column/custom-field.php:94 ../classes/settings.php:310 ../classes/storage_model.php:535
281
msgid "Default"
282
msgstr "إفتراضي"
283
@@ -285,27 +373,29 @@ msgstr "إفتراضي"
285
msgid "Checkmark (true/false)"
286
msgstr "علامة إختيار (صح/خطأ)"
287
288
- #: ../classes/column/custom-field.php:96 ../classes/settings.php:319
289
msgid "Color"
290
msgstr "لون"
291
292
- #: ../classes/column/custom-field.php:97 ../classes/settings.php:320
293
msgid "Counter"
294
msgstr "عداد"
295
296
- #: ../classes/column/custom-field.php:100 ../classes/column/link/image.php:19 ../classes/settings.php:311
297
msgid "Image"
298
msgstr "صورة"
299
300
- #: ../classes/column/custom-field.php:101 ../classes/storage_model/media.php:13
301
msgid "Media Library"
302
msgstr "مكتبة الوسائط"
303
304
- #: ../classes/column/custom-field.php:102 ../classes/settings.php:313
305
msgid "Multiple Values"
306
msgstr "قيم متعددة"
307
308
- #: ../classes/column/custom-field.php:103 ../classes/settings.php:314
309
msgid "Numeric"
310
msgstr "رقمي"
311
@@ -317,19 +407,28 @@ msgstr "عنوان تدوينة (أرقام تدوينات)"
317
msgid "Username (User ID's)"
318
msgstr "اسم مستخدم (أرقام مستخدمين)"
319
320
- #: ../classes/column/custom-field.php:356
321
msgid "Select your custom field."
322
msgstr "اختر حقلك المخصوص"
323
324
- #: ../classes/column/custom-field.php:366
325
msgid "No custom fields available."
326
msgstr "لا توجد حقول مخصوصة متوفرة."
327
328
- #: ../classes/column/custom-field.php:373
329
msgid "Field Type"
330
msgstr "نوع الحقل"
331
332
- #: ../classes/column/custom-field.php:373
333
msgid "This will determine how the value will be displayed."
334
msgstr "هذا سيحدد كيف سيتم عرض القيمة."
335
@@ -338,15 +437,15 @@ msgstr "هذا سيحدد كيف سيتم عرض القيمة."
338
msgid ""
339
"You are about to delete this link '%s'\n"
340
" 'Cancel' to stop, 'OK' to delete."
341
- msgstr ""
342
- "انت على وشك حذف هذا الرابط '%s'\n"
343
- " 'إلغاء' للإيقاف، 'موافق' للحذف."
344
345
#: ../classes/column/link/actions.php:49 ../classes/column/user/actions.php:75
346
msgid "Delete"
347
msgstr "مسح"
348
349
- #: ../classes/column/link/description.php:19 ../classes/column/media/description.php:19 ../classes/column/user/description.php:19
350
msgid "Description"
351
msgstr "وصف"
352
@@ -370,10 +469,39 @@ msgstr "Rss"
370
msgid "Target"
371
msgstr "هدف"
372
373
#: ../classes/column/media/alternate-text.php:19
374
msgid "Alt"
375
msgstr "بديل"
376
377
#: ../classes/column/media/available-sizes.php:20
378
msgid "Available Sizes"
379
msgstr "الأحجام المتوفرة"
@@ -382,7 +510,8 @@ msgstr "الأحجام المتوفرة"
382
msgid "full size"
383
msgstr "حجم كامل"
384
385
- #: ../classes/column/media/caption.php:19 ../classes/column/media/exif-data.php:41
386
msgid "Caption"
387
msgstr "شرح"
388
@@ -439,9 +568,26 @@ msgid "File size"
439
msgstr "حجم ملف"
440
441
#: ../classes/column/media/full-path.php:19
442
msgid "Full path"
443
msgstr "مسار كامل"
444
445
#: ../classes/column/media/height.php:19
446
msgid "Height"
447
msgstr "إرتفاع"
@@ -450,96 +596,47 @@ msgstr "إرتفاع"
450
msgid "Mime type"
451
msgstr "نوع Mime"
452
453
- #: ../classes/column/post/actions.php:31
454
msgid "Edit this item"
455
msgstr "تحرير هذا العنصر"
456
457
- #: ../classes/column/post/actions.php:34
458
msgid "Edit this item inline"
459
msgstr "تحرير هذا العنصر داخليا"
460
461
- #: ../classes/column/post/actions.php:39
462
msgid "Restore this item from the Trash"
463
msgstr "استعادة هذا العنصر من المهملات"
464
465
- #: ../classes/column/post/actions.php:41
466
msgid "Move this item to the Trash"
467
msgstr "نقل هذا العنصر إلى المهملات"
468
469
- #: ../classes/column/post/actions.php:41 ../classes/column/post/comment-count.php:38 ../classes/column/post/status.php:35
470
- msgid "Trash"
471
- msgstr "المهملات"
472
-
473
- #: ../classes/column/post/actions.php:43
474
msgid "Delete this item permanently"
475
msgstr "حذف هذا العنصر نهائيا"
476
477
- #: ../classes/column/post/actions.php:48
478
#, php-format
479
msgid "Preview &#8220;%s&#8221;"
480
msgstr "معاينة &#8220;%s&#8221;"
481
482
- #: ../classes/column/post/actions.php:48
483
msgid "Preview"
484
msgstr "معاينة"
485
486
- #: ../classes/column/post/actions.php:50
487
- #, php-format
488
- msgid "View &#8220;%s&#8221;"
489
- msgstr "عرض &#8220;%s&#8221;"
490
-
491
- #: ../classes/column/post/actions.php:50 ../classes/storage_model.php:746
492
- msgid "View"
493
- msgstr "عرض"
494
-
495
#: ../classes/column/post/attachment-count.php:19
496
msgid "No. of Attachments"
497
msgstr "عدد المرفقات"
498
499
#: ../classes/column/post/attachment.php:19
500
- msgid "Attachment"
501
- msgstr "مرفق"
502
503
#: ../classes/column/post/author-name.php:20
504
msgid "Display Author As"
505
msgstr "عرض الكاتب كـ"
506
507
- #: ../classes/column/post/author-name.php:40
508
- msgid "Display Name"
509
- msgstr "اسم العرض"
510
-
511
- #: ../classes/column/post/author-name.php:41
512
- msgid "First Name"
513
- msgstr "الاسم الأول"
514
-
515
- #: ../classes/column/post/author-name.php:42
516
- msgid "Last Name"
517
- msgstr "الاسم الأخير"
518
-
519
- #: ../classes/column/post/author-name.php:43 ../classes/column/user/nickname.php:19
520
- msgid "Nickname"
521
- msgstr "الاسم المستعار"
522
-
523
- #: ../classes/column/post/author-name.php:44
524
- msgid "User Login"
525
- msgstr "اسم الدخول"
526
-
527
- #: ../classes/column/post/author-name.php:45
528
- msgid "User Email"
529
- msgstr "بريد المستخدم"
530
-
531
- #: ../classes/column/post/author-name.php:46 ../classes/column/user/ID.php:19
532
- msgid "User ID"
533
- msgstr "رقم المستخدم"
534
-
535
- #: ../classes/column/post/author-name.php:47
536
- msgid "First and Last Name"
537
- msgstr "الاسم الأول والأخير"
538
-
539
- #: ../classes/column/post/author-name.php:124
540
- msgid "This is the format of the author name."
541
- msgstr "هذا هو تنسيق اسم الكاتب."
542
-
543
#: ../classes/column/post/before-moretag.php:19
544
msgid "Before More Tag"
545
msgstr "قبل وسم المزيد"
@@ -560,7 +657,8 @@ msgstr "بالانتظار"
560
msgid "Spam"
561
msgstr "مزعج"
562
563
- #: ../classes/column/post/comment-count.php:99 ../classes/column/post/comment-status.php:20
564
msgid "Comment status"
565
msgstr "حالة التعليق"
566
@@ -568,6 +666,30 @@ msgstr "حالة التعليق"
568
msgid "Select which comment status you like to display."
569
msgstr "اختر حالة التعليق الذي تريد عرضه."
570
571
#: ../classes/column/post/featured-image.php:19
572
msgid "Featured Image"
573
msgstr "الصورة المميزة"
@@ -576,6 +698,10 @@ msgstr "الصورة المميزة"
576
msgid "Post Format"
577
msgstr "تنسيق التدوينة"
578
579
#: ../classes/column/post/modified.php:19
580
msgid "Last modified"
581
msgstr "آخر تحديث"
@@ -616,6 +742,10 @@ msgstr "حالة التنبيه"
616
msgid "Roles"
617
msgstr "الأدوار"
618
619
#: ../classes/column/post/slug.php:19
620
msgid "Slug"
621
msgstr "الاسم اللطيف"
@@ -656,7 +786,7 @@ msgstr "لاصق"
656
msgid "Title without actions"
657
msgstr ""
658
659
- #: ../classes/column/taxonomy.php:20 ../classes/column/taxonomy.php:79
660
msgid "Taxonomy"
661
msgstr "التصنيف"
662
@@ -676,6 +806,10 @@ msgstr ""
676
msgid "Comment Count"
677
msgstr "عدد التعليقات"
678
679
#: ../classes/column/user/first-name.php:19
680
msgid "First name"
681
msgstr "الاسم الأول"
@@ -696,425 +830,474 @@ msgstr "نوع تدوبنة"
696
msgid "Registered"
697
msgstr "مسجل"
698
699
#: ../classes/column/user/url.php:19
700
msgid "Url"
701
msgstr "عنوان موقع"
702
703
- #: ../classes/settings.php:111
704
msgid "Add-on successfully activated."
705
msgstr ""
706
707
- #: ../classes/settings.php:114
708
msgid "Add-on successfully deactivated."
709
msgstr ""
710
711
- #: ../classes/settings.php:169
712
msgid "Admin Columns Settings"
713
msgstr "إعدادات Admin Columns"
714
715
- #: ../classes/settings.php:169 ../classes/settings.php:598 ../classes/upgrade.php:135
716
msgid "Admin Columns"
717
msgstr "Admin Columns"
718
719
- #: ../classes/settings.php:217
720
#, php-format
721
msgid "%s column is already present and can not be duplicated."
722
msgstr "عمود %s موجود بالفعل ولا يمكن استنساخه."
723
724
- #: ../classes/settings.php:271
725
msgid "Default settings succesfully restored."
726
msgstr "تمت إستعادة الإعدادات الإفتراضية بنجاح."
727
728
- #: ../classes/settings.php:288
729
msgid "Overview"
730
msgstr "نظرة عامة"
731
732
- #: ../classes/settings.php:291
733
msgid ""
734
- "This plugin is for adding and removing additional columns to the administration screens for post(types), pages, media library, comments, links and users. Change the column's label and "
735
- "reorder them."
736
msgstr "هذا البرنامج هو لإضافة وإزالة أعمدة إضافية في الشاشات الإدارية لـ(أنواع) التدوينات، الصفحات، مكتبة الوسائط، التعليقات، الوصلات والمستخدمين. قم بتغيير تسمية الأعمدة وإعادة ترتيبها."
737
738
- #: ../classes/settings.php:294
739
msgid "Basics"
740
msgstr "مبادئ"
741
742
- #: ../classes/settings.php:296
743
msgid "Change order"
744
msgstr "تغيير الترتيب"
745
746
- #: ../classes/settings.php:297
747
- msgid "By dragging the columns you can change the order which they will appear in."
748
msgstr "عن طريق سحب الأعمدة يمكنك تغيير ترتيب الذي سوف تظهر فيه."
749
750
- #: ../classes/settings.php:298
751
msgid "Change label"
752
msgstr "تغيير العنوان"
753
754
- #: ../classes/settings.php:299
755
- msgid "By clicking on the triangle you will see the column options. Here you can change each label of the columns heading."
756
msgstr "بالنقر على المثلث سترى خيارات العمود. هنا يمكنك تغيير تسمية ترويسات الأعمدة."
757
758
- #: ../classes/settings.php:300
759
msgid "Change column width"
760
msgstr "تغيير عرض العمود"
761
762
- #: ../classes/settings.php:301
763
- msgid "By clicking on the triangle you will see the column options. By using the draggable slider you can set the width of the columns in percentages."
764
msgstr "بالنقر على المثلث سترى خيارات العمود. باستخدام شريط التمرير القابل للسحب يمكنك تعيين عرض الأعمدة بالنسب المئوية."
765
766
- #: ../classes/settings.php:307
767
msgid "'Custom Field' column"
768
msgstr "عمود 'حقل مخصوص'"
769
770
- #: ../classes/settings.php:308
771
- msgid "The custom field colum uses the custom fields from posts and users. There are 10 types which you can set."
772
msgstr "يستخدم عمود الحقل المخصوص الحقول المخصوصة من التدوينات والمستخدمين. هناك 10 أنواع يمكنك تعيينها."
773
774
- #: ../classes/settings.php:310
775
- msgid "Value: Can be either a string or array. Arrays will be flattened and values are seperated by a ',' comma."
776
msgstr "قيمة: يمكن أن تكون إما سلسلة أو مصفوفة. سيتم تسطيح المصفوفات ويتم فصل القيم بـ '،' فاصلة."
777
778
- #: ../classes/settings.php:311
779
- msgid "Value: should contain an image URL or Attachment IDs ( seperated by a ',' comma )."
780
msgstr "قيمة: يجب أن يحتوي عنوان URL للصورة أو معرفات المرفقات (مفصولة بـ '،' فاصلة)."
781
782
- #: ../classes/settings.php:312
783
msgid "Value: This will show the first 20 words of the Post content."
784
msgstr "قيمة: سيقوم هذا بإظهار أول 20 كلمة من محتوى التدوينة."
785
786
- #: ../classes/settings.php:313
787
- msgid "Value: should be an array. This will flatten any ( multi dimensional ) array."
788
msgstr "قيمة: يجب أن يكون مصفوفة. هذا سوف يسطح أي مصفوفة (متعددة الأبعاد)."
789
790
- #: ../classes/settings.php:314
791
- msgid "Value: Integers only.<br/>If you have the 'sorting addon' this will be used for sorting, so you can sort your posts on numeric (custom field) values."
792
msgstr "القيمة: الأعداد الصحيحة فقط <br/> إذا كان لديك 'ملحق الترتيب' سيتم استخدام هذه للترتيب، بحيث يمكنك ترتيب تدويناتك على القيم الرقمية (الحقل المخصوص)."
793
794
- #: ../classes/settings.php:315
795
#, php-format
796
- msgid "Value: Can be unix time stamp or a date format as described in the <a href='%s'>Codex</a>. You can change the outputted date format at the <a href='%s'>general settings</a> page."
797
msgstr "قيمة: يمكن أن تكون طابع يونكس زمني أو تنسيق تاريخ كما هو موضح في <a href='%s'>Codex</a>. يمكنك تغيير تنسيق التاريخ المخرج من صفحة <a href='%s'>الإعدادات العامة</a>."
798
799
- #: ../classes/settings.php:316
800
msgid "Post Titles"
801
msgstr "عناوين تدوينات"
802
803
- #: ../classes/settings.php:316
804
msgid "Value: can be one or more Post ID's (seperated by ',')."
805
msgstr "قيمة: يمكن أن تكون رقم تدوينة واحدة أو أكثر (مفصولة بـ',')."
806
807
- #: ../classes/settings.php:317
808
msgid "Usernames"
809
msgstr "أسماء مستخدمين"
810
811
- #: ../classes/settings.php:317
812
msgid "Value: can be one or more User ID's (seperated by ',')."
813
msgstr "قيمة: يمكن أن تكون رقم مستخدم واحد أو أكثر (مفصولة بـ',')."
814
815
- #: ../classes/settings.php:318
816
msgid "Checkmark"
817
msgstr "علامة اختيار"
818
819
- #: ../classes/settings.php:318
820
msgid "Value: should be a 1 (one) or 0 (zero)."
821
msgstr "قيمة: يجب أن تكون 1 (واحد) أو 0 (صفر)."
822
823
- #: ../classes/settings.php:319
824
msgid "Value: hex value color, such as #808080."
825
msgstr "قيمة: لون بقيمة عشرية، مثل 808080#."
826
827
- #: ../classes/settings.php:320
828
- msgid "Value: Can be either a string or array. This will display a count of the number of times the meta key is used by the item."
829
msgstr "القيمة: يمكن أن يكون إما سلسلة أو مجموعة. هذا سيعرض عدد مرات استخدام المفتاح من قبل العنصر."
830
831
- #: ../classes/settings.php:409
832
msgid "Welcome to Admin Columns"
833
msgstr "مرحبا في Admin Columns"
834
835
- #: ../classes/settings.php:412
836
msgid "Thank you for updating to the latest version!"
837
msgstr "شكرا لك على التحديث للنسخة الأخيرة!"
838
839
- #: ../classes/settings.php:413
840
- msgid "Admin Columns is more polished and enjoyable than ever before. We hope you like it."
841
msgstr "Admin Columns أصبحت مصقولة وممتعة أكثر من أي وقت مضى. نأمل أن تنال إعجابكم."
842
843
- #: ../classes/settings.php:418
844
msgid "What’s New"
845
msgstr "ما الجديد"
846
847
- #: ../classes/settings.php:419
848
msgid "Changelog"
849
msgstr "سجل التغييرات"
850
851
- #: ../classes/settings.php:424
852
msgid "Important"
853
msgstr "مهم"
854
855
- #: ../classes/settings.php:426
856
msgid "Database Changes"
857
msgstr "تغييرات قاعدة البيانات"
858
859
- #: ../classes/settings.php:427
860
- msgid "The database has been changed between versions 1 and 2. But we made sure you can still roll back to version 1x without any issues."
861
msgstr "تم تغيير قاعدة البيانات بين الإصدارات 1 و 2. ولكن حرصنا على ألا يزال بإمكانك الرجوع إلى إصدار 1x دون أية مشاكل."
862
863
- #: ../classes/settings.php:430
864
msgid "Make sure you backup your database and then click"
865
msgstr "تأكد من عمل نسخة احتياطية لقاعدة بياناتك ثم انقر"
866
867
- #: ../classes/settings.php:430 ../classes/upgrade.php:143
868
msgid "Upgrade Database"
869
msgstr "تحديث قاعدة البيانات"
870
871
- #: ../classes/settings.php:433
872
msgid "Potential Issues"
873
msgstr "مشاكل محتملة"
874
875
- #: ../classes/settings.php:434
876
- msgid "Do to the sizable refactoring the code, surounding Addons and action/filters, your website may not operate correctly. It is important that you read the full"
877
msgstr "نسبة إلى إعادة بناء كود الإضافة بشكل كبير، وكذلك الملحاقت والدوال، قد لا يعمل موقع الويب الخاص بك بشكل صحيح. من المهم أن تقرأ بشكل كامل"
878
879
- #: ../classes/settings.php:434
880
msgid "Migrating from v1 to v2"
881
msgstr "الانتقال من النسخة 1 إلى النسخة 2"
882
883
- #: ../classes/settings.php:434
884
msgid "guide to view the full list of changes."
885
msgstr "توجيه لعرض القائمة الكاملة للتغييرات."
886
887
- #: ../classes/settings.php:434
888
#, php-format
889
- msgid "When you have found a bug please <a href=\"%s\">report them to us</a> so we can fix it in the next release."
890
msgstr "عندما تجد أخطاء الرجاء <a href=\"%s\">التبيلغ عنها لنا</a> لكي نتمكن من إصلاحها في النسخة القادمة."
891
892
- #: ../classes/settings.php:437
893
msgid "Important!"
894
msgstr "مهم!"
895
896
- #: ../classes/settings.php:437
897
- msgid "If you updated the Admin Columns plugin without prior knowledge of such changes, Please roll back to the latest"
898
msgstr "إذا قمت بتحديث Admin Columns دون معرفة مسبقة بهذه التغييرات، فالرجاء الرجوع لآخر"
899
900
- #: ../classes/settings.php:437
901
msgid "version 1"
902
msgstr "النسخة 1"
903
904
- #: ../classes/settings.php:437
905
msgid "of this plugin."
906
msgstr "من هذه الإضافة"
907
908
- #: ../classes/settings.php:443
909
msgid "Changelog for"
910
msgstr "سجل التغييرات لـ"
911
912
- #: ../classes/settings.php:458 ../classes/upgrade.php:63
913
msgid "Learn more"
914
msgstr "تعلم المزيد"
915
916
- #: ../classes/settings.php:468
917
msgid "Start using Admin Columns"
918
msgstr "البدء باستخدام Admin Columns"
919
920
- #: ../classes/settings.php:511
921
msgid "General Settings"
922
msgstr "إعدادات عامة"
923
924
- #: ../classes/settings.php:512
925
msgid "Customize your Admin Columns settings."
926
msgstr "قم بتخصيص إعدادات Admin Columns."
927
928
- #: ../classes/settings.php:523
929
msgid "Show \"Edit Columns\" button on admin screens. Default is <code>on</code>."
930
msgstr ""
931
932
- #: ../classes/settings.php:530 ../classes/settings.php:660
933
msgid "Save"
934
msgstr "حفظ"
935
936
- #: ../classes/settings.php:570
937
msgid "Restore Settings"
938
msgstr "استرجاع الإعدادات"
939
940
- #: ../classes/settings.php:571
941
msgid "This will delete all column settings and restore the default settings."
942
msgstr "سيؤدي هذا إلى حذف كافة إعدادات الأعمدة واستعادة الإعدادات الإفتراضية."
943
944
- #: ../classes/settings.php:577
945
msgid "Restore default settings"
946
msgstr "استرجاع الإعدادات الإفتراضية"
947
948
- #: ../classes/settings.php:577
949
- msgid "Warning! ALL saved admin columns data will be deleted. This cannot be undone. \\'OK\\' to delete, \\'Cancel\\' to stop"
950
msgstr "تحذير! كافة بيانات الأعمدة المحفوظة سيتم حذفها. لا يمكن التراجع عن هذا. \\'موافق\\' للحذف، \\'إلغاء\\' للإيقاف"
951
952
- #: ../classes/settings.php:599 ../codepress-admin-columns.php:326
953
msgid "Settings"
954
msgstr "إعدادات"
955
956
- #: ../classes/settings.php:600
957
msgid "Add-ons"
958
msgstr ""
959
960
- #: ../classes/settings.php:625
961
msgid "Posttypes"
962
msgstr ""
963
964
- #: ../classes/settings.php:626
965
msgid "Others"
966
msgstr ""
967
968
- #: ../classes/settings.php:627
969
msgid "Taxonomies"
970
msgstr ""
971
972
- #: ../classes/settings.php:646
973
#, php-format
974
- msgid "The columns for <strong>%s</strong> are set up via PHP and can therefore not be edited in the admin panel."
975
msgstr ""
976
977
- #: ../classes/settings.php:656
978
msgid "Store settings"
979
msgstr "حفظ الإعدادات"
980
981
- #: ../classes/settings.php:660
982
msgid "Update"
983
msgstr "تحديث"
984
985
- #: ../classes/settings.php:664
986
#, php-format
987
- msgid "Warning! The %s columns data will be deleted. This cannot be undone. \\'OK\\' to delete, \\'Cancel\\' to stop"
988
msgstr "تحذير! بيانات أعمدة %s سيتم حذفها. لا يمكن التراجع عن هذا. \\'موافق\\' للحذف، \\'إلغاء\\' للإيقاف"
989
990
- #: ../classes/settings.php:665
991
msgid "columns"
992
msgstr "أعمدة"
993
994
- #: ../classes/settings.php:684
995
msgid "Get Admin Columns Pro"
996
msgstr ""
997
998
- #: ../classes/settings.php:688
999
msgid "Add Sorting"
1000
msgstr "أضف ترتيب"
1001
1002
- #: ../classes/settings.php:689
1003
msgid "Add Filtering"
1004
msgstr "أضف تصفية"
1005
1006
- #: ../classes/settings.php:690
1007
msgid "Add Import/Export"
1008
msgstr "أضف استيراد/تصدير"
1009
1010
- #: ../classes/settings.php:691
1011
msgid "Add Direct Editing"
1012
msgstr ""
1013
1014
- #: ../classes/settings.php:694
1015
#, php-format
1016
msgid "Check out <a href=\"%s\">Admin Columns Pro</a> for more details!"
1017
msgstr ""
1018
1019
- #: ../classes/settings.php:725
1020
msgid "Are you happy with Admin Columns?"
1021
msgstr ""
1022
1023
- #: ../classes/settings.php:733
1024
msgid "What's wrong? Need help? Let us know!"
1025
msgstr ""
1026
1027
- #: ../classes/settings.php:734
1028
- msgid "Check out our extensive documentation, or you can open a support topic on WordPress.org!"
1029
msgstr ""
1030
1031
- #: ../classes/settings.php:742
1032
msgid "Docs"
1033
msgstr ""
1034
1035
- #: ../classes/settings.php:747
1036
msgid "Forums"
1037
msgstr ""
1038
1039
- #: ../classes/settings.php:756
1040
msgid "Woohoo! We're glad to hear that!"
1041
msgstr ""
1042
1043
- #: ../classes/settings.php:757
1044
- msgid "We would really love it if you could show your appreciation by giving us a rating on WordPress.org or tweet about Admin Columns!"
1045
msgstr ""
1046
1047
- #: ../classes/settings.php:761
1048
msgid "Rate"
1049
msgstr ""
1050
1051
- #: ../classes/settings.php:772
1052
msgid "Tweet"
1053
msgstr ""
1054
1055
- #: ../classes/settings.php:782
1056
msgid "Buy Pro"
1057
msgstr ""
1058
1059
- #: ../classes/settings.php:794
1060
msgid "Support"
1061
msgstr "دعم"
1062
1063
- #: ../classes/settings.php:797
1064
msgid "Check the <strong>Help</strong> section in the top-right screen."
1065
msgstr "تحقق من قسم <strong>المساعدة</strong> في الجانب العلوي الأيسر من الشاشة."
1066
1067
- #: ../classes/settings.php:800
1068
#, php-format
1069
- msgid "For full documentation, bug reports, feature suggestions and other tips <a href='%s'>visit the Admin Columns website</a>"
1070
msgstr "للحصول على الوثائق الكاملة، تقارير الأخطاء، اقتراحات الميزات وغيرها من النصائح <a href='%s'>قم بزيارة موقع Admin Columns</a>"
1071
1072
- #: ../classes/settings.php:829
1073
msgid "Drag and drop to reorder"
1074
msgstr "قم بالسحب والإلقاء لإعادة الترتيب"
1075
1076
- #: ../classes/settings.php:832
1077
msgid "Add Column"
1078
msgstr "أضف عمود"
1079
1080
- #: ../classes/settings.php:908
1081
msgid "Active"
1082
msgstr ""
1083
1084
- #: ../classes/settings.php:909
1085
msgid "Deactivate"
1086
msgstr ""
1087
1088
- #: ../classes/settings.php:916
1089
msgid "Installed"
1090
msgstr ""
1091
1092
- #: ../classes/settings.php:917
1093
msgid "Activate"
1094
msgstr ""
1095
1096
- #: ../classes/settings.php:931
1097
msgid "Download & Install"
1098
msgstr ""
1099
1100
- #: ../classes/settings.php:936
1101
msgid "Get this add-on"
1102
msgstr ""
1103
1104
- #: ../classes/storage_model.php:213
1105
msgid "settings succesfully restored."
1106
msgstr "تمت إستعادة الإعدادات بنجاح."
1107
1108
- #: ../classes/storage_model.php:229
1109
msgid "No columns settings available."
1110
msgstr "لا توجد إعدادات أعمدة متوفرة."
1111
1112
- #: ../classes/storage_model.php:250
1113
#, php-format
1114
msgid "You are trying to store the same settings for %s."
1115
msgstr "انت تحاول حفظ نفس الإعدادات لـ %s."
1116
1117
- #: ../classes/storage_model.php:254
1118
#, php-format
1119
msgid "Settings for %s updated succesfully."
1120
msgstr "إعدادات %s تم تحديثها بنجاح."
@@ -1123,19 +1306,38 @@ msgstr "إعدادات %s تم تحديثها بنجاح."
1123
msgid "Comments"
1124
msgstr "تعليقات"
1125
1126
#: ../classes/storage_model/link.php:13
1127
msgid "Links"
1128
msgstr "وصلات"
1129
1130
#: ../classes/storage_model/user.php:13
1131
msgid "Users"
1132
msgstr "مستخدمون"
1133
1134
#: ../classes/upgrade.php:62
1135
msgid ""
1136
- "<strong>Important:</strong> We&#39;ve noticed that you&#39;re using the <em>Pro add-on</em>, which is no longer supported by Admin Columns 2.2+. However, a free license of <strong>Admin "
1137
- "Columns Pro</strong> <a href=\"http://www.admincolumns.com/pro-addon-information/\" target=\"_blank\">is available</a>, which features a bunch of cool new features, including Direct "
1138
- "Inline Editing!"
1139
msgstr ""
1140
1141
#: ../classes/upgrade.php:95
@@ -1187,9 +1389,11 @@ msgid "Error"
1187
msgstr "خطأ"
1188
1189
#: ../classes/upgrade.php:408
1190
- msgid "Sorry. Something went wrong during the upgrade process. Please report this on the support forum."
1191
msgstr "عفوا. حدث خطأ أثناء عملية الترقية. الرجاء التبليغ عن هذا في منتديات الدعم."
1192
1193
- #: ../codepress-admin-columns.php:390
1194
msgid "Edit columns"
1195
msgstr "تحرير الأعمدة"
1
+ #
2
# Translators:
3
# Hassan, 2013
4
msgid ""
5
msgstr ""
6
"Project-Id-Version: Admin Columns\n"
7
"Report-Msgid-Bugs-To: \n"
8
+ "POT-Creation-Date: 2015-03-18 16:25+0100\n"
9
+ "PO-Revision-Date: 2015-03-18 15:27+0000\n"
10
+ "Last-Translator: Tobias Schutter <info@codepress.nl>\n"
11
"Language-Team: Arabic (http://www.transifex.com/projects/p/admin-columns/language/ar/)\n"
12
"MIME-Version: 1.0\n"
13
"Content-Type: text/plain; charset=UTF-8\n"
14
"Content-Transfer-Encoding: 8bit\n"
15
"Language: ar\n"
16
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
17
+ "X-Generator: Poedit 1.7.4\n"
18
"X-Poedit-Basepath: .\n"
19
"X-Poedit-KeywordsList: __;_e\n"
20
"X-Poedit-SearchPath-0: .\n"
21
"X-Poedit-SearchPath-1: ..\n"
22
+ "X-Poedit-SourceCharset: UTF-8\n"
23
24
#: ../classes/addons.php:110
25
+ msgid "Plugins"
26
msgstr ""
27
28
#: ../classes/addons.php:135
30
msgstr ""
31
32
#: ../classes/addons.php:136
33
+ msgid ""
34
+ "Display and edit Advanced Custom Fields fields in the posts overview in "
35
+ "seconds!"
36
msgstr ""
37
38
#: ../classes/addons.php:141
40
msgstr ""
41
42
#: ../classes/addons.php:142
43
+ msgid ""
44
+ "Enhance the products, orders and coupons overviews with new columns and "
45
+ "inline editing."
46
msgstr ""
47
48
+ #: ../classes/column.php:575
49
msgid "Thumbnail"
50
msgstr "صورة مصغرة"
51
52
+ #: ../classes/column.php:576
53
msgid "Medium"
54
msgstr "وسط"
55
56
+ #: ../classes/column.php:577
57
msgid "Large"
58
msgstr "كبير"
59
60
+ #: ../classes/column.php:578
61
msgid "Full"
62
msgstr "كامل"
63
64
+ #: ../classes/column.php:1020
65
msgid "Date Format"
66
msgstr "تنسيق التاريخ"