ZenphotoCMS Forum
update 1.6 to 1.6.1 - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: update 1.6 to 1.6.1 (/thread-13894.html)

Pages: 1 2


update 1.6 to 1.6.1 - Ewgeniy - 12-01-2024

Oh, sorry, I thought the "html_meta_tags plugin" only included the regular "




update 1.6 to 1.6.1 - acrylian - 12-01-2024

OpenGraph tags are justs meta tags as well ;-)

A plugin for that "theme_head" filter is relatively simple, depending on your knowledge. You find a general demo plugin on our Github: https://github.com/zenphoto/demo-plugin

Take that as an example. Instead of the demo functions use something like this:

zp_register_filter('theme_head', 'yourplugin:cript');

class yourplugin {

   static function script() {
       echo "Your script code here";
   }
}



update 1.6 to 1.6.1 - Ewgeniy - 12-01-2024

Although I have been in IT since the appearance of the IBM PC XT in the USSR. )) But programming is not my thing, although sometimes I edited the code when there was no other choice. And creating a plugin is beyond me. ) I'll be satisfied for now with the presence of the code on the image page. )




update 1.6 to 1.6.1 - acrylian - 12-01-2024

Well, that's as long as I am (I started with the C64). Take a look at the demo plugin which is fully commented and with the above example you should get along then;-)




update 1.6 to 1.6.1 - Ewgeniy - 12-01-2024

Fine. Thank you.