Спонсоры

Описание

Ever had to add a bunch of images with links on them for your event/company partners?
With Sponsors, you won’t have to use a text widget for that anymore. The companies and people that support you, your company or your event now get a separate place in the dashboar where you can add a link and an image for each of them. Then you add the Sponsors widget to the sidebar of your choosing and the linked images will show up there.

Shortcodes

** Sponsors **
The shortcode [sponsors] takes the following options:
* images (yes|no, default: yes)
* image_size (medium|full|thumbnail|large|[any registered image size], default: medium)
* description (yes|no, default: no)
* max (number, default: none, showing all entries)
* title (yes|no, default: no)
* category (category-slug, default: all)
* with_categories (yes|no, default: no )
* category_title ( HTML tag for category title, default: h3)
* size (small|medium|large|full, default: medium)
* style (list|grid|slider, default: list)
* order (ASC|DESC, default: ASC )
* orderby (menu_order|post_title|…, default: menu_order)
* adaptiveheight (1|0, default: 1) — available for style=slider
* autoplay (1|0, default: 1) — available for style=slider
* autoplayspeed (number, default: 3000) — available for style=slider
* arrows (1|0, default: 1 ) — available for style=slider
* centermode (1|0, default: 0 ) — available for style=slider
* dots (1|0, default: 0 ) — available for style=slider
* infinite (1|0, default: 1 ) — available for style=slider
* slidestoshow (number, default: 1 ) — available for style=slider
* slidestoscroll (number, default: 1 ) — available for style=slider

When with_categories is used, it will show sponsors under their appropriate categories.
The attribute size is used to define the size of the columns. More style updates will come in future versions.

** Form **
This shortcode will display a form so potential sponsors can submit their information.
Each Sponsor entered with that form will become a Draft so they won’t be displayed immediately.
You can publish them, or send them an email to get their logo as well.

Shortcode [sponsors_acquisition_form] will allow it. Fields that are used here are:

  • Name
  • Email (so you can email them about their submission)
  • Description
  • Link

Planned Features

Here are some of the features planned for future versions:

  • Form Block — for the new WordPress block editor
  • Sponsors Block — for the new WordPress block editor
  • Category ordering
  • Documentation Page
  • Front optimizations
  • Elementor Blocks

Скриншоты

  • After you activate the plugin, a new content type will become available on the your WordPress admin panel. Here you can add a link, a description and an image for each Sponsor.
  • Add the widget to one or more sidebars and the images of your sponsors will show up there. Choose from which category you want to display sponsors (or select all), to show or hide images and the description

Блоки

Этот плагин предоставляет 2 блока.

wp-sponsors/sponsors
Sponsors
wp-sponsors/form-sponsor
Sponsors

Установка

  1. Upload wp-sponsors to the /wp-content/plugins/ directory
  2. Активируйте плагин используя меню ‘Плагины’ в WordPress
  3. Add your sponsors under the sponsors section with links and logo’s
  4. Add the widget to your sidebar

Отзывы

14.11.2018
Works nice, but -makes SVG 1x1px, -no default styling -would appreciate to add CSS class to single entry -missing ALT on images-definitely should be Partner title -no documentation, shortcode examples
11.10.2017
This Plugin is everything i needed. I had a problem centering the logos in widget, but the creator was very quick to tell me what code i should put in the theme CSS to get it right. EXCELLENT!
20.03.2017
Hello I like this plugin very much. They only thing what is missing is a shortcode to put this inside of pages. We are using a Newsletter and I would like to put the sponsor in there as well, but actually this is just a small issue and it helps already a lot to organize it. Thank you very much! We are going to donate this. Greetings, Narrenzunft Wiler Zipfel
03.09.2016
You are the best plugin ᕙ(`▿´)ᕗ on WP ever!
Посмотреть все 8 отзывов

Участники и разработчики

«Спонсоры» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«Спонсоры» переведён на 3 языка. Благодарим переводчиков за их работу.

Перевести «Спонсоры» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

3.2.0 — 2019-11-05

  • New: Slider layout for shortcode (style=slider)
  • New: Slider layout for Sponsor Block
  • Fix: Additional paragraphs in HTML in shortcode.
  • Fix: Image size option is used in all layout options (Shortcode/Block/Widget).

3.1.1 — 2019-08-13

  • Refactor: Each sponsor in shortcode has all their assigned categories.

3.1.0 — 2019-08-11

  • Widget — Image size is now respected even in horizontal, although resized to 100px in height through CSS.
  • Widget/Shortcode — Sponsors have category slugs applied as classes on each sponsor item.
  • Sponsors Block — a block is available for Gutenberg Editor.
  • Refactor: All assets placed under one single folder for better maintenance.
  • Refactor: Title showing in shortcode even without link.

3.0.1 — 2019-07-16

  • Widget was showing all sponsors instead of the number of sponsors that was entered.

3.0.0

  • Big Code refactor.
  • Refactor: URL is stored under _website. Backwards compatibility is available.
  • Refactor: Description is stored under the regular content so we don’t waste the database space.
  • Refactor: Post Type has changed from ‘sponsor’ to ‘sponsors’.
  • Refactor: CSS for horizontal widget display has been enabled.
  • New: Image sizes can be defined in shortcode and in widget.
  • New: Sponsors can be display under appropriate categories in shortcode.
  • New: Sponsor Acquisition Form shortcode [sponsors_acquisition_form] for front end information submission.
  • New: Simple Sponsorships compatibility.

2.5.1

  • Fixed a PHP 7.2 deprecation error

2.5.0

  • Fixed a small error and the plugin now works with Gutenburg!

2.4.1

  • Fixed php errors when using the shortcode without any options

More information of older versions can be found in changelog.txt