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/02 12:45] – franahres:plugins:entrycover [2025/08/30 19:44] (current) – [Description] fraenkiman
Line 1: Line 1:
 ===== Entry Cover Plugin ===== ===== Entry Cover Plugin =====
 +Author: [[https://franciscoarocas.com|Francisco Arocas]] | Revised by: [[https://frank-web.dedyn.io|Fraenkiman]]
 +
 ==== 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.
  
-Author: [[https://franciscoarocas.com|Francisco Arocas]] 
  
-==== Download ==== 
-[[https://wiki.flatpress.org/_media/res:plugins:franah_entrycover.zip|Download (V0.1)]] 
  
-==== How to use ====+==== How to use (Not for 0.1 beta) ====
  
 Upload a image in the media manager. Edit an entry, and select the cover you want to add. Save the entry. Upload a image in the media manager. Edit an entry, and select the cover you want to add. Save the entry.
Line 14: Line 14:
 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> +<code smarty> 
-{if isset($entryCoverEnable)} +{EntryCover}
-  {php}print(showEntryCover());{/php} +
-{/if}+
 </code> </code>
  
 You can add a CSS class to the cover passing it as parameter: You can add a CSS class to the cover passing it as parameter:
-<code> +<code smarty> 
-{if isset($entryCoverEnable)} +{EntryCover class="myClassCover"}
-  {php}print(showEntryCover('myClassCover'));{/php} +
-{/if}+
 </code> </code>
  
 An when the plugin parse will appear like this: An when the plugin parse will appear like this:
-<code>+<code html>
 <img class="myClassCover" src="image.png"> <img class="myClassCover" src="image.png">
 </code> </code>
  
-If you wan'to edit the tpl. You can activate **[cover]** tag. Just in plugin page, entry cover panel. Then use **[cover]** tag in entries.+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 css> 
 +.myClassCover { 
 +  max-width: 100%; 
 +  height: auto; 
 +} 
 +</code> 
 + 
 +==== Download ==== 
 +[[https://wiki.flatpress.org/_media/res:plugins:franah_entrycover.zip|Download (V0.1) beta]] | FlatPress 1.2.1/ Smarty 2.6 
 + 
 +{{ :res:plugins:frank:entrycover1_0_0.zip |}} | Requires FlatPress 1.4 Notturno or higher 
 + 
 + 
 +=== Changelog: === 
 +== 2025-08-30 (V1.0.0) by Fraenkiman == 
 +  * Compatible with FlatPress 1.4/ Smarty 4 or higher 
 +  * Various bug fixes 
 + 
 +**Support** 
 + 
 +Please ask for help on the [[https://forum.flatpress.org/viewtopic.php?t=225|FlatPress Forum]]
res/plugins/entrycover.1617360326.txt.gz ¡ Last modified: by franah

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki