Welcome to LegendCS – With grace, in your face !

 
Submitted by: Berserk
Submitted: 04-20-2025, 02:03 PM
Views:
Downloads:
MD5: 71087549a1c07a02264c1d522680d0e3

Steam Discounts

Category: Plugins

Description:
Description : Show discounts for games on steam, it uses the cheapshark.com API

https://www.cheapshark.com/api/1.0/deals...ageSize=60


It can be placed by using the variable : {$steamdiscount}


Author : Berserk

Configuration:
You can add your own CSS for it by going to :
ACP -> Teplates&Styles -> Themes -> Your theme ->  Add Stylesheet


Name the file steamdiscounts.css

Attached to:  Globally
Check the box Write my own content

My Example of steamdiscounts.css :

PHP Code: 
.steam-slider {
    positionrelative;
    overflowhidden;
    width100%;
    max-width100%;
    height210px;
    text-aligncenter;
}

.
steam-slide {
    displaynone;
    padding10px;
    color#fff;
}

.
steam-slide.active {
    displayblock;
    animationfade 0.5s ease-in-out;
}

.
steam-slide a img {
    width100%;
    height90px;
    object-fitcontain;
    border-radius4px;
    margin-bottom5px;
    transitiontransform 0.3s ease;
    background#000;
}

.
steam-slide a img:hover {
    transformscale(1.05);
}

.
steam-slide h4 {
    margin5px 0;
    font-size14px;
    color#fff;
}

.
steam-slide .price {
    font-size13px;
    color#ccc;
}

.
steam-slide .discount {
    color#4caf50;
    font-weightbold;
}

.
view-link {
    displayinline-block;
    margin-top6px;
    padding4px 10px;
    background#1760bb;
    colorwhite;
    font-size12px;
    text-decorationnone;
    border-radius4px;
    transitionbackground 0.3s;
}

.
view-link:hover {
    background#114a91;
}

.
steam-slider-controls {
    positionabsolute;
    top40%;
    width100%;
    displayflex;
    justify-contentspace-between;
    transformtranslateY(-50%);
    pointer-eventsnone;
}

.
steam-slider-controls button {
    backgroundrgba(0,0,0,0.5);
    colorwhite;
    bordernone;
    font-size18px;
    padding4px 10px;
    cursorpointer;
    border-radius4px;
    pointer-eventsall;
}

.
steam-slider-controls button:hover {
    backgroundrgba(23961870.7);
}

@
keyframes fade {
    from opacity0; }
    to opacity1; }



UPDATE 20.04.2025

- Added a setting page of the plugin to update the API directly in ACP
- Added a  cache local system with the duration of 1 hour so that it will not make as many calls making the api to get blocked for your website.
- Added a debug function so that it will create a steam_api_debug.json fil in your board files that can display possible errors 
Rating:
Your rating: N/A
Average rating: N/A
 

[-]
Leave a comment
To leave a comment you must log in.