Jump to main content

Elements

This page provides a quick reference for all the WebYep elements, like short text, long text, image etc. Copy and paste these into your preferred code clipboard, notepad or similar. The official documentation provides details about what each element does and the parameters that go inside them. Please remember that any page you want to make WebYep editable needs the Init code at the top and the session code after the opening body tag.

Example

These are the same elements featured in the code snippets shared on this website.

HTML & PHP

<!-- Logon button -->
<?php webyep_logonButton(true); // WebYepV1-2 ?>

<!-- Short text -->
<?php webyep_shortText("Fieldname", false, 550, 240); // WebYepV2 ?>

<!-- Long text -->
<?php webyep_longText("Fieldname", false, "", true, 600, 400); // WebYepV2 ?>

<!-- Rich text-->
<?php webyep_richText("Fieldname", false, "", true, 900, 600); // WebYepV2 ?>

<!-- Markup text (new version with encoding boolean) -->
<?php webyep_markupText("Fieldname", false, "", false, true, 600, 400); // WebYepV2 ?>

<!-- Image -->
<?php webyep_image("Fieldname", false, 'class="myclass"', 'some_other_page.php', '_self', 700, 900, true, 70, 90, 600, 270); // WebYepV2 ?>

<!-- Thumbnail gallery -->
<?php webyep_gallery("fieldname", false, 35, 35, 30, 900, 600, 35, 600, 400); // WebYepV2 ?>

<!-- Attachment -->
<?php webyep_attachment("attachment", false, "images/artwork-highlighter.png", 550, 240); // WebYepV2 ?>

<!-- Menu -->
<?php webyep_menu("menu", false, "some_page.php", "_self", "", "", 650, 530); // WebYepV2 ?>

<!-- Loop -->
<?php foreach ((new WYLoopElement())->aLoopIDs("Fieldname") as $webyep_oCurrentLoop->iLoopID) { $loopid=$webyep_oCurrentLoop->iLoopID; $_SESSION["loopid"]=$loopid; $webyep_oCurrentLoop->loopStart(true,$webyep_oCurrentLoop->iLoopID); // WebYepV2 ?>
...
<?php $webyep_oCurrentLoop->loopEnd(); } unset($_SESSION["loopid"]); // WebYepV2 ?>

<!-- Read more -->
<?php webyep_readMore("read", "Read More", "readmorepage.php", "_self", 550, 240); // WebYepV2 ?>

CSS

Javascript