Sfaturi pentru compunere
formate de intrare:- Filtered HTML:
- Adresele de situri web şi adresele de e-mail se transformă automat în linkuri.
Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
Acest sit permite conţinut HTML. În timp ce învăţatul întregului limbaj HTML poate părea înspăimântător, învăţarea folosirii câtorva "etichete" (taguri) HTML este rapidă şi uşoară. Acest tabel vă prezintă exemple pentru fiecare tag permis pe acest sit.
Pentru mai multe detalii, urmăriţi Specificaţiile HTML de la W3C sau folosiţi motorul dumneavoastră de căutare preferat pentru a găsi alte situri ce explică gramatica HTML.
Descrierea tag-ului Tu scrii Tu primeşti Ancorele sunt folosite pentru a face legături către alte pagini. <a href="http://www.dusanbaiski.eu">Dușan Baiski</a>Dușan Baiski Accentuat <em>Accentuat</em>Accentuat Aldin <strong>Aldin</strong>Aldin Citat <cite>Citat</cite>Citat Text codificat pentru a exemplifica sursele codurilor de programare <code>Codat</code>CodatListă neordonată - pentru a începe fiecare element din listă utilizează <li> <ul> <li>Primul articol</li> <li>Al doilea articol</li> </ul>- Primul articol
- Al doilea articol
Listă ordonată - pentru a începe fiecare element din listă utilizează <li> <ol> <li>Primul articol</li> <li>Al doilea articol</li> </ol>- Primul articol
- Al doilea articol
Listele de definiţii sunt similare cu alte liste HTML. <dl> începe lista de defint, <dt> începe termenul de definit şi <dd> începe descrierea de definit. <dl> <dt>Primul termen</dt> <dd>Prima definiţie</dd> <dt>Al doilea termen</dt> <dd>A doua definiţie</dd> </dl>- Primul termen
- Prima definiţie
- Al doilea termen
- A doua definiţie
Most unusual characters can be directly entered without any problems.
If you do encounter problems, try using HTML character entities. A common example looks like & for an ampersand & character. For a full list of entities see HTML's entities page. Some of the available characters include:
Descrierea caracterului Tu scrii Tu primeşti Ampersand && Mai mare >> Mai mic << Ghilimele "" - Liniile şi paragrafele sunt recunoscute automat. Tag-urile <br /> line break, <p> paragraf şi </p> închide paragraf sunt inserate automat. Dacă paragrafele nu sunt recunoscute adaugă doar câteva linii goale.
- You may embed videos from the following providers archive, google, livevideo, youtube. Just add the video URL to your textarea in the place where you would like the video to appear, i.e. http://www.youtube.com/watch?v=pw0jmvdh.
Using custom PHP code
Custom PHP code may be embedded in some types of site content, including posts and blocks. While embedding PHP code inside a post or block is a powerful and flexible feature when used by a trusted user with PHP experience, it is a significant and dangerous security risk when used improperly. Even a small mistake when posting PHP code may accidentally compromise your site.
If you are unfamiliar with PHP, SQL, or Drupal, avoid using custom PHP code within posts. Experimenting with PHP may corrupt your database, render your site inoperable, or significantly compromise security.
Notes:
- Remember to double-check each line for syntax and logic errors before saving.
- Statements must be correctly terminated with semicolons.
- Global variables used within your PHP code retain their values after your script executes.
register_globalsis turned off. If you need to use forms, understand and use the functions in the Drupal Form API.- Use a
printorreturnstatement in your code to output content. - Develop and test your PHP code using a separate test script and sample database before deploying on a production site.
- Consider including your custom PHP code within a site-specific module or
template.phpfile rather than embedding it directly into a post or block. - Be aware that the ability to embed PHP code within content is provided by the PHP Filter module. If this module is disabled or deleted, then blocks and posts with embedded PHP may display, rather than execute, the PHP code.
A basic example: Creating a "Welcome" block that greets visitors with a simple message.
Add a custom block to your site, named "Welcome". With its input format set to "PHP code" (or another format supporting PHP input), add the following in the Block body:
print t('Welcome visitor! Thank you for visiting.');To display the name of a registered user, use this instead:
global $user; if ($user->uid) { print t('Welcome @name! Thank you for visiting.', array('@name' => $user->name)); } else { print t('Welcome visitor! Thank you for visiting.'); }
Drupal.org offers some example PHP snippets, or you can create your own with some PHP experience and knowledge of the Drupal system.
- Full HTML:
- Adresele de situri web şi adresele de e-mail se transformă automat în linkuri.
- Liniile şi paragrafele sunt recunoscute automat. Tag-urile <br /> line break, <p> paragraf şi </p> închide paragraf sunt inserate automat. Dacă paragrafele nu sunt recunoscute adaugă doar câteva linii goale.
