Version Description
Download this release
Release Info
Developer | machothemes |
Plugin | Strong Testimonials |
Version | 2.37 |
Comparing to | |
See all releases |
Code changes from version 2.36 to 2.37
- admin/about/addons.php +0 -0
- admin/about/class-strong-testimonials-about.php +8 -8
- admin/about/how-to.php +0 -0
- admin/about/links.php +0 -0
- admin/about/privacy.php +0 -0
- admin/about/whats-new.php +0 -0
- admin/admin-notices.php +3 -1
- admin/admin.php +0 -0
- admin/class-strong-testimonials-admin-category-list.php +0 -0
- admin/class-strong-testimonials-admin-list.php +0 -0
- admin/class-strong-testimonials-admin-scripts.php +8 -4
- admin/class-strong-testimonials-defaults.php +13 -21
- admin/class-strong-testimonials-exporter.php +80 -0
- admin/class-strong-testimonials-help.php +53 -53
- admin/class-strong-testimonials-list-table.php +1011 -946
- admin/class-strong-testimonials-page-shortcodes.php +2 -2
- admin/class-strong-testimonials-post-editor.php +8 -12
- admin/class-strong-testimonials-updater.php +9 -0
- admin/class-strong-views-list-table.php +5 -4
- admin/class-walker-strong-category-checklist.php +0 -0
- admin/class-walker-strong-form-category-checklist.php +0 -0
- admin/compat.php +0 -0
- admin/css/about.css +0 -0
- admin/css/admin-compat.css +0 -0
- admin/css/admin-form.css +0 -0
- admin/css/fields.css +0 -0
- admin/css/form-preview.css +0 -0
- admin/css/number-spinner.css +0 -0
- admin/css/order.css +0 -0
- admin/css/polylang.css +0 -0
- admin/css/post-editor.css +0 -0
- admin/css/views.css +0 -0
- admin/css/wpml.css +0 -0
- admin/custom-fields-ajax.php +0 -0
- admin/custom-fields.php +132 -112
- admin/form-preview.php +0 -0
- admin/img/logo-long.svg +0 -0
- admin/img/mascot.png +0 -0
- admin/img/quotes.png +0 -0
- admin/img/screen-options.png +0 -0
- admin/img/strong-date.png +0 -0
- admin/img/strong-testimonials-badge.png +0 -0
- admin/js/addon-licenses.js +0 -0
- admin/js/admin-compat.js +0 -0
- admin/js/admin-fields.js +6 -5
- admin/js/admin-form.js +0 -0
- admin/js/admin-global.js +0 -0
- admin/js/admin-order.js +0 -0
- admin/js/admin.js +0 -106
- admin/js/custom-spinner.js +0 -0
- admin/js/help.js +0 -0
- admin/js/lib/are-you-sure/jquery.are-you-sure.js +0 -0
- admin/js/lib/are-you-sure/jquery.are-you-sure.min.js +0 -0
- admin/js/lib/autosize/autosize.min.js +0 -0
- admin/js/rating-edit.js +0 -0
- admin/js/view-category-filter.js +0 -0
- admin/js/views.js +0 -0
- admin/menu/class-strong-testimonials-menu-fields.php +0 -0
- admin/menu/class-strong-testimonials-menu-settings.php +0 -0
- admin/menu/class-strong-testimonials-menu-shortcodes.php +0 -0
- admin/menu/class-strong-testimonials-menu-views.php +0 -0
- admin/menu/class-strong-testimonials-menu.php +0 -0
- admin/partials/fields/field-controls.php +1 -1
- admin/partials/fields/field-header.php +0 -0
- admin/partials/fields/field-label.php +0 -0
- admin/partials/fields/field-name.php +0 -0
- admin/partials/fields/field-text.php +0 -0
- admin/partials/fields/field-type.php +0 -0
- admin/partials/templates/form-preview-template.php +0 -0
- admin/partials/views/group-compat.php +0 -0
- admin/partials/views/group-extra.php +0 -0
- admin/partials/views/group-fields.php +0 -0
- admin/partials/views/group-form.php +0 -0
- admin/partials/views/group-query.php +3 -3
- admin/partials/views/group-slideshow.php +0 -0
- admin/partials/views/group-style.php +0 -0
- admin/partials/views/option-background.php +0 -0
- admin/partials/views/option-boilerplate.php +0 -0
- admin/partials/views/option-category.php +3 -3
- admin/partials/views/option-classes.php +0 -0
- admin/partials/views/option-client-section.php +0 -0
- admin/partials/views/option-color.php +0 -0
- admin/partials/views/option-content.php +3 -1
- admin/partials/views/option-divi.php +0 -0
- admin/partials/views/option-form-ajax.php +0 -0
- admin/partials/views/option-form-category.php +0 -0
- admin/partials/views/option-id.php +1 -1
- admin/partials/views/option-layout.php +0 -0
- admin/partials/views/option-limit.php +3 -3
- admin/partials/views/option-order.php +4 -4
- admin/partials/views/option-pagination.php +3 -2
- admin/partials/views/option-read-more-page.php +13 -12
- admin/partials/views/option-select.php +3 -3
- admin/partials/views/option-slideshow-behavior.php +1 -1
- admin/partials/views/option-slideshow-breakpoints.php +0 -0
- admin/partials/views/option-slideshow-navigation.php +0 -0
- admin/partials/views/option-slideshow-num.php +0 -0
- admin/partials/views/option-slideshow-transition.php +0 -0
- admin/partials/views/option-slideshow-type.php +0 -0
- admin/partials/views/option-template-list.php +0 -0
- admin/partials/views/option-thumbnail.php +0 -0
- admin/partials/views/option-title.php +0 -0
- admin/partials/views/template-input.php +0 -0
- admin/partials/views/template-not-found.php +0 -0
- admin/partials/views/template-options.php +0 -0
- admin/partials/views/view-mode.php +0 -0
- admin/partials/views/view-name.php +0 -0
- admin/partials/views/view-shortcode.php +0 -0
- admin/scss/_partials/_background.scss +0 -0
- admin/scss/_partials/_category-checkboxes.scss +0 -0
- admin/scss/_partials/_category-filter.scss +0 -0
- admin/scss/_partials/_checkbox-icons.scss +0 -0
- admin/scss/_partials/_custom-fields.scss +0 -0
- admin/scss/_partials/_elements.scss +0 -0
- admin/scss/_partials/_form-table.scss +0 -0
- admin/scss/_partials/_help-tab.scss +0 -0
- admin/scss/_partials/_inner-table.scss +0 -0
- admin/scss/_partials/_inputs.scss +0 -0
- admin/scss/_partials/_layout-example-columns.scss +0 -0
- admin/scss/_partials/_layout-example-grid.scss +0 -0
- admin/scss/_partials/_layout-example-masonry.scss +0 -0
- admin/scss/_partials/_layout-examples.scss +0 -0
- admin/scss/_partials/_layout.scss +0 -0
- admin/scss/_partials/_list-radio-buttons.scss +0 -0
- admin/scss/_partials/_misc.scss +0 -0
- admin/scss/_partials/_screenshots.scss +0 -0
- admin/scss/_partials/_sticky-views.scss +0 -0
- admin/scss/_partials/_structure.scss +0 -0
- admin/scss/_partials/_template.scss +0 -0
- admin/scss/_partials/_view-info.scss +0 -0
- admin/scss/about.scss +0 -0
- admin/scss/admin-compat.scss +0 -0
- admin/scss/number-spinner.scss +0 -0
- admin/scss/post-editor.scss +0 -0
- admin/scss/views.scss +0 -0
- admin/settings/class-strong-testimonials-settings-compat.php +3 -3
- admin/settings/class-strong-testimonials-settings-form.php +1 -5
- admin/settings/class-strong-testimonials-settings-general.php +13 -12
- admin/settings/class-strong-testimonials-settings-licenses.php +0 -0
- admin/settings/class-strong-testimonials-settings.php +5 -5
- admin/settings/partials/email-from.php +0 -0
- admin/settings/partials/email-to.php +0 -0
- admin/settings/partials/email.php +0 -0
- admin/settings/partials/form.php +86 -101
- admin/settings/partials/general.php +12 -0
- admin/settings/partials/licenses.php +0 -0
- admin/settings/partials/recipient.php +0 -0
- admin/view-list-order.php +0 -0
- admin/views-ajax.php +0 -0
- admin/views-validate.php +0 -0
- admin/views.php +12 -11
- {admin → assets}/css/admin.css +202 -374
- assets/js/admin-js.js +261 -0
- assets/src/js/admin.js +125 -0
- assets/src/js/modules/notice.js +21 -0
- assets/src/js/modules/range-slider.js +26 -0
- assets/src/scss/admin.scss +853 -0
- assets/src/scss/admin/_notices.scss +1 -0
- assets/src/scss/admin/_pages.scss +28 -0
- changelog.txt +12 -0
- includes/class-strong-form.php +0 -0
- includes/class-strong-log.php +0 -0
- includes/class-strong-mail.php +0 -0
- includes/class-strong-templates.php +0 -0
- includes/class-strong-testimonials-order.php +0 -0
- includes/class-strong-testimonials-privacy.php +0 -0
- includes/class-strong-testimonials-render.php +3 -1
- includes/class-strong-testimonials-shortcode-average.php +0 -0
- includes/class-strong-testimonials-shortcode-count.php +0 -0
- includes/class-strong-testimonials-shortcode.php +0 -0
- includes/class-strong-view-display.php +0 -0
- includes/class-strong-view-form.php +0 -0
- includes/class-strong-view-slideshow.php +0 -0
- includes/class-strong-view.php +0 -0
- includes/class-walker-strong-category-checklist-front.php +0 -0
- includes/deprecated.php +0 -0
- includes/filters.php +118 -0
- includes/functions-activation.php +0 -0
- includes/functions-content.php +3 -3
- includes/functions-image.php +0 -0
- includes/functions-rating.php +0 -0
- includes/functions-template-form.php +111 -101
- includes/functions-template.php +3 -3
- includes/functions-views.php +0 -0
- includes/functions.php +23 -2
- includes/integrations/class-integration-captcha-pro.php +0 -0
- includes/integrations/class-integration-captcha.php +0 -0
- includes/integrations/class-integration-google-captcha.php +0 -0
- includes/integrations/class-integration-really-simple-captcha.php +0 -0
- includes/l10n-polylang.php +0 -0
- includes/l10n-wpml.php +0 -0
- includes/post-types.php +15 -15
- includes/retro.php +0 -0
- includes/scripts.php +2 -0
- includes/widget2.php +6 -7
- languages/strong-testimonials-ar_AR.mo +0 -0
- languages/strong-testimonials-ar_AR.po +0 -0
- languages/strong-testimonials-es_ES.mo +0 -0
- languages/strong-testimonials-es_ES.po +0 -0
- languages/strong-testimonials-fa_IR.mo +0 -0
- languages/strong-testimonials-fa_IR.po +0 -0
- languages/strong-testimonials-fr_FR.mo +0 -0
- languages/strong-testimonials-fr_FR.po +0 -0
- languages/strong-testimonials-he_IL.mo +0 -0
- languages/strong-testimonials-he_IL.po +0 -0
- languages/strong-testimonials-pt_BR.mo +0 -0
- languages/strong-testimonials-pt_BR.po +0 -0
- languages/strong-testimonials-ru_RU.mo +0 -0
- languages/strong-testimonials-ru_RU.po +0 -0
- languages/strong-testimonials-sv_SE.mo +0 -0
- languages/strong-testimonials-sv_SE.po +0 -0
- languages/strong-testimonials.pot +0 -0
- license.txt +0 -0
- public/css/animate.min.css +0 -0
- public/css/columns.css +0 -0
- public/css/grid.css +0 -0
- public/css/masonry.css +0 -0
- public/css/rating-display.css +0 -0
- public/css/rating-form.css +0 -0
- public/css/slider-controls-full-buttons.css +0 -0
- public/css/slider-controls-full-buttons2.css +0 -0
- public/css/slider-controls-full-buttons3.css +0 -0
- public/css/slider-controls-full-text.css +0 -0
- public/css/slider-controls-sides-buttons-pager-buttons.css +0 -0
- public/css/slider-controls-sides-buttons-pager-text.css +0 -0
- public/css/slider-controls-sides-buttons.css +0 -0
- public/css/slider-controls-sides-buttons2-pager-buttons.css +0 -0
- public/css/slider-controls-sides-buttons2-pager-text.css +0 -0
- public/css/slider-controls-sides-buttons2.css +0 -0
- public/css/slider-controls-sides-buttons3-pager-buttons.css +0 -0
- public/css/slider-controls-sides-buttons3-pager-text.css +0 -0
- public/css/slider-controls-sides-buttons3.css +0 -0
- public/css/slider-controls-sides-inside-buttons-pager-buttons.css +0 -0
- public/css/slider-controls-sides-inside-buttons-pager-text.css +0 -0
- public/css/slider-controls-sides-inside-buttons.css +0 -0
- public/css/slider-controls-sides-inside-buttons2-pager-buttons.css +0 -0
- public/css/slider-controls-sides-inside-buttons2-pager-text.css +0 -0
- public/css/slider-controls-sides-inside-buttons2.css +0 -0
- public/css/slider-controls-sides-inside-buttons3-pager-buttons.css +0 -0
- public/css/slider-controls-sides-inside-buttons3-pager-text.css +0 -0
- public/css/slider-controls-sides-inside-buttons3.css +0 -0
- public/css/slider-controls-sides-outside-buttons-pager-buttons.css +0 -0
- public/css/slider-controls-sides-outside-buttons-pager-text.css +0 -0
- public/css/slider-controls-sides-outside-buttons.css +0 -0
- public/css/slider-controls-sides-outside-buttons2-pager-buttons.css +0 -0
- public/css/slider-controls-sides-outside-buttons2-pager-text.css +0 -0
- public/css/slider-controls-sides-outside-buttons2.css +0 -0
- public/css/slider-controls-sides-outside-buttons3-pager-buttons.css +0 -0
- public/css/slider-controls-sides-outside-buttons3-pager-text.css +0 -0
- public/css/slider-controls-sides-outside-buttons3.css +0 -0
- public/css/slider-controls-simple-buttons-pager-buttons.css +0 -0
- public/css/slider-controls-simple-buttons-pager-text.css +0 -0
- public/css/slider-controls-simple-buttons.css +0 -0
- public/css/slider-controls-simple-buttons2-pager-buttons.css +0 -0
- public/css/slider-controls-simple-buttons2-pager-text.css +0 -0
- public/css/slider-controls-simple-buttons2.css +0 -0
- public/css/slider-controls-simple-buttons3-pager-buttons.css +0 -0
- public/css/slider-controls-simple-buttons3-pager-text.css +0 -0
- public/css/slider-controls-simple-buttons3.css +0 -0
- public/css/slider-controls-simple-text-pager-buttons.css +0 -0
- public/css/slider-controls-simple-text-pager-text.css +0 -0
- public/css/slider-controls-simple-text.css +0 -0
- public/css/slider-pager-buttons.css +0 -0
- public/css/slider-pager-text.css +0 -0
- public/fonts/font-awesome-4.6.3/css/font-awesome.css +0 -0
- public/fonts/font-awesome-4.6.3/css/font-awesome.min.css +0 -0
- public/fonts/font-awesome-4.6.3/css/index.php +0 -0
- public/fonts/font-awesome-4.6.3/fonts/FontAwesome.otf +0 -0
- public/fonts/font-awesome-4.6.3/fonts/fontawesome-webfont.eot +0 -0
- public/fonts/font-awesome-4.6.3/fonts/fontawesome-webfont.svg +0 -0
- public/fonts/font-awesome-4.6.3/fonts/fontawesome-webfont.ttf +0 -0
- public/fonts/font-awesome-4.6.3/fonts/fontawesome-webfont.woff +0 -0
- public/fonts/font-awesome-4.6.3/fonts/fontawesome-webfont.woff2 +0 -0
- public/index.php +0 -0
- public/js/controller.js +10 -1
- public/js/controller.min.js +1 -1
- public/js/lib/actual/jquery.actual.js +0 -0
- public/js/lib/actual/jquery.actual.min.js +0 -0
- public/js/lib/form-validation/form-validation.js +0 -0
- public/js/lib/form-validation/form-validation.min.js +0 -0
- public/js/lib/imagesloaded/imagesloaded.pkgd.min.js +0 -0
- public/js/lib/readmore/readmore.js +0 -0
- public/js/lib/readmore/readmore.min.js +0 -0
- public/js/lib/strongpager/jquery.strongpager.js +0 -0
- public/js/lib/strongpager/jquery.strongpager.min.js +0 -0
- public/js/lib/strongslider/LICENSE.md +0 -0
- public/js/lib/strongslider/jquery.strongslider.js +1972 -1969
- public/js/lib/strongslider/jquery.strongslider.min.js +1 -1
- public/js/lib/validate/additional-methods.js +0 -0
- public/js/lib/validate/additional-methods.min.js +0 -0
- public/js/lib/validate/jquery.validate.js +0 -0
- public/js/lib/validate/jquery.validate.min.js +0 -0
- public/js/lib/validate/localization/messages_ar.js +0 -0
- public/js/lib/validate/localization/messages_ar.min.js +0 -0
- public/js/lib/validate/localization/messages_az.js +0 -0
- public/js/lib/validate/localization/messages_az.min.js +0 -0
- public/js/lib/validate/localization/messages_bg.js +0 -0
- public/js/lib/validate/localization/messages_bg.min.js +0 -0
- public/js/lib/validate/localization/messages_bn_BD.js +0 -0
- public/js/lib/validate/localization/messages_bn_BD.min.js +0 -0
- public/js/lib/validate/localization/messages_ca.js +0 -0
- public/js/lib/validate/localization/messages_ca.min.js +0 -0
- public/js/lib/validate/localization/messages_cs.js +0 -0
- public/js/lib/validate/localization/messages_cs.min.js +0 -0
- public/js/lib/validate/localization/messages_da.js +0 -0
- public/js/lib/validate/localization/messages_da.min.js +0 -0
- public/js/lib/validate/localization/messages_de.js +0 -0
- public/js/lib/validate/localization/messages_de.min.js +0 -0
- public/js/lib/validate/localization/messages_el.js +0 -0
- public/js/lib/validate/localization/messages_el.min.js +0 -0
- public/js/lib/validate/localization/messages_es.js +0 -0
- public/js/lib/validate/localization/messages_es.min.js +0 -0
- public/js/lib/validate/localization/messages_es_AR.js +0 -0
- public/js/lib/validate/localization/messages_es_AR.min.js +0 -0
- public/js/lib/validate/localization/messages_es_PE.js +0 -0
- public/js/lib/validate/localization/messages_es_PE.min.js +0 -0
- public/js/lib/validate/localization/messages_et.js +0 -0
- public/js/lib/validate/localization/messages_et.min.js +0 -0
- public/js/lib/validate/localization/messages_eu.js +0 -0
- public/js/lib/validate/localization/messages_eu.min.js +0 -0
- public/js/lib/validate/localization/messages_fa.js +0 -0
- public/js/lib/validate/localization/messages_fa.min.js +0 -0
- public/js/lib/validate/localization/messages_fi.js +0 -0
- public/js/lib/validate/localization/messages_fi.min.js +0 -0
- public/js/lib/validate/localization/messages_fr.js +0 -0
- public/js/lib/validate/localization/messages_fr.min.js +0 -0
- public/js/lib/validate/localization/messages_ge.js +0 -0
- public/js/lib/validate/localization/messages_ge.min.js +0 -0
- public/js/lib/validate/localization/messages_gl.js +0 -0
- public/js/lib/validate/localization/messages_gl.min.js +0 -0
- public/js/lib/validate/localization/messages_he.js +0 -0
- public/js/lib/validate/localization/messages_he.min.js +0 -0
- public/js/lib/validate/localization/messages_hr.js +0 -0
- public/js/lib/validate/localization/messages_hr.min.js +0 -0
- public/js/lib/validate/localization/messages_hu.js +0 -0
- public/js/lib/validate/localization/messages_hu.min.js +0 -0
- public/js/lib/validate/localization/messages_hy_AM.js +0 -0
- public/js/lib/validate/localization/messages_hy_AM.min.js +0 -0
- public/js/lib/validate/localization/messages_id.js +0 -0
- public/js/lib/validate/localization/messages_id.min.js +0 -0
- public/js/lib/validate/localization/messages_is.js +0 -0
- public/js/lib/validate/localization/messages_is.min.js +0 -0
- public/js/lib/validate/localization/messages_it.js +0 -0
- public/js/lib/validate/localization/messages_it.min.js +0 -0
- public/js/lib/validate/localization/messages_ja.js +0 -0
- public/js/lib/validate/localization/messages_ja.min.js +0 -0
- public/js/lib/validate/localization/messages_ka.js +0 -0
- public/js/lib/validate/localization/messages_ka.min.js +0 -0
- public/js/lib/validate/localization/messages_kk.js +0 -0
- public/js/lib/validate/localization/messages_kk.min.js +0 -0
- public/js/lib/validate/localization/messages_ko.js +0 -0
- public/js/lib/validate/localization/messages_ko.min.js +0 -0
- public/js/lib/validate/localization/messages_lt.js +0 -0
- public/js/lib/validate/localization/messages_lt.min.js +0 -0
- public/js/lib/validate/localization/messages_lv.js +0 -0
- public/js/lib/validate/localization/messages_lv.min.js +0 -0
- public/js/lib/validate/localization/messages_mk.js +0 -0
- public/js/lib/validate/localization/messages_mk.min.js +0 -0
- public/js/lib/validate/localization/messages_my.js +0 -0
- public/js/lib/validate/localization/messages_my.min.js +0 -0
- public/js/lib/validate/localization/messages_nl.js +0 -0
- public/js/lib/validate/localization/messages_nl.min.js +0 -0
- public/js/lib/validate/localization/messages_no.js +0 -0
- public/js/lib/validate/localization/messages_no.min.js +0 -0
- public/js/lib/validate/localization/messages_pl.js +0 -0
- public/js/lib/validate/localization/messages_pl.min.js +0 -0
- public/js/lib/validate/localization/messages_pt_BR.js +0 -0
- public/js/lib/validate/localization/messages_pt_BR.min.js +0 -0
- public/js/lib/validate/localization/messages_pt_PT.js +0 -0
- public/js/lib/validate/localization/messages_pt_PT.min.js +0 -0
- public/js/lib/validate/localization/messages_ro.js +0 -0
- public/js/lib/validate/localization/messages_ro.min.js +0 -0
- public/js/lib/validate/localization/messages_ru.js +0 -0
- public/js/lib/validate/localization/messages_ru.min.js +0 -0
- public/js/lib/validate/localization/messages_si.js +0 -0
- public/js/lib/validate/localization/messages_si.min.js +0 -0
- public/js/lib/validate/localization/messages_sk.js +0 -0
- public/js/lib/validate/localization/messages_sk.min.js +0 -0
- public/js/lib/validate/localization/messages_sl.js +0 -0
- public/js/lib/validate/localization/messages_sl.min.js +0 -0
- public/js/lib/validate/localization/messages_sr.js +0 -0
- public/js/lib/validate/localization/messages_sr.min.js +0 -0
- public/js/lib/validate/localization/messages_sr_lat.js +0 -0
- public/js/lib/validate/localization/messages_sr_lat.min.js +0 -0
- public/js/lib/validate/localization/messages_sv.js +0 -0
- public/js/lib/validate/localization/messages_sv.min.js +0 -0
- public/js/lib/validate/localization/messages_th.js +0 -0
- public/js/lib/validate/localization/messages_th.min.js +0 -0
- public/js/lib/validate/localization/messages_tj.js +0 -0
- public/js/lib/validate/localization/messages_tj.min.js +0 -0
- public/js/lib/validate/localization/messages_tr.js +0 -0
- public/js/lib/validate/localization/messages_tr.min.js +0 -0
- public/js/lib/validate/localization/messages_uk.js +0 -0
- public/js/lib/validate/localization/messages_uk.min.js +0 -0
- public/js/lib/validate/localization/messages_ur.js +0 -0
- public/js/lib/validate/localization/messages_ur.min.js +0 -0
- public/js/lib/validate/localization/messages_vi.js +0 -0
- public/js/lib/validate/localization/messages_vi.min.js +0 -0
- public/js/lib/validate/localization/messages_zh.js +0 -0
- public/js/lib/validate/localization/messages_zh.min.js +0 -0
- public/js/lib/validate/localization/messages_zh_TW.js +0 -0
- public/js/lib/validate/localization/messages_zh_TW.min.js +0 -0
- public/js/lib/validate/localization/methods_de.js +0 -0
- public/js/lib/validate/localization/methods_de.min.js +0 -0
- public/js/lib/validate/localization/methods_es_CL.js +0 -0
- public/js/lib/validate/localization/methods_es_CL.min.js +0 -0
- public/js/lib/validate/localization/methods_fi.js +0 -0
- public/js/lib/validate/localization/methods_fi.min.js +0 -0
- public/js/lib/validate/localization/methods_nl.js +0 -0
- public/js/lib/validate/localization/methods_nl.min.js +0 -0
- public/js/lib/validate/localization/methods_pt.js +0 -0
- public/js/lib/validate/localization/methods_pt.min.js +0 -0
- public/js/lib/verge/verge.js +0 -0
- public/js/lib/verge/verge.min.js +0 -0
- public/scss/_partials/_base.scss +0 -0
- public/scss/_partials/_buttons.scss +0 -0
- public/scss/_partials/_buttons2.scss +0 -0
- public/scss/_partials/_buttons3.scss +0 -0
- public/scss/_partials/_inside.scss +0 -0
- public/scss/_partials/_outside.scss +0 -0
- public/scss/_partials/_pager_buttons.scss +0 -0
- public/scss/_partials/_pager_inside.scss +0 -0
- public/scss/_partials/_pager_text.scss +0 -0
- public/scss/_partials/_sides.scss +0 -0
- public/scss/_partials/_sides_outside.scss +0 -0
- public/scss/_partials/_sides_pager.scss +0 -0
- public/scss/_partials/_text.scss +0 -0
- public/scss/slider-controls-full-buttons.scss +0 -0
- public/scss/slider-controls-full-buttons2.scss +0 -0
- public/scss/slider-controls-full-buttons3.scss +0 -0
- public/scss/slider-controls-full-text.scss +0 -0
- public/scss/slider-controls-sides-buttons-pager-buttons.scss +0 -0
- public/scss/slider-controls-sides-buttons-pager-text.scss +0 -0
- public/scss/slider-controls-sides-buttons.scss +0 -0
- public/scss/slider-controls-sides-buttons2-pager-buttons.scss +0 -0
- public/scss/slider-controls-sides-buttons2-pager-text.scss +0 -0
- public/scss/slider-controls-sides-buttons2.scss +0 -0
- public/scss/slider-controls-sides-buttons3-pager-buttons.scss +0 -0
- public/scss/slider-controls-sides-buttons3-pager-text.scss +0 -0
- public/scss/slider-controls-sides-buttons3.scss +0 -0
- public/scss/slider-controls-sides-outside-buttons-pager-buttons.scss +0 -0
- public/scss/slider-controls-sides-outside-buttons-pager-text.scss +0 -0
- public/scss/slider-controls-sides-outside-buttons.scss +0 -0
- public/scss/slider-controls-sides-outside-buttons2-pager-buttons.scss +0 -0
- public/scss/slider-controls-sides-outside-buttons2-pager-text.scss +0 -0
- public/scss/slider-controls-sides-outside-buttons2.scss +0 -0
- public/scss/slider-controls-sides-outside-buttons3-pager-buttons.scss +0 -0
- public/scss/slider-controls-sides-outside-buttons3-pager-text.scss +0 -0
- public/scss/slider-controls-sides-outside-buttons3.scss +0 -0
- public/scss/slider-controls-simple-buttons-pager-buttons.scss +0 -0
- public/scss/slider-controls-simple-buttons-pager-text.scss +0 -0
- public/scss/slider-controls-simple-buttons.scss +0 -0
- public/scss/slider-controls-simple-buttons2-pager-buttons.scss +0 -0
- public/scss/slider-controls-simple-buttons2-pager-text.scss +0 -0
- public/scss/slider-controls-simple-buttons2.scss +0 -0
- public/scss/slider-controls-simple-buttons3-pager-buttons.scss +0 -0
- public/scss/slider-controls-simple-buttons3-pager-text.scss +0 -0
- public/scss/slider-controls-simple-buttons3.scss +0 -0
- public/scss/slider-controls-simple-text-pager-buttons.scss +0 -0
- public/scss/slider-controls-simple-text-pager-text.scss +0 -0
- public/scss/slider-controls-simple-text.scss +0 -0
- public/scss/slider-pager-buttons.scss +0 -0
- public/scss/slider-pager-text.scss +0 -0
- readme.txt +2 -2
- strong-testimonials.php +7 -2
- templates-scss/_mixins/_testimonial.scss +0 -0
- templates-scss/_partials/_base.scss +0 -0
- templates-scss/_partials/_clear.scss +0 -0
- templates-scss/_partials/_form-wait.scss +0 -0
- templates-scss/_partials/_pagination-modern.scss +0 -0
- templates-scss/_partials/_pagination-simple.scss +0 -0
- templates-scss/_partials/_pagination-standard.scss +0 -0
- templates-scss/_partials/_responsive-no-heading-background.scss +0 -0
- templates-scss/_partials/_responsive.scss +0 -0
- templates-scss/_partials/_rtl.scss +0 -0
- templates-scss/_partials/_structure-form.scss +0 -0
- templates-scss/bold/content.scss +0 -0
- templates-scss/default-form/form.scss +0 -0
- templates-scss/default/content.scss +0 -0
- templates-scss/modern/content.scss +0 -0
- templates-scss/simple-form/form.scss +0 -0
- templates-scss/simple/content.scss +0 -0
- templates-scss/small-widget/content.scss +0 -0
- templates-scss/unstyled-form/form.scss +0 -0
- templates/bold/config.json +0 -0
- templates/bold/content.css +0 -0
- templates/bold/content.php +0 -0
- templates/default-form/config.json +0 -0
- templates/default-form/form.css +0 -0
- templates/default-form/form.php +0 -0
- templates/default/config.json +0 -0
- templates/default/content.css +0 -0
- templates/default/content.php +0 -0
- templates/default/img/quotes.png +0 -0
- templates/index.php +0 -0
- templates/modern/config.json +0 -0
- templates/modern/content.css +0 -0
- templates/modern/content.php +0 -0
- templates/simple-form/config.json +0 -0
- templates/simple-form/form.css +0 -0
- templates/simple-form/form.php +0 -0
- templates/simple/config.json +0 -0
- templates/simple/content.css +0 -0
- templates/simple/content.php +0 -0
- templates/small-widget/config.json +0 -0
- templates/small-widget/content.css +0 -0
- templates/small-widget/content.php +0 -0
- templates/unstyled-form/config.json +0 -0
- templates/unstyled-form/form.css +0 -0
- templates/unstyled-form/form.php +0 -0
- templates/unstyled/config.json +0 -0
- templates/unstyled/content.php +0 -0
- uninstall.php +0 -0
- wpml-config.xml +0 -0
admin/about/addons.php
CHANGED
File without changes
|
admin/about/class-strong-testimonials-about.php
CHANGED
@@ -39,9 +39,9 @@ class Strong_Testimonials_About {
|
|
39 |
*/
|
40 |
public function get_submenu() {
|
41 |
return array(
|
42 |
-
'page_title' => __( 'About' ),
|
43 |
-
|
44 |
-
|
45 |
'menu_slug' => 'about-strong-testimonials',
|
46 |
'function' => array( $this, 'about_page' ),
|
47 |
);
|
@@ -57,21 +57,21 @@ class Strong_Testimonials_About {
|
|
57 |
?>
|
58 |
<div class="wrap about-wrap">
|
59 |
|
|
|
|
|
60 |
<?php /* translators: %s is the plugin version number */ ?>
|
61 |
<h1><?php printf( __( 'Welcome to Strong Testimonials %s', 'strong-testimonials' ), $major_minor ); ?></h1>
|
62 |
|
63 |
<p class="about-text">
|
64 |
-
|
65 |
<?php /* translators: %s is the plugin version number */ ?>
|
66 |
</p>
|
67 |
-
|
68 |
-
<div class="wp-badge strong-testimonials"><?php printf( __( 'Version %s' ), $major_minor ); ?></div>
|
69 |
|
70 |
<h2 class="nav-tab-wrapper wp-clearfix">
|
71 |
|
72 |
<a href="<?php echo add_query_arg( 'tab', 'how-to', $url ); ?>" class="nav-tab <?php echo $active_tab == 'how-to' ? 'nav-tab-active' : ''; ?>"><?php _e( 'How To', 'strong-testimonials' ); ?></a>
|
73 |
-
|
74 |
-
<a href="<?php echo add_query_arg( 'tab', 'privacy', $url ); ?>" class="nav-tab <?php echo $active_tab == 'privacy' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Privacy' ); ?></a>
|
75 |
|
76 |
</h2>
|
77 |
|
39 |
*/
|
40 |
public function get_submenu() {
|
41 |
return array(
|
42 |
+
'page_title' => __( 'About', 'strong-testimonials' ),
|
43 |
+
'menu_title' => __( 'About', 'strong-testimonials' ),
|
44 |
+
'capability' => 'strong_testimonials_about',
|
45 |
'menu_slug' => 'about-strong-testimonials',
|
46 |
'function' => array( $this, 'about_page' ),
|
47 |
);
|
57 |
?>
|
58 |
<div class="wrap about-wrap">
|
59 |
|
60 |
+
<img class="wpmst-mascot" src="<?php echo esc_url( WPMTST_ADMIN_URL ); ?>/img/mascot.png" />
|
61 |
+
|
62 |
<?php /* translators: %s is the plugin version number */ ?>
|
63 |
<h1><?php printf( __( 'Welcome to Strong Testimonials %s', 'strong-testimonials' ), $major_minor ); ?></h1>
|
64 |
|
65 |
<p class="about-text">
|
66 |
+
<?php esc_html_e( 'Thank you for updating to the latest version!', 'strong-testimonials' ); ?>
|
67 |
<?php /* translators: %s is the plugin version number */ ?>
|
68 |
</p>
|
69 |
+
<br/>
|
|
|
70 |
|
71 |
<h2 class="nav-tab-wrapper wp-clearfix">
|
72 |
|
73 |
<a href="<?php echo add_query_arg( 'tab', 'how-to', $url ); ?>" class="nav-tab <?php echo $active_tab == 'how-to' ? 'nav-tab-active' : ''; ?>"><?php _e( 'How To', 'strong-testimonials' ); ?></a>
|
74 |
+
<a href="<?php echo esc_url( add_query_arg( 'tab', 'privacy', $url ) ); ?>" class="nav-tab <?php echo $active_tab == 'privacy' ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Privacy', 'strong-testimonials' ); ?></a>
|
|
|
75 |
|
76 |
</h2>
|
77 |
|
admin/about/how-to.php
CHANGED
File without changes
|
admin/about/links.php
CHANGED
File without changes
|
admin/about/privacy.php
CHANGED
File without changes
|
admin/about/whats-new.php
CHANGED
File without changes
|
admin/admin-notices.php
CHANGED
@@ -182,8 +182,10 @@ function wpmtst_admin_feedback_notice() {
|
|
182 |
if ( $screen->id !== 'edit-wpm-testimonial' ) {
|
183 |
return;
|
184 |
}
|
|
|
185 |
?>
|
186 |
-
<div class="notice wpmtst-notice">
|
|
|
187 |
<img src="<?php echo esc_url( WPMTST_ADMIN_URL ); ?>/img/logo-long.svg" width="400"/>
|
188 |
<p><?php esc_html_e( 'Do you enjoy using Strong Testimonials? Please take a minute to suggest a feature or tell us what you think.', 'strong-testimonials' ); ?></p>
|
189 |
<a class="button" target="_blank" href="https://docs.google.com/forms/d/e/1FAIpQLScch0AchtnzxJsSrjUcW9ypcr1fZ9r-vyk3emEp8Sv47brb2g/viewform"><?php esc_html_e( 'Submit Feedback', 'strong-testimonials' ); ?></a>
|
182 |
if ( $screen->id !== 'edit-wpm-testimonial' ) {
|
183 |
return;
|
184 |
}
|
185 |
+
|
186 |
?>
|
187 |
+
<div class="notice wpmtst-notice is-dismissible" data-key="feedback-notice" data-nonce="<?php echo esc_attr( wp_create_nonce( "wpmtst-admin" ) ); ?>">
|
188 |
+
<img class="wpmst-mascot" src="<?php echo esc_url( WPMTST_ADMIN_URL ); ?>/img/mascot.png" />
|
189 |
<img src="<?php echo esc_url( WPMTST_ADMIN_URL ); ?>/img/logo-long.svg" width="400"/>
|
190 |
<p><?php esc_html_e( 'Do you enjoy using Strong Testimonials? Please take a minute to suggest a feature or tell us what you think.', 'strong-testimonials' ); ?></p>
|
191 |
<a class="button" target="_blank" href="https://docs.google.com/forms/d/e/1FAIpQLScch0AchtnzxJsSrjUcW9ypcr1fZ9r-vyk3emEp8Sv47brb2g/viewform"><?php esc_html_e( 'Submit Feedback', 'strong-testimonials' ); ?></a>
|
admin/admin.php
CHANGED
File without changes
|
admin/class-strong-testimonials-admin-category-list.php
CHANGED
File without changes
|
admin/class-strong-testimonials-admin-list.php
CHANGED
File without changes
|
admin/class-strong-testimonials-admin-scripts.php
CHANGED
@@ -56,14 +56,18 @@ class Strong_Testimonials_Admin_Scripts {
|
|
56 |
$plugin_version,
|
57 |
true );
|
58 |
|
59 |
-
|
60 |
-
|
|
|
|
|
61 |
array( 'jquery', 'underscore' ),
|
62 |
$plugin_version,
|
63 |
true );
|
64 |
|
65 |
-
|
66 |
-
|
|
|
|
|
67 |
array( 'wpmtst-font-awesome' ),
|
68 |
$plugin_version );
|
69 |
|
56 |
$plugin_version,
|
57 |
true );
|
58 |
|
59 |
+
|
60 |
+
wp_register_script(
|
61 |
+
'wpmtst-admin-script',
|
62 |
+
WPMTST_ASSETS_JS . 'admin-js.js',
|
63 |
array( 'jquery', 'underscore' ),
|
64 |
$plugin_version,
|
65 |
true );
|
66 |
|
67 |
+
|
68 |
+
wp_register_style(
|
69 |
+
'wpmtst-admin-style',
|
70 |
+
WPMTST_ASSETS_CSS . 'admin.css',
|
71 |
array( 'wpmtst-font-awesome' ),
|
72 |
$plugin_version );
|
73 |
|
admin/class-strong-testimonials-defaults.php
CHANGED
@@ -29,18 +29,19 @@ class Strong_Testimonials_Defaults {
|
|
29 |
*/
|
30 |
public static function get_options() {
|
31 |
$default_options = array(
|
32 |
-
'embed_width'
|
33 |
-
'load_font_awesome'
|
34 |
-
'nofollow'
|
35 |
-
'pending_indicator'
|
36 |
-
'remove_whitespace'
|
37 |
-
'reorder'
|
38 |
-
'support_comments'
|
39 |
-
'support_custom_fields'
|
40 |
-
'
|
41 |
-
'
|
42 |
-
'
|
43 |
-
'
|
|
|
44 |
);
|
45 |
|
46 |
return $default_options;
|
@@ -865,15 +866,6 @@ class Strong_Testimonials_Defaults {
|
|
865 |
'installed' => false,
|
866 |
'active' => false,
|
867 |
),
|
868 |
-
'really-simple-captcha' => array(
|
869 |
-
'name' => 'Really Simple Captcha by Takayuki Miyoshi (free)',
|
870 |
-
'class' => 'Really_Simple_Captcha',
|
871 |
-
'file' => 'really-simple-captcha/really-simple-captcha.php',
|
872 |
-
'search' => 'plugin-install.php?tab=search&s=Really+Simple+Captcha',
|
873 |
-
'url' => 'https://wordpress.org/plugins/really-simple-captcha/',
|
874 |
-
'installed' => false,
|
875 |
-
'active' => false,
|
876 |
-
),
|
877 |
);
|
878 |
|
879 |
return $plugins;
|
29 |
*/
|
30 |
public static function get_options() {
|
31 |
$default_options = array(
|
32 |
+
'embed_width' => '',
|
33 |
+
'load_font_awesome' => true,
|
34 |
+
'nofollow' => false,
|
35 |
+
'pending_indicator' => true,
|
36 |
+
'remove_whitespace' => true,
|
37 |
+
'reorder' => false,
|
38 |
+
'support_comments' => false,
|
39 |
+
'support_custom_fields' => false,
|
40 |
+
'single_testimonial_slug' => 'testimonial',
|
41 |
+
'scrolltop' => true,
|
42 |
+
'scrolltop_offset' => 80,
|
43 |
+
'no_lazyload' => true,
|
44 |
+
'touch_enabled' => true,
|
45 |
);
|
46 |
|
47 |
return $default_options;
|
866 |
'installed' => false,
|
867 |
'active' => false,
|
868 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
869 |
);
|
870 |
|
871 |
return $plugins;
|
admin/class-strong-testimonials-exporter.php
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class Strong_Testimonials_Exporter
|
5 |
+
*
|
6 |
+
* exports testimonials along with their featured media
|
7 |
+
*
|
8 |
+
* @since 2.36
|
9 |
+
*/
|
10 |
+
class Strong_Testimonials_Exporter {
|
11 |
+
|
12 |
+
public $args = array();
|
13 |
+
public $query_done = false;
|
14 |
+
|
15 |
+
public function __construct() {
|
16 |
+
add_action( 'export_wp', array( $this, 'export_wp' ), 10, 1 );
|
17 |
+
add_filter( 'export_query', array( $this, 'export_query' ), 10, 1 );
|
18 |
+
}
|
19 |
+
|
20 |
+
public function export_wp( $args ) {
|
21 |
+
$this->args = $args;
|
22 |
+
add_filter( 'query', array( $this, 'export_query_filter' ), 10, 1 );
|
23 |
+
}
|
24 |
+
|
25 |
+
public function export_query_filter( $query ) {
|
26 |
+
|
27 |
+
global $wpdb;
|
28 |
+
if ( false === $this->query_done && 0 === strpos( $query, "SELECT ID FROM {$wpdb->posts} " ) ) {
|
29 |
+
$this->query_done = true;
|
30 |
+
remove_filter( 'query', array( $this, 'export_query_filter' ), 10 );
|
31 |
+
$query = apply_filters( 'export_query', $query );
|
32 |
+
}
|
33 |
+
return $query;
|
34 |
+
}
|
35 |
+
|
36 |
+
public function export_query( $query ) {
|
37 |
+
global $wpdb;
|
38 |
+
|
39 |
+
if ( isset( $this->args['content'] ) && 'wpm-testimonial' === $this->args['content'] ) {
|
40 |
+
|
41 |
+
$attachments = $wpdb->get_results( "SELECT ID, guid, post_parent FROM {$wpdb->posts} WHERE post_type = 'attachment'", OBJECT_K );
|
42 |
+
if ( empty( $attachments ) ) {
|
43 |
+
return $query;
|
44 |
+
}
|
45 |
+
|
46 |
+
$ids = array();
|
47 |
+
|
48 |
+
// get attachments who are post thumbnails
|
49 |
+
$posts = $wpdb->get_col( $query );
|
50 |
+
if ( $posts ) {
|
51 |
+
$ids = $wpdb->get_col( sprintf( "SELECT meta_value FROM {$wpdb->postmeta} WHERE meta_key = '_thumbnail_id' AND post_id IN(%s)", implode( ',', $posts ) ) );
|
52 |
+
}
|
53 |
+
|
54 |
+
// get atachments who have a post parent.
|
55 |
+
foreach ( $attachments as $id => $att ) {
|
56 |
+
if ( in_array( $att->post_parent, $posts ) ) {
|
57 |
+
$ids[] = $id;
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
$ids = array_unique( $ids );
|
62 |
+
if ( count( $ids ) === 0 ) {
|
63 |
+
return $query;
|
64 |
+
}
|
65 |
+
|
66 |
+
if ( 0 === strpos( $query, "SELECT ID FROM {$wpdb->posts} INNER JOIN {$wpdb->term_relationships} " ) ) {
|
67 |
+
// replace INNER JOIN with LEFT JOIN.
|
68 |
+
$query = str_replace( "SELECT ID FROM {$wpdb->posts} INNER JOIN {$wpdb->term_relationships} ", "SELECT ID FROM {$wpdb->posts} LEFT JOIN {$wpdb->term_relationships} ", $query );
|
69 |
+
}
|
70 |
+
$query .= sprintf( " OR {$wpdb->posts}.ID IN (%s) ", implode( ',', $ids ) );
|
71 |
+
|
72 |
+
}
|
73 |
+
return $query;
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
}
|
78 |
+
|
79 |
+
new Strong_Testimonials_Exporter();
|
80 |
+
|
admin/class-strong-testimonials-help.php
CHANGED
@@ -115,21 +115,21 @@ class Strong_Testimonials_Help {
|
|
115 |
|
116 |
ob_start();
|
117 |
?>
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
<?php
|
134 |
$content = ob_get_clean();
|
135 |
|
@@ -150,44 +150,44 @@ class Strong_Testimonials_Help {
|
|
150 |
|
151 |
ob_start();
|
152 |
?>
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
<?php
|
192 |
$content = ob_get_clean();
|
193 |
|
115 |
|
116 |
ob_start();
|
117 |
?>
|
118 |
+
<div>
|
119 |
+
<p><?php echo wp_kses_post( _e( 'Optional shortcode attributes will override the view settings. Use this to create reusable view <strong>patterns</strong>.', 'strong-testimonials' ) ); ?>
|
120 |
+
<p><?php echo wp_kses_post( _e( 'Overridable settings: <code>post_ids</code>, <code>category</code>, <code>order</code>, <code>count</code>.', 'strong-testimonials' ) ); ?>
|
121 |
+
<p><?php echo wp_kses_post( _e( 'For example, imagine you have five services, a sales page for each service, and a testimonial category for each service. To display the testimonials on each service page, you can create five duplicate views, one for each category.', 'strong-testimonials' ) ); ?>
|
122 |
+
<p><?php echo wp_kses_post( _e( 'Or you can configure one view as a pattern and add it to each service page with the <code>category</code> attribute.', 'strong-testimonials' ) ); ?>
|
123 |
+
<p>
|
124 |
+
<?php echo wp_kses_post( '<code>[testimonial_view id="1" category="service-1"]</code>' ); ?>,
|
125 |
+
<?php echo wp_kses_post( '<code>[testimonial_view id="1" category="service-2"]</code>' ); ?>, etc.
|
126 |
+
</p>
|
127 |
+
<p>
|
128 |
+
<?php echo wp_kses_post( _e( 'Attributes may be used in combination. For example:', 'strong-testimonials' ) ); ?>
|
129 |
+
<?php echo wp_kses_post( '<code>[testimonial_view id="1" category="service-3" order="random" count="5"]</code>' ); ?>
|
130 |
+
</p>
|
131 |
+
<p><?php echo wp_kses_post( _e( 'Using <code>post_ids</code> is the most specific method and it will override category and count (whether settings or attributes).', 'strong-testimonials' ) ); ?></p>
|
132 |
+
</div>
|
133 |
<?php
|
134 |
$content = ob_get_clean();
|
135 |
|
150 |
|
151 |
ob_start();
|
152 |
?>
|
153 |
+
<p><?php esc_html_e( 'Some of the features and drawbacks for each method.', 'strong-testimonials' ); ?></p>
|
154 |
+
|
155 |
+
<table class="wpmtst-help-tab" cellpadding="0" cellspacing="0">
|
156 |
+
<thead>
|
157 |
+
<tr>
|
158 |
+
<th></th>
|
159 |
+
<th><?php esc_html_e( 'Simple', 'strong-testimonials' ); ?></th>
|
160 |
+
<th><?php esc_html_e( 'Standard', 'strong-testimonials' ); ?></th>
|
161 |
+
</tr>
|
162 |
+
</thead>
|
163 |
+
<tbody>
|
164 |
+
<tr>
|
165 |
+
<td><?php esc_html_e( 'best use', 'strong-testimonials' ); ?></td>
|
166 |
+
<td><?php esc_html_e( 'ten pages or less', 'strong-testimonials' ); ?></td>
|
167 |
+
<td><?php esc_html_e( 'more than ten pages', 'strong-testimonials' ); ?></td>
|
168 |
+
</tr>
|
169 |
+
<tr>
|
170 |
+
<td><?php esc_html_e( 'URLs', 'strong-testimonials' ); ?></td>
|
171 |
+
<td><?php esc_html_e( 'does not change the URL', 'strong-testimonials' ); ?></td>
|
172 |
+
<td><?php esc_html_e( 'uses paged URLs just like standard WordPress posts', 'strong-testimonials' ); ?></td>
|
173 |
+
</tr>
|
174 |
+
<tr>
|
175 |
+
<td><?php esc_html_e( 'the Back button', 'strong-testimonials' ); ?></td>
|
176 |
+
<td><?php esc_html_e( 'It does not remember which page of testimonials you are on. If you click away – for example, on a "Read more" link – then click back, you will return to page one.', 'strong-testimonials' ); ?></td>
|
177 |
+
<td><?php esc_html_e( 'You will return the last page you were on so this works well with "Read more" links.', 'strong-testimonials' ); ?></td>
|
178 |
+
</tr>
|
179 |
+
<tr>
|
180 |
+
<td><?php esc_html_e( 'works with random order option', 'strong-testimonials' ); ?></td>
|
181 |
+
<td><?php esc_html_e( 'yes', 'strong-testimonials' ); ?></td>
|
182 |
+
<td><?php esc_html_e( 'no', 'strong-testimonials' ); ?></td>
|
183 |
+
</tr>
|
184 |
+
<tr>
|
185 |
+
<td><?php esc_html_e( 'works in a widget', 'strong-testimonials' ); ?></td>
|
186 |
+
<td><?php esc_html_e( 'yes', 'strong-testimonials' ); ?></td>
|
187 |
+
<td><?php esc_html_e( 'no', 'strong-testimonials' ); ?></td>
|
188 |
+
</tr>
|
189 |
+
</tbody>
|
190 |
+
</table>
|
191 |
<?php
|
192 |
$content = ob_get_clean();
|
193 |
|
admin/class-strong-testimonials-list-table.php
CHANGED
@@ -10,585 +10,629 @@
|
|
10 |
* @access private
|
11 |
*/
|
12 |
|
13 |
-
if ( !class_exists( 'Strong_Testimonials_List_Table' ) ) :
|
14 |
-
|
15 |
-
class Strong_Testimonials_List_Table {
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
/**
|
71 |
-
* The view switcher modes.
|
72 |
-
*
|
73 |
-
* @since 4.1.0
|
74 |
-
* @var array
|
75 |
-
* @access protected
|
76 |
-
*/
|
77 |
-
protected $modes = array();
|
78 |
-
|
79 |
-
/**
|
80 |
-
* Stores the value returned by ->get_column_info()
|
81 |
-
*
|
82 |
-
* @var array
|
83 |
-
*/
|
84 |
-
protected $_column_headers;
|
85 |
-
|
86 |
-
protected $compat_fields = array( '_args', '_pagination_args', 'screen', '_actions', '_pagination' );
|
87 |
-
|
88 |
-
protected $compat_methods = array( 'set_pagination_args', 'get_views', 'get_bulk_actions', 'bulk_actions',
|
89 |
-
'row_actions', 'months_dropdown', 'view_switcher', 'comments_bubble', 'get_items_per_page', 'pagination',
|
90 |
-
'get_sortable_columns', 'get_column_info', 'get_table_classes', 'display_tablenav', 'extra_tablenav',
|
91 |
-
'single_row_columns' );
|
92 |
-
|
93 |
-
/**
|
94 |
-
* Constructor.
|
95 |
-
*
|
96 |
-
* The child class should call this constructor from its own constructor to override
|
97 |
-
* the default $args.
|
98 |
-
*
|
99 |
-
* @since 3.1.0
|
100 |
-
* @access public
|
101 |
-
*
|
102 |
-
* @param array|string $args {
|
103 |
-
* Array or string of arguments.
|
104 |
-
*
|
105 |
-
* @type string $plural Plural value used for labels and the objects being listed.
|
106 |
-
* This affects things such as CSS class-names and nonces used
|
107 |
-
* in the list table, e.g. 'posts'. Default empty.
|
108 |
-
* @type string $singular Singular label for an object being listed, e.g. 'post'.
|
109 |
-
* Default empty
|
110 |
-
* @type bool $ajax Whether the list table supports AJAX. This includes loading
|
111 |
-
* and sorting data, for example. If true, the class will call
|
112 |
-
* the {@see _js_vars()} method in the footer to provide variables
|
113 |
-
* to any scripts handling AJAX events. Default false.
|
114 |
-
* @type string $screen String containing the hook name used to determine the current
|
115 |
-
* screen. If left null, the current screen will be automatically set.
|
116 |
-
* Default null.
|
117 |
-
* }
|
118 |
-
*/
|
119 |
-
public function __construct( $args = array() ) {
|
120 |
-
$args = wp_parse_args( $args, array(
|
121 |
-
'plural' => '',
|
122 |
-
'singular' => '',
|
123 |
-
'ajax' => false,
|
124 |
-
'screen' => null,
|
125 |
-
) );
|
126 |
-
|
127 |
-
$this->screen = convert_to_screen( $args['screen'] );
|
128 |
-
|
129 |
-
add_filter( "manage_{$this->screen->id}_columns", array( $this, 'get_columns' ), 0 );
|
130 |
-
|
131 |
-
if ( !$args['plural'] )
|
132 |
-
$args['plural'] = $this->screen->base;
|
133 |
-
|
134 |
-
$args['plural'] = sanitize_key( $args['plural'] );
|
135 |
-
$args['singular'] = sanitize_key( $args['singular'] );
|
136 |
-
|
137 |
-
$this->_args = $args;
|
138 |
-
|
139 |
-
if ( $args['ajax'] ) {
|
140 |
-
// wp_enqueue_script( 'list-table' );
|
141 |
-
add_action( 'admin_footer', array( $this, '_js_vars' ) );
|
142 |
-
}
|
143 |
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
);
|
149 |
-
}
|
150 |
-
}
|
151 |
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
}
|
165 |
-
}
|
166 |
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
}
|
181 |
-
}
|
182 |
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
|
|
|
|
195 |
}
|
196 |
-
}
|
197 |
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
|
|
|
|
209 |
}
|
210 |
-
}
|
211 |
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
return call_user_func_array( array( $this, $name ), $arguments );
|
225 |
}
|
226 |
-
return false;
|
227 |
-
}
|
228 |
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
}
|
251 |
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
'
|
262 |
-
'per_page' => 0,
|
263 |
-
) );
|
264 |
-
|
265 |
-
if ( !$args['total_pages'] && $args['per_page'] > 0 )
|
266 |
-
$args['total_pages'] = ceil( $args['total_items'] / $args['per_page'] );
|
267 |
-
|
268 |
-
// Redirect if page number is invalid and headers are not already sent.
|
269 |
-
if ( ! headers_sent() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) && $args['total_pages'] > 0 && $this->get_pagenum() > $args['total_pages'] ) {
|
270 |
-
wp_redirect( add_query_arg( 'paged', $args['total_pages'] ) );
|
271 |
-
exit;
|
272 |
}
|
273 |
|
274 |
-
|
275 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
* @since 3.1.0
|
281 |
-
* @access public
|
282 |
-
*
|
283 |
-
* @param string $key Pagination argument to retrieve. Common values include 'total_items',
|
284 |
-
* 'total_pages', 'per_page', or 'infinite_scroll'.
|
285 |
-
* @return int Number of items that correspond to the given pagination argument.
|
286 |
-
*/
|
287 |
-
public function get_pagination_arg( $key ) {
|
288 |
-
if ( 'page' == $key )
|
289 |
-
return $this->get_pagenum();
|
290 |
-
|
291 |
-
if ( isset( $this->_pagination_args[$key] ) )
|
292 |
-
return $this->_pagination_args[$key];
|
293 |
-
}
|
294 |
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
*
|
301 |
-
* @return bool
|
302 |
-
*/
|
303 |
-
public function has_items() {
|
304 |
-
return !empty( $this->items );
|
305 |
-
}
|
306 |
|
307 |
-
|
308 |
-
|
309 |
-
*
|
310 |
-
* @since 3.1.0
|
311 |
-
* @access public
|
312 |
-
*/
|
313 |
-
public function no_items() {
|
314 |
-
_e( 'No items found.' );
|
315 |
-
}
|
316 |
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
if ( ! empty( $_REQUEST['orderby'] ) )
|
333 |
-
echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '">';
|
334 |
-
if ( ! empty( $_REQUEST['order'] ) )
|
335 |
-
echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '">';
|
336 |
-
if ( ! empty( $_REQUEST['post_mime_type'] ) )
|
337 |
-
echo '<input type="hidden" name="post_mime_type" value="' . esc_attr( $_REQUEST['post_mime_type'] ) . '">';
|
338 |
-
if ( ! empty( $_REQUEST['detached'] ) )
|
339 |
-
echo '<input type="hidden" name="detached" value="' . esc_attr( $_REQUEST['detached'] ) . '">';
|
340 |
-
?>
|
341 |
-
<p class="search-box">
|
342 |
-
<label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label>
|
343 |
-
<input type="search" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>">
|
344 |
-
<?php submit_button( $text, 'button', '', false, array('id' => 'search-submit') ); ?>
|
345 |
-
</p>
|
346 |
-
<?php
|
347 |
-
}
|
348 |
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
* @since 3.1.0
|
354 |
-
* @access protected
|
355 |
-
*
|
356 |
-
* @return array
|
357 |
-
*/
|
358 |
-
protected function get_views() {
|
359 |
-
return array();
|
360 |
-
}
|
361 |
|
362 |
-
/**
|
363 |
-
* Display the list of views available on this table.
|
364 |
-
*
|
365 |
-
* @since 3.1.0
|
366 |
-
* @access public
|
367 |
-
*/
|
368 |
-
public function views() {
|
369 |
-
$views = $this->get_views();
|
370 |
/**
|
371 |
-
*
|
372 |
*
|
373 |
-
*
|
374 |
-
*
|
375 |
*
|
376 |
-
* @
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
*
|
378 |
-
* @
|
|
|
379 |
*/
|
380 |
-
|
|
|
|
|
381 |
|
382 |
-
|
383 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
384 |
|
385 |
-
|
386 |
-
|
387 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
}
|
389 |
-
echo implode( " |</li>\n", $views ) . "</li>\n";
|
390 |
-
echo "</ul>";
|
391 |
-
}
|
392 |
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
*/
|
415 |
-
protected function bulk_actions( $which = '' ) {
|
416 |
-
if ( is_null( $this->_actions ) ) {
|
417 |
-
$no_new_actions = $this->_actions = $this->get_bulk_actions();
|
418 |
/**
|
419 |
-
* Filter the list
|
420 |
*
|
421 |
* The dynamic portion of the hook name, `$this->screen->id`, refers
|
422 |
* to the ID of the current screen, usually a string.
|
423 |
*
|
424 |
-
* This filter can currently only be used to remove bulk actions.
|
425 |
-
*
|
426 |
* @since 3.5.0
|
427 |
*
|
428 |
-
* @param array $
|
429 |
*/
|
430 |
-
$
|
431 |
-
$this->_actions = array_intersect_assoc( $this->_actions, $no_new_actions );
|
432 |
-
$two = '';
|
433 |
-
} else {
|
434 |
-
$two = '2';
|
435 |
-
}
|
436 |
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
echo "<label for='bulk-action-selector-" . esc_attr( $which ) . "' class='screen-reader-text'>" . __( 'Select bulk action' ) . "</label>";
|
441 |
-
echo "<select name='action$two' id='bulk-action-selector-" . esc_attr( $which ) . "'>\n";
|
442 |
-
echo "<option value='-1' selected='selected'>" . __( 'Bulk Actions' ) . "</option>\n";
|
443 |
|
444 |
-
|
445 |
-
|
|
|
|
|
|
|
|
|
|
|
446 |
|
447 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
}
|
449 |
|
450 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
* @since 3.1.0
|
460 |
-
* @access public
|
461 |
-
*
|
462 |
-
* @return string|bool The action name or False if no action was selected
|
463 |
-
*/
|
464 |
-
public function current_action() {
|
465 |
-
if ( isset( $_REQUEST['filter_action'] ) && ! empty( $_REQUEST['filter_action'] ) )
|
466 |
-
return false;
|
467 |
|
468 |
-
|
469 |
-
|
470 |
|
471 |
-
|
472 |
-
|
473 |
|
474 |
-
|
475 |
-
}
|
476 |
|
477 |
-
|
478 |
-
|
479 |
-
*
|
480 |
-
* @since 3.1.0
|
481 |
-
* @access protected
|
482 |
-
*
|
483 |
-
* @param array $actions The list of actions
|
484 |
-
* @param bool $always_visible Whether the actions should be always visible
|
485 |
-
* @return string
|
486 |
-
*/
|
487 |
-
protected function row_actions( $actions, $always_visible = false ) {
|
488 |
-
$action_count = count( $actions );
|
489 |
-
$i = 0;
|
490 |
-
|
491 |
-
if ( !$action_count )
|
492 |
-
return '';
|
493 |
-
|
494 |
-
$out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">';
|
495 |
-
foreach ( $actions as $action => $link ) {
|
496 |
-
++$i;
|
497 |
-
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
498 |
-
$out .= "<span class='$action'>$link$sep</span>";
|
499 |
}
|
500 |
-
$out .= '</div>';
|
501 |
|
502 |
-
|
503 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
|
505 |
-
|
506 |
-
|
507 |
-
*
|
508 |
-
* @since 3.1.0
|
509 |
-
* @access protected
|
510 |
-
*
|
511 |
-
* @param string $post_type
|
512 |
-
*/
|
513 |
-
protected function months_dropdown( $post_type ) {
|
514 |
-
global $wpdb, $wp_locale;
|
515 |
|
516 |
/**
|
517 |
-
*
|
518 |
*
|
519 |
-
* @since
|
|
|
520 |
*
|
521 |
-
* @param
|
522 |
-
* @param
|
|
|
523 |
*/
|
524 |
-
|
525 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
526 |
}
|
527 |
|
528 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
529 |
SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
|
530 |
FROM $wpdb->posts
|
531 |
WHERE post_type = %s
|
532 |
ORDER BY post_date DESC
|
533 |
-
",
|
|
|
|
|
|
|
534 |
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
|
545 |
-
|
546 |
|
547 |
-
|
548 |
-
|
|
|
549 |
|
550 |
-
|
551 |
-
?>
|
552 |
-
<label for="filter-by-date" class="screen-reader-text"><?php
|
553 |
<select name="m" id="filter-by-date">
|
554 |
-
<option<?php selected( $m, 0 ); ?> value="0"><?php
|
555 |
-
<?php
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
|
|
|
|
571 |
</select>
|
572 |
-
<?php
|
573 |
-
|
574 |
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
?>
|
585 |
<input type="hidden" name="mode" value="<?php echo esc_attr( $current_mode ); ?>">
|
586 |
<div class="view-switch">
|
587 |
-
<?php
|
588 |
foreach ( $this->modes as $mode => $title ) {
|
589 |
$classes = array( 'view-' . $mode );
|
590 |
-
if ( $current_mode == $mode )
|
591 |
$classes[] = 'current';
|
|
|
592 |
printf(
|
593 |
"<a href='%s' class='%s' id='view-switch-$mode'><span class='screen-reader-text'>%s</span></a>\n",
|
594 |
esc_url( add_query_arg( 'mode', $mode ) ),
|
@@ -596,552 +640,573 @@ class Strong_Testimonials_List_Table {
|
|
596 |
$title
|
597 |
);
|
598 |
}
|
599 |
-
|
600 |
</div>
|
601 |
-
<?php
|
602 |
-
|
603 |
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
if ( $pending_comments )
|
617 |
-
echo '<strong>';
|
618 |
-
|
619 |
-
echo "<a href='" . esc_url( add_query_arg( 'p', $post_id, admin_url( 'edit-comments.php' ) ) ) . "' title='" . esc_attr( $pending_phrase ) . "' class='post-com-count'><span class='comment-count'>" . number_format_i18n( get_comments_number() ) . "</span></a>";
|
620 |
-
|
621 |
-
if ( $pending_comments )
|
622 |
-
echo '</strong>';
|
623 |
-
}
|
624 |
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
* @since 3.1.0
|
629 |
-
* @access public
|
630 |
-
*
|
631 |
-
* @return int
|
632 |
-
*/
|
633 |
-
public function get_pagenum() {
|
634 |
-
$pagenum = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 0;
|
635 |
-
|
636 |
-
if( isset( $this->_pagination_args['total_pages'] ) && $pagenum > $this->_pagination_args['total_pages'] )
|
637 |
-
$pagenum = $this->_pagination_args['total_pages'];
|
638 |
-
|
639 |
-
return max( 1, $pagenum );
|
640 |
-
}
|
641 |
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
* @param string $option
|
649 |
-
* @param int $default
|
650 |
-
* @return int
|
651 |
-
*/
|
652 |
-
protected function get_items_per_page( $option, $default = 20 ) {
|
653 |
-
$per_page = (int) get_user_option( $option );
|
654 |
-
if ( empty( $per_page ) || $per_page < 1 )
|
655 |
-
$per_page = $default;
|
656 |
|
657 |
/**
|
658 |
-
*
|
659 |
-
*
|
660 |
-
* The dynamic hook name, $option, refers to the `per_page` option depending
|
661 |
-
* on the type of list table in use. Possible values include: 'edit_comments_per_page',
|
662 |
-
* 'sites_network_per_page', 'site_themes_network_per_page', 'themes_network_per_page',
|
663 |
-
* 'users_network_per_page', 'edit_post_per_page', 'edit_page_per_page',
|
664 |
-
* 'edit_{$post_type}_per_page', etc.
|
665 |
*
|
666 |
-
* @since
|
|
|
667 |
*
|
668 |
-
* @
|
669 |
*/
|
670 |
-
|
671 |
-
|
672 |
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
*
|
679 |
-
* @param string $which
|
680 |
-
*/
|
681 |
-
protected function pagination( $which ) {
|
682 |
-
if ( empty( $this->_pagination_args ) ) {
|
683 |
-
return;
|
684 |
}
|
685 |
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
691 |
}
|
692 |
|
693 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
694 |
|
695 |
-
|
|
|
|
|
|
|
|
|
|
|
696 |
|
697 |
-
|
698 |
|
699 |
-
|
700 |
|
701 |
-
|
702 |
|
703 |
-
|
704 |
-
if ( $current == 1 ) {
|
705 |
-
$disable_first = ' disabled';
|
706 |
-
}
|
707 |
-
if ( $current == $total_pages ) {
|
708 |
-
$disable_last = ' disabled';
|
709 |
-
}
|
710 |
-
$page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",
|
711 |
-
'first-page' . $disable_first,
|
712 |
-
esc_attr__( 'Go to the first page' ),
|
713 |
-
esc_url( remove_query_arg( 'paged', $current_url ) ),
|
714 |
-
'«'
|
715 |
-
);
|
716 |
|
717 |
-
|
718 |
-
'prev-page' . $disable_first,
|
719 |
-
esc_attr__( 'Go to the previous page' ),
|
720 |
-
esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ),
|
721 |
-
'‹'
|
722 |
-
);
|
723 |
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
|
|
|
|
|
|
|
|
|
|
732 |
);
|
733 |
-
}
|
734 |
-
$html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) );
|
735 |
-
$page_links[] = '<span class="paging-input">' . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . '</span>';
|
736 |
-
|
737 |
-
$page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",
|
738 |
-
'next-page' . $disable_last,
|
739 |
-
esc_attr__( 'Go to the next page' ),
|
740 |
-
esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ),
|
741 |
-
'›'
|
742 |
-
);
|
743 |
-
|
744 |
-
$page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",
|
745 |
-
'last-page' . $disable_last,
|
746 |
-
esc_attr__( 'Go to the last page' ),
|
747 |
-
esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ),
|
748 |
-
'»'
|
749 |
-
);
|
750 |
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
|
|
|
|
756 |
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
763 |
|
764 |
-
|
765 |
-
|
|
|
|
|
|
|
|
|
|
|
766 |
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
* @access public
|
773 |
-
* @abstract
|
774 |
-
*
|
775 |
-
* @return array
|
776 |
-
*/
|
777 |
-
public function get_columns() {
|
778 |
-
die( 'function WP_List_Table::get_columns() must be over-ridden in a sub-class.' );
|
779 |
-
}
|
780 |
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
* The second format will make the initial sorting order be descending
|
788 |
-
*
|
789 |
-
* @since 3.1.0
|
790 |
-
* @access protected
|
791 |
-
*
|
792 |
-
* @return array
|
793 |
-
*/
|
794 |
-
protected function get_sortable_columns() {
|
795 |
-
return array();
|
796 |
-
}
|
797 |
|
798 |
-
|
799 |
-
|
800 |
-
*
|
801 |
-
* @since 3.1.0
|
802 |
-
* @access protected
|
803 |
-
*
|
804 |
-
* @return array
|
805 |
-
*/
|
806 |
-
protected function get_column_info() {
|
807 |
-
if ( isset( $this->_column_headers ) )
|
808 |
-
return $this->_column_headers;
|
809 |
|
810 |
-
|
811 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
812 |
|
813 |
-
$sortable_columns = $this->get_sortable_columns();
|
814 |
/**
|
815 |
-
*
|
|
|
|
|
|
|
816 |
*
|
817 |
-
* The
|
818 |
-
* to the ID of the current screen, usually a string.
|
819 |
*
|
820 |
-
* @since 3.
|
|
|
821 |
*
|
822 |
-
* @
|
823 |
*/
|
824 |
-
|
|
|
|
|
825 |
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
830 |
|
831 |
-
$
|
832 |
-
|
833 |
-
$data[1] = false;
|
834 |
|
835 |
-
$
|
836 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
837 |
|
838 |
-
|
|
|
|
|
|
|
|
|
839 |
|
840 |
-
|
841 |
-
|
|
|
|
|
842 |
|
843 |
-
|
844 |
-
|
845 |
-
*
|
846 |
-
* @since 3.1.0
|
847 |
-
* @access public
|
848 |
-
*
|
849 |
-
* @return int
|
850 |
-
*/
|
851 |
-
public function get_column_count() {
|
852 |
-
list ( $columns, $hidden ) = $this->get_column_info();
|
853 |
-
$hidden = array_intersect( array_keys( $columns ), array_filter( $hidden ) );
|
854 |
-
return count( $columns ) - count( $hidden );
|
855 |
-
}
|
856 |
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
* @since 3.1.0
|
861 |
-
* @access public
|
862 |
-
*
|
863 |
-
* @param bool $with_id Whether to set the id attribute or not
|
864 |
-
*/
|
865 |
-
public function print_column_headers( $with_id = true ) {
|
866 |
-
list( $columns, $hidden, $sortable ) = $this->get_column_info();
|
867 |
-
|
868 |
-
$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
|
869 |
-
$current_url = remove_query_arg( 'paged', $current_url );
|
870 |
-
|
871 |
-
if ( isset( $_GET['orderby'] ) )
|
872 |
-
$current_orderby = $_GET['orderby'];
|
873 |
-
else
|
874 |
-
$current_orderby = '';
|
875 |
-
|
876 |
-
if ( isset( $_GET['order'] ) && 'desc' == $_GET['order'] )
|
877 |
-
$current_order = 'desc';
|
878 |
-
else
|
879 |
-
$current_order = 'asc';
|
880 |
-
|
881 |
-
if ( ! empty( $columns['cb'] ) ) {
|
882 |
-
static $cb_counter = 1;
|
883 |
-
$columns['cb'] = '<label class="screen-reader-text" for="cb-select-all-' . $cb_counter . '">' . __( 'Select All' ) . '</label>'
|
884 |
-
. '<input id="cb-select-all-' . $cb_counter . '" type="checkbox">';
|
885 |
-
$cb_counter++;
|
886 |
}
|
887 |
|
888 |
-
|
889 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
890 |
|
891 |
-
|
892 |
-
|
893 |
-
|
|
|
|
|
894 |
|
895 |
-
|
|
|
|
|
|
|
|
|
896 |
|
897 |
-
if ( 'cb'
|
898 |
-
$
|
899 |
-
|
900 |
-
|
|
|
|
|
901 |
|
902 |
-
|