-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enhancement: added help link to Post screen option. * Enhancement: added About document. * Architecture: moved code for Post screen option to separate file. * Architecture: moved inline CSS to separate file.
- Loading branch information
1 parent
57b1218
commit 2ab1d57
Showing
6 changed files
with
163 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## DEWP-Planet-Feed | ||
|
||
> @todo Needs review! | ||
## Was ist der DEWP-Planet? | ||
Der [DEWP-Planet](http://de.planetwp.org/) ist ein Feed-Aggregator. Sein Feed wird aus verschiedenen einzelnen Blog-Feeds gespeist. Seine Hauptaufgabe besteht darin, die Inhalte des __Dashboard-Wigdets WordPress-Nachrichten__ zu liefern: | ||
|
||
![Dashboard-Widget „WordPress-Nachrichten“](https://github.com/deworg/dewp-planet-feed/blob/master/assets/img/wp-news-dashboard-widget.png?raw=true) | ||
|
||
### Was macht die Option unter _Veröffentlichen_? | ||
Mithilfe der Option __Im DEWP-Planet-Feed anzeigen__ kannst du in deinem Blog einzelne Beiträge einem speziellen RSS-Feed namens __dewp-planet__ zuweisen. Die URL dieses Feeds sieht etwa so aus: | ||
|
||
``` | ||
http://example.com/feed/dewp-planet/ | ||
http://example.com?feed=dewp-planet | ||
``` | ||
|
||
#### Bitte verwende die Option mit Bedacht! | ||
|
||
__Sofern dein Feed Teil des DEWP-Planet-Feed ist, landet dein Beitrag direkt in den Dashboards aller deutschsprachigen WordPress-Installationen.__ | ||
|
||
__Nutze den Planet, um dein WordPress-Wissen frei zu teilen. Du bist selbst dafür verantwortlich, dass deine Inhalte der hervorgehobenen Position in den Dashboards einiger Tausend Nutzerinnen und Nutzer angemessen sind.__ | ||
|
||
## Landet mein Beitrag mit diesem Plugin automatisch im Dashboard anderer Nutzer_innen? | ||
Nur wenn dein Feed bereits in den _Planet_ aufgenommen wurde. Dafür ist eine manuelle Freischaltung seitens des _Planet_ erforderlich.<br>__Allein die Verwendung dieses Plugins speist dein durch das Plugin neu erzeugte Feed noch _nicht_ in _Planet_-Feed für die Dashboard-Widgets ein.__ | ||
|
||
### Wie kommt mein Blog-Feed in den DEWP-Planet? | ||
Die Betreueung des DEWP-Planets obliegt einem Team von Freiwilligen der [deutschsprachigen WordPress Community](https://de.wordpress.org/). Den Slack-Channel des Teams findest du hier: [dewp.slack.com/messages/planet/](https://dewp.slack.com/messages/planet/) | ||
|
||
Das Team des Planet wird initiativ aktiv und fügt die Feeds geeigneter Blogs in regelmäßigen Abständen zum DEWP-Planet hinzu. Die Betreiber_innen der entsprechenden Blogs werden zuvor nach ihrem Einverstädnis gefragt. Auch behält sich das Team vor, jederzeit und ohne Angabe von Gründen einzelne Feeds aus dem _DEWP-Planet_ zu entfernen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* DEWP Planet Plugin | ||
*/ | ||
.dewp-planet__add-to-feed { | ||
margin: -4px 10px 0 0; | ||
} | ||
.dewp-planet__help-link { | ||
margin: 0 0 0 -5px; | ||
padding: 10px; | ||
position: relative; | ||
text-decoration: none; | ||
/*vertical-align: middle;*/ | ||
} | ||
/* Invisible states */ | ||
.dewp-planet__label-notice { | ||
display: block; | ||
max-height: 1px; | ||
overflow: hidden; | ||
-webkit-transition: padding 200ms linear; | ||
-moz-transition: padding 200ms linear; | ||
-ms-transition: padding 200ms linear; | ||
-o-transition: padding 200ms linear; | ||
transition: padding 200ms linear; | ||
} | ||
.dewp-planet__add-to-feed + .dewp-planet__label-text .dashicons-warning { | ||
visibility: hidden; | ||
} | ||
/* Visibile states */ | ||
.dewp-planet__add-to-feed:checked + .dewp-planet__label-text .dashicons-warning { | ||
margin: -1px 5px 0 -2px; | ||
position: relative; | ||
visibility: visible; | ||
} | ||
.dewp-planet__add-to-feed:checked + .dewp-planet__label-text .dewp-planet__label-notice { | ||
max-height: 10em; | ||
padding: 6px 0 8px; | ||
} | ||
/* Colors */ | ||
.dewp-planet__help-link, | ||
.dewp-planet__add-to-feed:disabled + .dewp-planet__label-text { | ||
color: #b4b9be; | ||
} | ||
.dewp-planet__add-to-feed:checked + .dewp-planet__label-text .dashicons-warning { | ||
color: #dc3232; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* Publish box template | ||
* @since 0.3 | ||
*/ | ||
|
||
/** | ||
* Filterable label text for checkbox. (Skipped i18n for now.) | ||
* @since 0.3 | ||
*/ | ||
$label_text = apply_filters( | ||
'dewp_planet__pub_section_label', | ||
'Im DEWP-Planet-Feed anzeigen' | ||
); | ||
|
||
/** | ||
* Filterable notice text for checkbox. (Skipped i18n for now.) | ||
* @since 0.3 | ||
*/ | ||
$notice_text = apply_filters( | ||
'dewp_planet__pub_section_notice', | ||
'<span class="dashicons dashicons-warning" aria-hidden="true"></span><strong>Erscheint in allen deutschsprachigen WordPress-Dashboards!</strong>' | ||
); | ||
?> | ||
<div class="misc-pub-section dewp-planet"> | ||
<label for="dewp-planet__add-to-feed"> | ||
<input type="checkbox" id="dewp-planet__add-to-feed" name="dewp-planet__add-to-feed" class="dewp-planet__add-to-feed" <?php checked( $value ); disabled( $maybe_enabled, false ); ?> value="1" /> | ||
<span class="dewp-planet__label-text"> | ||
<?php echo $label_text; ?> | ||
<a href="https://github.com/deworg/dewp-planet-feed/blob/master/ABOUT.md" class="dewp-planet__help-link dashicons-before dashicons-editor-help hide-if-no-js" target="_blank"> | ||
<span class="screen-reader-text">Was ist das?</span> | ||
</a> | ||
<span class="dewp-planet__label-notice"> | ||
<?php echo $notice_text; ?> | ||
</span> | ||
</span> | ||
</label> | ||
</div> |