Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 20 additions & 25 deletions admin/styles-page-inner.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,31 +122,26 @@ class="button button-primary">Create New</a>
}

?>
<tr>
<td>
<a class=""
href="<?php echo esc_url( \Elementor\Utils::get_edit_link( $style->ID ) ); ?>"><?php echo esc_html( $style->post_title ); ?></a>
</td>
<td>
<a href="<?php echo esc_url( admin_url( 'admin.php?page=dtbaker-stylepress-settings' ) ); ?>">
<?php if ( $used ) { ?>
<i class="fa fa-check"></i> Style Applied To: <?php echo implode( ', ', $used ); ?>.
<?php } else { ?>
<i class="fa fa-times"></i> Style Not Used.
<?php } ?>
</a>
</td>
<td>
<a class="button button"
href="<?php echo esc_url( get_edit_post_link( $style->ID ) ); ?>">Settings</a>
<a class="button button"
href="<?php print wp_nonce_url( admin_url( 'admin.php?action=stylepress_clone&post_id=' . (int) $style->ID ), 'stylepress_clone', 'stylepress_clone' ); ?>"><?php esc_html_e( 'Clone', 'stylepress' ); ?></a>
<a class="button button"
href="<?php echo esc_url( get_permalink( $style->ID ) ); ?>"><?php esc_html_e( 'Preview', 'stylepress' ); ?></a>
<a class="button button-primary"
href="<?php echo esc_url( \Elementor\Utils::get_edit_link( $style->ID ) ); ?>"><?php esc_html_e( 'Elementor', 'stylepress' ); ?></a>
</td>
</tr>
<tr>
<td>
<a class="" href="<?php echo esc_url('post.php?post=' . (int) $style->ID . '&action=elementor'); ?>"><?php echo esc_html($style->post_title); ?></a>
</td>
<td>
<a href="<?php echo esc_url(admin_url('admin.php?page=dtbaker-stylepress-settings')); ?>">
<?php if ($used) { ?>
<i class="fa fa-check"></i> Style Applied To: <?php echo implode(', ', $used); ?>.
<?php } else { ?>
<i class="fa fa-times"></i> Style Not Used.
<?php } ?>
</a>
</td>
<td>
<a class="button button" href="<?php echo esc_url(get_edit_post_link($style->ID)); ?>">Settings</a>
<a class="button button" href="<?php print wp_nonce_url(admin_url('admin.php?action=stylepress_clone&post_id=' . (int) $style->ID), 'stylepress_clone', 'stylepress_clone'); ?>"><?php esc_html_e('Clone', 'stylepress'); ?></a>
<a class="button button" href="<?php echo esc_url(get_permalink($style->ID)); ?>"><?php esc_html_e('Preview', 'stylepress'); ?></a>
<a class="button button-primary" href="<?php echo esc_url('post.php?post=' . (int) $style->ID . '&action=elementor'); ?>"><?php esc_html_e('Elementor', 'stylepress'); ?></a>
</td>
</tr>
<?php
}
?>
Expand Down