Notice: Undefined index: cells in /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php(20) : eval()'d code on line 3 Call Stack: 0.0002 278296 1. {main}() /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:0
0.0007 311864 2. eval('?>
<?php
// These css classes are used to change the cell depending on what column its in
    $rows = $variables['cells'];
    $key = $variables['cells'][1][0]['stage'];
?>
    <!-- TABLE ROWS  -->
    <!-- check if there are schemes for this career stage -->
    <?php if (!$variables['cells']) : ?>
    <div class='flex-row careers-framework__schemes-none'>
        <div class='col-xs-12'>
            <p>There are currently no schemes for this career stage</p>
        </div>
    </div>
    <!-- indicates there are schemes -->
    <?php else : ?>
    <!-- independent research column is rendered slightly differently, requiring the
    rows to be split up into early and late stages-->
    <?php if($key === 'stage4') :?>
    <div class='flex-row careers-framework__text-stage-divider '>
        <div class='col-xs-12'>
            <p>Early stage</p>
        </div>
    </div>
    <ul class='promo__list'>
        <?php foreach($rows as $mobile_row ) :  ?>
        <?php $cell = $mobile_row[0] ?>
        <?php if (isset($cell['content'])) : ?>
        <li>
            <?php if (isset($cell['content']['list'])) : ?>
            <p>
                <?php print $cell['content']['title']['label'] ?>
            </p>
            <ul class='careers-framework__text-list'>
                <!-- for each list item in the content a new li element is created  -->
                <?php foreach($cell['content']['list'] as $li) : ?>
                <li>
                    <a href="<?php print $li['href'] ?>">
                        <?php print $li['label'] ?>
                    </a>
                </li>
                <?php endforeach?>
            </ul>
            <?php else : ?>
            <!-- just the standard cell content without list items -->
            <a href="<?php print $cell['content']['title']['href'] ?>">
                <?php print $cell['content']['title']['label'] ?>
            </a>
            <?php endif ?>
        </li>
        <?php endif?>
        <?php endforeach ?>
    </ul>
    <div class='flex-row careers-framework__text-stage-divider '>
        <div class='col-xs-12'>
            <p class='careers-framework__text--later-stage'>Later stage</p>
        </div>
    </div>
    <ul class='promo__list'>
        <?php foreach($rows as $mobile_row) :  ?>
        <?php
                // distinguishes whether scheme is from the later stage
                    $cell;
                    if ( sizeof($mobile_row) == 1) {
                        $cell = $mobile_row[0];
                    } else {
                        $cell = $mobile_row[1];
                    }
                ?>
            <?php if (isset($cell['content'])) : ?>
            <li>
                <?php if (isset($cell['content']['list'])) : ?>
                <p>
                    <?php print $cell['content']['title']['label'] ?>
                </p>
                <ul class='careers-framework__text-list'>
                    <!-- for each list item in the content a new li element is created  -->
                    <?php foreach($cell['content']['list'] as $li) : ?>
                    <li>
                        <a href="<?php print $li['href'] ?>">
                            <?php print $li['label'] ?>
                        </a>
                    </li>
                    <?php endforeach?>
                </ul>
                <?php else : ?>
                <!-- just the standard cell content without list items -->
                <a href="<?php print $cell['content']['title']['href'] ?>">
                    <?php print $cell['content']['title']['label'] ?>
                </a>
                <?php endif ?>
            </li>
            <?php endif?>
            <?php endforeach ?>
    </ul>
    <!-- all other columns are rendered in the same way -->
    <?php else : ?>
    <ul class='promo__list'>
        <?php foreach($rows as $mobile_row ) :  ?>
        <?php foreach($mobile_row as $cell) : ?>
        <?php if (isset($cell['content'])) : ?>
        <li>
            <?php if (isset($cell['content']['list'])) : ?>
            <p>
                <?php print $cell['content']['title']['label'] ?>
            </p>
            <ul class='careers-framework__text-list'>
                <!-- for each list item in the content a new li element is created  -->
                <?php foreach($cell['content']['list'] as $li) : ?>
                <li>
                    <a href="<?php print $li['href'] ?>">
                        <?php print $li['label'] ?>
                    </a>
                </li>
                <?php endforeach?>
            </ul>
            <?php else : ?>
            <!-- just the standard cell content without list items -->
            <a href="<?php print $cell['content']['title']['href'] ?>">
                <p>
                    <?php print $cell['content']['title']['label'] ?>
                </p>
            </a>
            <?php endif ?>
        </li>
        <?php endif?>
        <?php endforeach ?>
        <?php endforeach ?>
    </ul>
    <?php endif ?>
    <?php endif ?> ') /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:20 Notice: Undefined index: cells in /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php(20) : eval()'d code on line
    4 Call Stack: 0.0002 278296 1. {main}() /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:0 0.0007 311864 2. eval('?>
    <?php
// These css classes are used to change the cell depending on what column its in
    $rows = $variables['cells'];
    $key = $variables['cells'][1][0]['stage'];
?>
        <!-- TABLE ROWS  -->
        <!-- check if there are schemes for this career stage -->
        <?php if (!$variables['cells']) : ?>
        <div class='flex-row careers-framework__schemes-none'>
            <div class='col-xs-12'>
                <p>There are currently no schemes for this career stage</p>
            </div>
        </div>
        <!-- indicates there are schemes -->
        <?php else : ?>
        <!-- independent research column is rendered slightly differently, requiring the
    rows to be split up into early and late stages-->
        <?php if($key === 'stage4') :?>
        <div class='flex-row careers-framework__text-stage-divider '>
            <div class='col-xs-12'>
                <p>Early stage</p>
            </div>
        </div>
        <ul class='promo__list'>
            <?php foreach($rows as $mobile_row ) :  ?>
            <?php $cell = $mobile_row[0] ?>
            <?php if (isset($cell['content'])) : ?>
            <li>
                <?php if (isset($cell['content']['list'])) : ?>
                <p>
                    <?php print $cell['content']['title']['label'] ?>
                </p>
                <ul class='careers-framework__text-list'>
                    <!-- for each list item in the content a new li element is created  -->
                    <?php foreach($cell['content']['list'] as $li) : ?>
                    <li>
                        <a href="<?php print $li['href'] ?>">
                            <?php print $li['label'] ?>
                        </a>
                    </li>
                    <?php endforeach?>
                </ul>
                <?php else : ?>
                <!-- just the standard cell content without list items -->
                <a href="<?php print $cell['content']['title']['href'] ?>">
                    <?php print $cell['content']['title']['label'] ?>
                </a>
                <?php endif ?>
            </li>
            <?php endif?>
            <?php endforeach ?>
        </ul>
        <div class='flex-row careers-framework__text-stage-divider '>
            <div class='col-xs-12'>
                <p class='careers-framework__text--later-stage'>Later stage</p>
            </div>
        </div>
        <ul class='promo__list'>
            <?php foreach($rows as $mobile_row) :  ?>
            <?php
                // distinguishes whether scheme is from the later stage
                    $cell;
                    if ( sizeof($mobile_row) == 1) {
                        $cell = $mobile_row[0];
                    } else {
                        $cell = $mobile_row[1];
                    }
                ?>
                <?php if (isset($cell['content'])) : ?>
                <li>
                    <?php if (isset($cell['content']['list'])) : ?>
                    <p>
                        <?php print $cell['content']['title']['label'] ?>
                    </p>
                    <ul class='careers-framework__text-list'>
                        <!-- for each list item in the content a new li element is created  -->
                        <?php foreach($cell['content']['list'] as $li) : ?>
                        <li>
                            <a href="<?php print $li['href'] ?>">
                                <?php print $li['label'] ?>
                            </a>
                        </li>
                        <?php endforeach?>
                    </ul>
                    <?php else : ?>
                    <!-- just the standard cell content without list items -->
                    <a href="<?php print $cell['content']['title']['href'] ?>">
                        <?php print $cell['content']['title']['label'] ?>
                    </a>
                    <?php endif ?>
                </li>
                <?php endif?>
                <?php endforeach ?>
        </ul>
        <!-- all other columns are rendered in the same way -->
        <?php else : ?>
        <ul class='promo__list'>
            <?php foreach($rows as $mobile_row ) :  ?>
            <?php foreach($mobile_row as $cell) : ?>
            <?php if (isset($cell['content'])) : ?>
            <li>
                <?php if (isset($cell['content']['list'])) : ?>
                <p>
                    <?php print $cell['content']['title']['label'] ?>
                </p>
                <ul class='careers-framework__text-list'>
                    <!-- for each list item in the content a new li element is created  -->
                    <?php foreach($cell['content']['list'] as $li) : ?>
                    <li>
                        <a href="<?php print $li['href'] ?>">
                            <?php print $li['label'] ?>
                        </a>
                    </li>
                    <?php endforeach?>
                </ul>
                <?php else : ?>
                <!-- just the standard cell content without list items -->
                <a href="<?php print $cell['content']['title']['href'] ?>">
                    <p>
                        <?php print $cell['content']['title']['label'] ?>
                    </p>
                </a>
                <?php endif ?>
            </li>
            <?php endif?>
            <?php endforeach ?>
            <?php endforeach ?>
        </ul>
        <?php endif ?>
        <?php endif ?> ') /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:20

        <!-- TABLE ROWS  -->
        <!-- check if there are schemes for this career stage -->

        Notice: Undefined index: cells in /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php(20) : eval()'d code on line 8 Call Stack: 0.0002 278296 1. {main}() /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:0
        0.0007 311864 2. eval('?>
        <?php
// These css classes are used to change the cell depending on what column its in
    $rows = $variables['cells'];
    $key = $variables['cells'][1][0]['stage'];
?>
            <!-- TABLE ROWS  -->
            <!-- check if there are schemes for this career stage -->
            <?php if (!$variables['cells']) : ?>
            <div class='flex-row careers-framework__schemes-none'>
                <div class='col-xs-12'>
                    <p>There are currently no schemes for this career stage</p>
                </div>
            </div>
            <!-- indicates there are schemes -->
            <?php else : ?>
            <!-- independent research column is rendered slightly differently, requiring the
    rows to be split up into early and late stages-->
            <?php if($key === 'stage4') :?>
            <div class='flex-row careers-framework__text-stage-divider '>
                <div class='col-xs-12'>
                    <p>Early stage</p>
                </div>
            </div>
            <ul class='promo__list'>
                <?php foreach($rows as $mobile_row ) :  ?>
                <?php $cell = $mobile_row[0] ?>
                <?php if (isset($cell['content'])) : ?>
                <li>
                    <?php if (isset($cell['content']['list'])) : ?>
                    <p>
                        <?php print $cell['content']['title']['label'] ?>
                    </p>
                    <ul class='careers-framework__text-list'>
                        <!-- for each list item in the content a new li element is created  -->
                        <?php foreach($cell['content']['list'] as $li) : ?>
                        <li>
                            <a href="<?php print $li['href'] ?>">
                                <?php print $li['label'] ?>
                            </a>
                        </li>
                        <?php endforeach?>
                    </ul>
                    <?php else : ?>
                    <!-- just the standard cell content without list items -->
                    <a href="<?php print $cell['content']['title']['href'] ?>">
                        <?php print $cell['content']['title']['label'] ?>
                    </a>
                    <?php endif ?>
                </li>
                <?php endif?>
                <?php endforeach ?>
            </ul>
            <div class='flex-row careers-framework__text-stage-divider '>
                <div class='col-xs-12'>
                    <p class='careers-framework__text--later-stage'>Later stage</p>
                </div>
            </div>
            <ul class='promo__list'>
                <?php foreach($rows as $mobile_row) :  ?>
                <?php
                // distinguishes whether scheme is from the later stage
                    $cell;
                    if ( sizeof($mobile_row) == 1) {
                        $cell = $mobile_row[0];
                    } else {
                        $cell = $mobile_row[1];
                    }
                ?>
                    <?php if (isset($cell['content'])) : ?>
                    <li>
                        <?php if (isset($cell['content']['list'])) : ?>
                        <p>
                            <?php print $cell['content']['title']['label'] ?>
                        </p>
                        <ul class='careers-framework__text-list'>
                            <!-- for each list item in the content a new li element is created  -->
                            <?php foreach($cell['content']['list'] as $li) : ?>
                            <li>
                                <a href="<?php print $li['href'] ?>">
                                    <?php print $li['label'] ?>
                                </a>
                            </li>
                            <?php endforeach?>
                        </ul>
                        <?php else : ?>
                        <!-- just the standard cell content without list items -->
                        <a href="<?php print $cell['content']['title']['href'] ?>">
                            <?php print $cell['content']['title']['label'] ?>
                        </a>
                        <?php endif ?>
                    </li>
                    <?php endif?>
                    <?php endforeach ?>
            </ul>
            <!-- all other columns are rendered in the same way -->
            <?php else : ?>
            <ul class='promo__list'>
                <?php foreach($rows as $mobile_row ) :  ?>
                <?php foreach($mobile_row as $cell) : ?>
                <?php if (isset($cell['content'])) : ?>
                <li>
                    <?php if (isset($cell['content']['list'])) : ?>
                    <p>
                        <?php print $cell['content']['title']['label'] ?>
                    </p>
                    <ul class='careers-framework__text-list'>
                        <!-- for each list item in the content a new li element is created  -->
                        <?php foreach($cell['content']['list'] as $li) : ?>
                        <li>
                            <a href="<?php print $li['href'] ?>">
                                <?php print $li['label'] ?>
                            </a>
                        </li>
                        <?php endforeach?>
                    </ul>
                    <?php else : ?>
                    <!-- just the standard cell content without list items -->
                    <a href="<?php print $cell['content']['title']['href'] ?>">
                        <p>
                            <?php print $cell['content']['title']['label'] ?>
                        </p>
                    </a>
                    <?php endif ?>
                </li>
                <?php endif?>
                <?php endforeach ?>
                <?php endforeach ?>
            </ul>
            <?php endif ?>
            <?php endif ?> ') /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:20

            <div class='flex-row careers-framework__schemes-none'>
                <div class='col-xs-12'>
                    <p>There are currently no schemes for this career stage</p>
                </div>
            </div>
            <!-- indicates there are schemes -->

Description

This template creates the mobile chart for the careers framework - see career_framework_cell readme for datastructure required

/* No context defined for this component. */
  • Handle: @career-framework-mobile-column
  • Preview:
  • Filesystem Path: ../../modules/custom/corp_markup/theme/misc/career_framework_mobile_column.tpl.php/career_framework_mobile_column.tpl.php