Line 78... |
Line 78... |
78 |
<?php if (is_array($this->view['arData']) && sizeof($this->view['arData']) > 0) { ?>
|
78 |
<?php if (is_array($this->view['arData']) && sizeof($this->view['arData']) > 0) { ?>
|
79 |
|
79 |
|
80 |
<table class="table wpsg-table-order table-bordered table-hover table-striped wpsg-table-customer">
|
80 |
<table class="table wpsg-table-order table-bordered table-hover table-striped wpsg-table-customer">
|
81 |
<thead>
|
81 |
<thead>
|
82 |
<tr>
|
82 |
<tr>
|
- |
|
83 |
<th class="wpsg_pic_col"></th>
|
83 |
<th class="wpsg_order col_name" data-order="nr"><?php echo __("Name", 'wpsg'); ?></th>
|
84 |
<th class="wpsg_order col_name" data-order="nr"><?php echo __("Name", 'wpsg'); ?></th>
|
84 |
<th class="wpsg_order col_template" data-order="template"><?php echo __("Template", 'wpsg'); ?></th>
|
85 |
<th class="wpsg_order col_template" data-order="template"><?php echo __("Template", 'wpsg'); ?></th>
|
85 |
<th class="wpsg_order col_products" data-order="products"><?php echo __("Produkte", 'wpsg'); ?></th>
|
86 |
<th class="wpsg_order col_products" data-order="products"><?php echo __("Produkte", 'wpsg'); ?></th>
|
86 |
</tr>
|
87 |
</tr>
|
87 |
</thead>
|
88 |
</thead>
|
88 |
<tbody>
|
89 |
<tbody>
|
89 |
<?php foreach ($this->view['arData'] as $pg) { ?>
|
90 |
<?php foreach ($this->view['arData'] as /** @var wpsg_productgroup */ $pg) { ?>
|
90 |
<tr>
|
91 |
<tr>
|
- |
|
92 |
<td class="wpsg_pic_col">
|
- |
|
93 |
<?php if ($pg->getImage() > 0) { ?>
|
- |
|
94 |
|
- |
|
95 |
<?php echo \wp_get_attachment_image($pg->getImage(), [75, 75]); ?>
|
- |
|
96 |
|
- |
|
97 |
<?php } ?>
|
- |
|
98 |
</td>
|
91 |
<td class="col_name">
|
99 |
<td class="col_name">
|
- |
|
100 |
<strong><a title="<?php echo __("Diese Produktgruppe bearbeiten", "wpsg"); ?>" href="<?php
|
92 |
<strong><a title="<?php echo __("Diese Produktgruppe bearbeiten", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Productgroups&wpsg_mod_action=edit&edit_id=<?php echo $pg->id; ?>" class="row-title"><?php echo $pg->name; ?></a></strong>
|
101 |
|
- |
|
102 |
echo wpsg_admin_url('Productgroups', '', ['wpsg_mod_action' => 'edit', 'edit_id' => $pg->id]);
|
- |
|
103 |
|
- |
|
104 |
?>" class="row-title"><?php echo $pg->name; ?></a></strong>
|
93 |
<div class="row-actions">
|
105 |
<div class="row-actions">
|
94 |
<span class="edit"><a title="<?php echo __("Diese Produktgruppe bearbeiten", "wpsg"); ?>" href="<?php
|
106 |
<span class="edit"><a title="<?php echo __("Diese Produktgruppe bearbeiten", "wpsg"); ?>" href="<?php
|
95 |
|
107 |
|
96 |
echo wpsg_admin_url('Productgroups', '', ['wpsg_mod_action' => 'edit', 'edit_id' => $pg->id]);
|
108 |
echo wpsg_admin_url('Productgroups', '', ['wpsg_mod_action' => 'edit', 'edit_id' => $pg->id]);
|
97 |
|
109 |
|