Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added styles for dashboard payments #940

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
77 changes: 76 additions & 1 deletion css/sell_media-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -919,4 +919,79 @@ div#sell-media-main-container .main-container-tabs-contents {
margin: 0;
margin-top: 20px;
}
/* End: Admin Payment refund section */
/* End: Admin Payment refund section */

/* Start: Admin Payment Prodigi section */
.sell-media-status-table {
width: 100%;
text-align: left;
margin-bottom: 30px;
border: 1px solid #eeeeef;
}

.sell-media-status-table.wpm-stats-table {
margin-bottom: 10px !important;
}

.sell-media-status-table.no-margin {
margin: 0;
}

.sell-media-status-table:nth-last-of-type(1) {
margin-bottom: 0;
}

.sell-media-status-table thead {
background: #2b2a29;
color: #fff;
}

.sell-media-status-table.collections thead {
background: #404040;
}

.sell-media-status-table.collections thead th {
padding: 20px 20px;
}

.sell-media-status-table thead th {
padding: 17px 20px;
font-size: 16px;
}

.sell-media-status-table.five-column thead th {
width: 20%;
}

.sell-media-status-table.two-column thead th {
width: 50%;
}

.sell-media-status-table tbody tr {
background: #eeeeef;
padding: 10px;
}

.sell-media-status-table tbody tr:nth-child(even) {
background: white;
}

.sell-media-status-table tbody td {
padding: 10px 20px;
width: 50%;
overflow-wrap: anywhere;
}

.sell-media-status-table.two-column tbody td {
width: 50%;
}

.sell-media-status-table.five-column tbody td {
width: 20%;
}

.sell-media-status-table.collections tbody td {
width: 33%;
padding: 10px 20px;
}
/* End: Admin Payment Prodigi section */
37 changes: 23 additions & 14 deletions inc/admin-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,20 +223,29 @@ function sell_media_payment_gateway_details( $post ){

do_action('sell_media_payment_before_gateway_details', $post);
?>
<p>
<?php
echo esc_html( __( 'This is the data that was sent from ', 'sell_media' ) . $gateway . __( ' at time of purchase.', 'sell_media' ) );
?>
</p>
<ul>
<?php
if ( $arguments ) foreach ( $arguments as $k => $v ) {
?>
<li><strong><?php echo esc_html( $k ); ?>: </strong><?php echo esc_html( ( is_array( $v) || is_object( $v ) ) ? serialize( $v ) : esc_attr( $v ) ); ?></li>
<?php
}
?>
</ul>

<table class="sell-media-status-table" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th colspan="2">
<?php
echo esc_html( __( 'This is the data that was sent from ', 'sell_media' ) . $gateway . __( ' at time of purchase.', 'sell_media' ) );
?>
</th>
</tr>
</thead>
<?php if ( $arguments ): ?>
<tbody>
<?php foreach ( $arguments as $key => $value ): ?>
<tr>
<td><?php echo esc_html( $key ) ?></td>
<td><?php echo esc_html( $value ); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>

<?php
do_action('sell_media_payment_after_gateway_details', $post);
}
Expand Down