Beschrijving
Biedt een gemakkelijke manier om je WordPress.org thema’s, plugins, core tickets en Codex bijdragen weer te geven met handige widgets en template tags
WordPress zou niet zo geweldig zijn als het nu is zonder al de bijdragers aan het project. De community is trots op elke bijdrager. Toon een aantal van je bijdragen aan het project met handige widgets of template tags in je aangepaste thema. Momenteel kun je je bijdragen aan WordPress core, de WordPress Codex, je WordPress plugins of je WordPress thema’s tonen.
There are four handy widgets available for you that are easily configured and added to your sidebar. You just need to add your theme or plugin slug to display a theme or plugin or enter your WordPress.org username to display core or codex contributions.
There are two shortcodes available, and some handy template tags if you desire to add them in your custom theme. More info on shortcodes and template tags are available under the FAQ.
We willen een grote dank uitspreken voor de geweldige plugin, Core Contributions Widget van Eric Mann, Michael Fields, John P. Bloch, Mike Bijon en Konstantin Obenland. We hebben een deel van deze plugin geforkt om Core en Codex bijdragen op te nemen. Als je alleen widgets wilt om Core en Codex bijdragen weer te geven, raden we aan hun plugin te downloaden.
Available shortcodes
Show a Plugin Card
[wp_contributions_plugin_card slug="your-plugin-slug"]<h3>Show a Theme Card</h3>
[wp_contributions_theme_card slug="your-theme-slug"]
Not sure what shortcodes are? Learn more here.
How do I add a widget?
- Visit Appearance -> Widgets in your WordPress Admin.
- Drag any of the WP Contributions widgets to the sidebar where you want them to appear.
- For the plugin and them widgets, enter a widget title and enter the slug of the plugin you would like to display. The slug of a plugin can be found by looking at the URL of the plugin page. For instance, Jetpack is found at
https://wordpress.org/plugins/jetpack/
which makes the plugin slugjetpack
. - For Core and Codex contributions, enter a title, your WordPress.org username, and the number of contributions you would like to display. It will display the most recent contributions. There will be a link to display more contributions so people can view any after the number you input.
What template tags are available?
<?php wp_contributions_plugin_card( $plugin_slug ); ?>
Displays a the plugin information for a plugin. Just pass the slug of the plugin as $plugin_slug
to display the plugin information card. This function will echo your results to your template.
<?php wp_contributions_theme_card( $theme_slug ); ?>
Displays a the theme information for a theme. Just pass the slug of the theme as $theme_slug
to display the theme information card. This function will echo your results to your template.
<?php wp_contributions_author_plugin_cards( $username ); ?>
Displays all plugins for a plugin author. Just pass the WordPress.org username as $username
to display all plugin cards for that user. This function will echo your results to your template.
<?php wp_contributions_author_theme_cards( $username ); ?>
Displays all plugins for a theme author. Just pass the WordPress.org username as $username
to display all theme cards for that user. This function will echo your results to your template.
<?php wp_contributions_core_contributions_card( $username, $count ); ?>
Displays Core contributions for a WordPress.org user. Just pass the WordPress.org username as $username
to display the contributions for that user. Optionally, you can also pass in $count
to control the number of contributions to display. Default count is set at 5. This function will echo your results to your template.
<?php wp_contributions_codex_contributions_card( $username, $count ); ?>
Displays Codex contributions for a WordPress.org user. Just pass the WordPress.org username as $username
to display the contributions for that user. Optionally, you can also pass in $count
to control the number of contributions to display. Default count is set at 5. This function will echo your results to your template.
How do I integrate directly in a theme?
Copy either the individual template file: e.g. /wp-content/wp-contributions-theme-card-template.php
, or the plugin’s entire template folder into your theme’s folder (/wp-content/plugins/wp-contributions/templates/
), and override anything you desire.
Schermafdrukken
Blokken
Deze plugin heeft 1 blok.
- WP Contributions Block Wordpress Contributions Showcase made easy.
Installatie
- Upload the
wp-contributions
folder to the/wp-content/plugins/
directory. - Activate the WP Contributions plugin through the ‘Plugins’ menu in WordPress.
- Add widgets to your sidebars or place template tags in your templates.
Beoordelingen
Bijdragers & ontwikkelaars
“WP Contributions” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
Bijdragers“WP Contributions” is vertaald in 5 talen. Dank voor de vertalers voor hun bijdragen.
Vertaal “WP Contributions” naar jouw taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
1.3.1
- Updated: Confirmed compatibility with WP 6.6.1
1.3.0
- Updated: Block styles in editor.
- Updated: Improved coding standards and cleaned up PHP warnings/notices.
- Updated: Internal build tools.
1.2.1
- Ownership transition.
1.2.0
- Added: WordPress Block for Themes, Plugins, Core, and Codex contributions.
- Fixed: Minor CSS issues.
- Fixed: Fatal errors when computer had no internet connectivity.
- Fixed: Errors regarding parsing strings as XML.
1.1.0
- Shortcodes for:
- Plugin Card
[wp_contributions_plugin_card slug="your-plugin-slug"]
, and - Theme Card
[wp_contributions_theme_card slug="your-theme-slug"]
- Plugin Card
- Add descriptions to Core widget
1.0.1
- minor edits and updates to Grunt build
1.0.0
- Initial Release