Beispiel #1
0
echo $example->renderHead();
?>
    <script type="text/javascript">
        init(function($) {
            $('.editable').raptor(defaultOptions);
        });
    </script>
</head>
<body>
    <?php 
echo $example->renderNavigation();
?>
    <div class="source-watch center half" data-output="#source">
        <div class="full editable" data-id="header">
            <?php 
echo $example->renderContent('header', $example->getDefaultContent('header'));
?>
        </div>
        <div class="content editable" data-id="body">
            <?php 
echo $example->renderContent('body', $example->getDefaultContent('body'));
?>
        </div>
        <div class="sidebar editable" data-id="sidebar">
            <?php 
echo $example->renderContent('sidebar', $example->getDefaultContent('sidebar'));
?>
        </div>
        <div style="clear:both"></div>
    </div>
    <div id="source" class="center half"></div>
Beispiel #2
0
                        url: function() {
                            var id = this.raptor.getElement().data('id');
                            if (id) {
                                return '../../actions/revisions.php?id=' + id;
                            }
                        }
                    }
                }
            }));
        });
    </script>
</head>
<body>
    <?php 
echo $example->renderNavigation();
?>
    <div class="editable center half" id="left" data-id="body-1">
        <?php 
ob_start();
?>
            <h1>Raptor Editor - Revisions Example</h1>
            <p>One</p>
            <p>Two</p>
            <p>Three</p>
        <?php 
echo $example->renderContent('body-1', ob_get_clean());
?>
    </div>
</body>
</html>