3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $Id: node.tpl.php,v 1.4.2.1 2009/05/12 18:41:54 johnalbin Exp $ /** * @file node.tpl.php * * Theme implementation to display a node. * * Available variables: * - $title: the (sanitized) title of the node. * - $content: Node body or teaser depending on $teaser flag. * - $picture: The authors picture of the node output from * theme_user_picture(). * - $date: Formatted creation date (use $created to reformat with * format_date()). * - $links: Themed links like "Read more", "Add new comment", etc. output * from theme_links(). * - $name: Themed username of node author output from theme_user(). * - $node_url: Direct url of the current node. * - $terms: the themed list of taxonomy term links output from theme_links(). * - $submitted: themed submission information output from * theme_node_submitted(). * * Other variables: * - $node: Full node object. Contains data that may not be safe. * - $type: Node type, i.e. story, page, blog, etc. * - $comment_count: Number of comments attached to the node. * - $uid: User ID of the node author. * - $created: Time the node was published formatted in Unix timestamp. * - $zebra: Outputs either "even" or "odd". Useful for zebra striping in * teaser listings. * - $id: Position of the node. Increments each time it's output. * * Node status variables: * - $teaser: Flag for the teaser state. * - $page: Flag for the full page state. * - $promote: Flag for front page promotion state. * - $sticky: Flags for sticky post setting. * - $status: Flag for published status. * - $comment: State of comment settings for the node. * - $readmore: Flags true if the teaser content of the node cannot hold the * main body content. * - $is_front: Flags true when presented in the front page. * - $logged_in: Flags true when the current user is a logged-in member. * - $is_admin: Flags true when the current user is an administrator. * * @see template_preprocess() * @see template_preprocess_node() */ $claseContent = "servicio"; ?> <div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"><div class="node-inner"> <?php// print $picture; ?> <?php if (!$page): ?> <h2 class="title"> <a href="<?php print $node_url; ?>" title="<?php print $title ?>"><?php print $title; ?></a> </h2> <?php else: $titulo = "ADQUIRIR EJEMPLAR / SUSCRIBIRSE"; if (strpos($terms,'Cap Key') !== FALSE){ $claseContent = "capKey"; $titulo = "ADQUIRIR"; } ?> <h2 class="adquirir"><?php print $titulo;?></h2> <?endif; ?> <?php if ($unpublished): ?> <div class="unpublished"><?php print t('Unpublished'); ?></div> <?php endif; ?> <div class="content <?php print $claseContent; ?>"> <?php print $content; ?> </div> <?php print $links; ?> </div></div> <!-- /node-inner, /node -->
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 40
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 40
Branch analysis from position: 34
Branch analysis from position: 40
Branch analysis from position: 29
filename:       /in/3CXb9
function name:  (null)
number of ops:  48
compiled vars:  !0 = $claseContent, !1 = $node, !2 = $classes, !3 = $page, !4 = $node_url, !5 = $title, !6 = $titulo, !7 = $terms, !8 = $unpublished, !9 = $content, !10 = $links
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   51     0  E >   ASSIGN                                                   !0, 'servicio'
   53     1        ECHO                                                     '%3Cdiv+id%3D%22node-'
          2        FETCH_OBJ_R                                      ~12     !1, 'nid'
          3        ECHO                                                     ~12
          4        ECHO                                                     '%22+class%3D%22'
          5        ECHO                                                     !2
          6        ECHO                                                     '%22%3E%3Cdiv+class%3D%22node-inner%22%3E%0A%0A++'
   55     7        FETCH_CONSTANT                                   ~13     'php'
          8        FREE                                                     ~13
   56     9        ECHO                                                     '%0A++'
   57    10        BOOL_NOT                                         ~14     !3
         11      > JMPZ                                                     ~14, ->20
   58    12    >   ECHO                                                     '++++%3Ch2+class%3D%22title%22%3E%0A++++++%3Ca+href%3D%22'
   59    13        ECHO                                                     !4
         14        ECHO                                                     '%22+title%3D%22'
         15        ECHO                                                     !5
         16        ECHO                                                     '%22%3E'
         17        ECHO                                                     !5
         18        ECHO                                                     '%3C%2Fa%3E%0A++++%3C%2Fh2%3E%0A++'
         19      > JMP                                                      ->32
   62    20    >   ASSIGN                                                   !6, 'ADQUIRIR+EJEMPLAR+%2F+SUSCRIBIRSE'
   63    21        INIT_FCALL                                               'strpos'
         22        SEND_VAR                                                 !7
         23        SEND_VAL                                                 'Cap+Key'
         24        DO_ICALL                                         $16     
         25        TYPE_CHECK                                  1018          $16
         26      > JMPZ                                                     ~17, ->29
   64    27    >   ASSIGN                                                   !0, 'capKey'
   65    28        ASSIGN                                                   !6, 'ADQUIRIR'
   68    29    >   ECHO                                                     '++++%3Ch2+class%3D%22adquirir%22%3E'
         30        ECHO                                                     !6
         31        ECHO                                                     '%3C%2Fh2%3E%0A%09'
   70    32    >   ECHO                                                     '%0A++'
   71    33      > JMPZ                                                     !8, ->40
   72    34    >   ECHO                                                     '++++%3Cdiv+class%3D%22unpublished%22%3E'
         35        INIT_FCALL_BY_NAME                                       't'
         36        SEND_VAL_EX                                              'Unpublished'
         37        DO_FCALL                                      0  $20     
         38        ECHO                                                     $20
         39        ECHO                                                     '%3C%2Fdiv%3E%0A++'
   74    40    >   ECHO                                                     '%0A++%3Cdiv+class%3D%22content+'
   75    41        ECHO                                                     !0
         42        ECHO                                                     '%22%3E%0A++++'
   76    43        ECHO                                                     !9
   77    44        ECHO                                                     '++%3C%2Fdiv%3E%0A%0A++'
   79    45        ECHO                                                     !10
   80    46        ECHO                                                     '%0A%3C%2Fdiv%3E%3C%2Fdiv%3E+%3C%21--+%2Fnode-inner%2C+%2Fnode+--%3E'
   81    47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.21 ms | 1404 KiB | 15 Q