Render

Version 3 (nimetu, 12/18/2013 02:59 pm)

1 1 vl
h1. Render
2 1 vl
3 1 vl
This is a set of PHP function to render a web page using Ryzom style.
4 1 vl
5 3 nimetu
h2. CSS file
6 1 vl
7 3 nimetu
You need to manually include ryzom css file.
8 1 vl
9 3 nimetu
Add this to html *<head>* section
10 3 nimetu
<pre><code class="html">
11 3 nimetu
<link href="http://api.ryzom.com/data/css/ryzom_ui.css" rel="stylesheet" media="all">
12 3 nimetu
</code></pre>
13 1 vl
14 3 nimetu
h2. PHP Interface
15 1 vl
16 3 nimetu
h3. @ryzom_render_window($title, $content, array $links)@
17 1 vl
18 3 nimetu
@$title@ and @$content@ are self-explanatory
19 1 vl
20 3 nimetu
h4. @$links@ (optional)
21 1 vl
22 3 nimetu
@$links@ is associative array that defines right side buttons on window title bar.
23 1 vl
24 3 nimetu
<pre><code class="php">
25 3 nimetu
$links = array(
26 3 nimetu
  array('href' => 'http://www.ryzom.com/', 'text' => 'Ryzom website'),
27 3 nimetu
  array('href' => 'http://app.ryzom.com/app_ryzomapi/', 'text' => 'RyzomAPI app'),
28 3 nimetu
);
29 3 nimetu
</code></pre>
30 1 vl
31 1 vl
h2. Real Examples
32 1 vl
33 3 nimetu
* [[ExampleProfile]]