User Tools

Site Tools


res:plugins:entrycover

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
res:plugins:entrycover [2021/04/01 16:53] franahres:plugins:entrycover [2021/04/02 12:51] (current) franah
Line 1: Line 1:
-===== Entry Cover Plugin =====+===== Entry Cover Plugin (BETA) =====
 ==== Description ==== ==== Description ====
 With this plugin, you can add Covers to entries easily.Just upload covers and select what you want in the entry. You can add the cover in any part of the theme, and also include a tag [cover] if your theme is not compatible with the plugin. With this plugin, you can add Covers to entries easily.Just upload covers and select what you want in the entry. You can add the cover in any part of the theme, and also include a tag [cover] if your theme is not compatible with the plugin.
 +
 +**NOTE: It is a beta version**
  
 Author: [[https://franciscoarocas.com|Francisco Arocas]] Author: [[https://franciscoarocas.com|Francisco Arocas]]
Line 14: Line 16:
 If your theme is not compatible with the plugin, just add this code where you want to show the cover in your entry .tpl file: If your theme is not compatible with the plugin, just add this code where you want to show the cover in your entry .tpl file:
  
 +<code>
 +{if isset($entryCoverEnable)}
 +  {php}print(showEntryCover());{/php}
 +{/if}
 +</code>
 +
 +You can add a CSS class to the cover passing it as parameter:
 +<code>
 +{if isset($entryCoverEnable)}
 +  {php}print(showEntryCover('myClassCover'));{/php}
 +{/if}
 +</code>
 +
 +An when the plugin parse will appear like this:
 +<code>
 +<img class="myClassCover" src="image.png">
 +</code>
 +
 +If you dont want to edit the tpl. You can activate **[cover]** tag. Just in plugin page, entry cover panel. Then use **[cover]** tag in entries.
 +
 +To make it responsive, you can add to your CSS:
  
 +<code>
 +.myClassCover {
 +  max-width: 100%;
 +  height: auto;
 +}
 +</code>
res/plugins/entrycover.1617288793.txt.gz · Last modified: 2021/04/01 16:53 by franah

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki