
內容簡介
p>你是否曾經必須為你的活動/公司合作夥伴添加一堆帶有連結的圖片?
使用 Sponsors,你不再需要使用文本小工具了。支持你、你的公司或活動的公司和人現在有了一個單獨的位置在儀表板上,你可以為每個公司和人添加鏈接和圖像。然後,你只需要將 Sponsors 小工具添加到你選擇的側邊欄中,連接的圖像就會出現在那裡。
短代码
**Sponsors**
短代码 [sponsors] 採用以下選項:
* images(yes|no,默認為 yes)
* image_size(medium|full|thumbnail|large|[任何已註冊的圖像大小],默認為 medium)
* description(yes|no,默認為 no)
* max(number,默認為 none,顯示所有條目)
* title(yes|no,默認為 no)
* category(category-slug,默認為 all)
* with_categories(yes|no,默認為 no)
* category_title(用於分類標題的 HTML 標籤,默認為 h3)
* size(small|medium|large|full,默認為 medium)
* slider_image(full|default,默認為 full)- 如果是 full,圖像將佔滿整個寬度。
* style(list|grid|slider,默認為 list)
* order(ASC|DESC,默認為 ASC)
* orderby(menu_order|post_title|…,默認為 menu_order)
* adaptiveheight(1|0,默認為 1)- 可用於 style=slider
* autoplay(1|0,默認為 1)- 可用於 style=slider
* autoplayspeed(number,默認為 3000)- 可用於 style=slider
* arrows(1|0,默認為 1)- 可用於 style=slider
* centermode(1|0,默認為 0)- 可用於 style=slider
* dots(1|0,默認為 0)- 可用於 style=slider
* infinite(1|0,默認為 1)- 可用於 style=slider
* slidestoshow(number,默認為 1)- 可用於 style=slider
* slidestoscroll(number,默認為 1)- 可用於 style=slider
* variablewidth(number,默認為 0)- 可用於 style=slider
* breakpoints(字符串)- 可用於 style=slider
當使用 with_categories 時,它會按照適當的類別顯示贊助商。
屬性 size 用於定義列的大小。未來版本將會有更多樣式更新。
如果你想使用滑块,在不同的屏幕尺寸上顯示不同數量的圖像,你可以使用 breakpoints 屬性。
例如,我們希望在大屏幕上顯示 3 張圖像並在點擊時滑動 3 張圖像。然後在 640px 查看中,我們想顯示 2 張圖像並滑動 2 張圖像。在 480px 查看中,我們只想要 1 張圖像,並且只想要滑動 1 張圖像。
我們會這樣使用短代碼:
[sponsors style=slider arrows=1 image_size=full slidestoscroll=3 slidestoshow=3 breakpoints=480;1;1|640;2;2]
屬性 breakpoints 使用格式 "screen_px;images_to_show;images_to_slide"。對於多個斷點,我們使用 "|" 進行分隔。
在上面的示例中,我們分隔了 2 個斷點,480 像素和 640 像素。
對於 480 像素,我們設置要顯示的圖像數為 1,要滑動的圖像數為 1。
對於 640 像素,我們設置要顯示的圖像數為 2,要滑動的圖像數為 2。
**表單**
這個短代碼將顯示一個表單,這樣潛在的贊助商就可以提交他們的信息。
使用此表單輸入的每個贊助商都會變成草稿,因此它們不會立即顯示。
你可以發布它們,或發送電子郵件以獲取他們的徽標。
短碼 [sponsors_acquisition_form] 將允許你這樣做。這裡使用的字段包括:
名稱
電子郵件(以便你可以向他們發送關於他們的提交的電子郵件)
描述
鏈接
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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)
* slider_image (full|default, default: full) – if full, the image will take full width
* 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
* variablewidth (number, default: 0 ) – available for style=slider
* breakpoints (string) – 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.
If you want to use the slider and show different number of images on different screen sizes, you can use the breakpoints attribute.
For example, we want to show 3 images on large screens and slide 3 images on click. Then on 640px view, we want to show 2 and slide 2 images. And on 480px view, we want only 1 image and 1 image to slide.
We would use the shortcode like this:
[sponsors style=slider arrows=1 image_size=full slidestoscroll=3 slidestoshow=3 breakpoints=480;1;1|640;2;2]
The attribute breakpoints uses format “screen_px;images_to_show;images_to_slide”. Then for multiple breakpoints, we separate them by “|”.
In the above example we have separated 2 breakpoints 480px and 640px.
For 480px, we set 1 for images to show and 1 for images to slide.
For 640px, we set 2 for images to show and 2 for images to slide.
** 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
Available attributes:
fields – separate field keys with comma,
fields_labels – separate field labels with comma,
button – Button text.
Each defined field will be a textarea. For example, you can add more fields like this:
[sponsors_acquisition_form fields=about,what fields_labels=About,What?]
Planned Features
Here are some of the features planned for future versions:
Category ordering
Documentation Page
Front optimizations
Elementor Blocks
Simple Sponsorships
This plugin is fully compatible with Simple Sponsorships.
If you want to accept payments from sponsors on your site and have a way to define different packages and automate the whole process, try Simple Sponsorships.
