Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from Zen4All/master
Browse files Browse the repository at this point in the history
This coding will start the basis of Missing Images for ZenCart 2.0.
  • Loading branch information
retched committed Jul 26, 2014
2 parents 82f0ef8 + f93a0c7 commit a447c67
Show file tree
Hide file tree
Showing 4 changed files with 402 additions and 458 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

// Define language definitions to avoid copy/pasting almost the same exact sentence.
define('ERROR_IMAGE_FORMAT', 'The image is named as a %s file but instead registers as a %s! Try to resave and reupload your file in the proper format.');
define('ERROR_FILE_NOT_FOUND', 'Image file does not exist. Edit the product\'s details and click "delete image" to remove from database.');
define('ERROR_NOT_WEB_FORMAT', 'The file found is either not an image or not an image that can be inherently loaded in a web browser. Try reuploading the file in PNG, GIF, JPG, or BMP format.');
128 changes: 128 additions & 0 deletions YOUR_ADMIN/includes/missing_images.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
@media screen {
.documentHeadline {
text-align: center;
font-size: 36px;
font-weight: bold;
}
.centeredText {
text-align: center;
}
body {
background: #E1E1E1;
font-family: arial, helvetica, sans-serif !important;
font-size: 13px !important;
color: #242424;
line-height: 2.3em !important;
}

.resultsTable {
width: 80%;
margin: auto;
border-collapse: collapse;
line-height: 1.7em;
}
.rowEven {
background: #FFFFFF;
}

.rowEven:hover {
background: #DADADA;
}

.rowOdd {
background: #EFEFEF;
}
.rowOdd:hover {
background: #D2D2D2;
}
.headingRow {
text-align: center;
font-weight: bold;
color: #FFFFFF;
background: #000000;
}
.mismatch, .caution {
background: yellow !important;
font-style: italic;
}
.redAlert {
color: #FF0000 !important;
font-weight: bold;
}
.OK {
padding: 0 0 0 50px;
color: #009900 !important;
font-weight: bold;
}

.productIDcolumn { width: 5%; }
.productNamecolumn { width: 20%; }
.productFilecolumn { width: 40%; }
.productResultcolumn { width:35%; }
}

@media print {
.documentHeadline {
text-align: center;
font-size: 36px;
font-weight: bold;
}
.centeredText {
text-align: center;
}
body {
font-family: arial, helvetica, sans-serif !important;
font-size: 13px !important;
color: #000000;
line-height: 2.3em !important;
}

.resultsTable {
width: 600px;
margin: auto;
border-collapse: collapse;
line-height: 1.7em;
table-layout:fixed;
}
.resultsTable td {
word-wrap: break-word;
}
.rowEven {
background: #FFFFFF;
}

.rowEven:hover {
background: #DADADA;
}

.rowOdd {
background: #EFEFEF;
}
.rowOdd:hover {
background: #D2D2D2;
}
.headingRow {
text-align: center;
font-weight: bold;
color: #FFFFFF;
background: #000000;
}
.mismatch, .caution {
background: yellow !important;
font-style: italic;
}
.redAlert {
color: #FF0000 !important;
font-weight: bold;
}
.OK {
padding: 0 0 0 50px;
color: #009900 !important;
font-weight: bold;
}

.productIDcolumn { width: 5%; }
.productNamecolumn { width: 20%; }
.productFilecolumn { width: 40%; }
.productResultcolumn { width:35%; }
}
Loading

0 comments on commit a447c67

Please sign in to comment.