コード例 #1
0
function html_default_view($vars)
{
    extract($vars);
    ?>
<p>my content</p>
<?php 
    content_for('side');
    ?>
<p><?php 
    echo 'my';
    ?>
 sidebar</p>
<?php 
    end_content_for();
}
コード例 #2
0
ファイル: index.html.php プロジェクト: Raven24/DbAcl
?>
<div id="controls">
    <ul>
        <li><a href="<?php 
echo url_for('clients', 'new');
?>
" id="createClient"><img src="img/create_client.png" alt="<?php 
echo _("New client");
?>
" title="<?php 
echo _("New client");
?>
"></a></li>
    </ul>
</div>
<?php 
end_content_for();
?>

<?php 
content_for('scripts');
?>
 

<?php 
echo HTML::script("\n\$('.edit_client, #createClient').live('click', function() {\n    \$.getScript(this.href);\n    return false;\n});\nvar currentNav = 'clients';\n");
?>

<?php 
end_content_for();
コード例 #3
0
ファイル: _hover.php プロジェクト: laiello/my-imouto-booru
          Score: <span id="hover-score"></span>
          Rating: <span id="hover-rating"></span>
          <span id="hover-is-parent">Parent</span>
          <span id="hover-is-child">Child</span>
          <span id="hover-is-pending">Pending</span>
          <span id="hover-not-shown">Hidden</span>
        </div>
        <div>
          <span id="hover-is-flagged"><span class="flagged-text">Flagged</span> by <span id="hover-flagged-by"></span>: <span id="hover-flagged-reason">gar</span></span>
        </div>
      </div>
      <div>
        <span id="hover-tags">
          <span class="tag-type-artist"><a id="hover-tag-artist"></a></span>
          <span class="tag-type-circle"><a id="hover-tag-circle"></a></span>
          <span class="tag-type-copyright"><a id="hover-tag-copyright"></a></span>
          <span class="tag-type-character"><a id="hover-tag-character"></a></span>
          <span class="tag-type-general"><a id="hover-tag-general"></a></span>
          <span class="tag-type-faults"><a id="hover-tag-faults"></a></span>
          <span class="tag-type-custom"><a id="hover-tag-custom"></a></span>
        </span>
      </div>
    </div>

<?php 
do_content_for("post_cookie_javascripts");
?>
  <script type="text/javascript">Post.hover_info_init();</script>
<?php 
end_content_for(true);