Plugin Directory

Changeset 1865441


Ignore:
Timestamp:
04/27/2018 02:13:00 PM (8 years ago)
Author:
ndelilovic
Message:

Edit installation notes and links
Minor change in salah-widget.php

Location:
salah-widget/trunk
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • salah-widget/trunk/readme.txt

    r1865394 r1865441  
    1 === Plugin Name ===
     1=== Salah Widget ===
    22Contributors: ndelilovic
    33Donate link: paypal.me/Delilovic
     
    1717== Installation ==
    1818
    19 1. Upload `salah-widget.php` to the `/wp-content/plugins/` directory
    20 2. Activate the plugin through the 'Plugins' menu in WordPress
     191. Install and activate the plugin through the 'Plugins' menu in WordPress
    21203. Add the Salah Widget in the 'Appearance -> Widgets' menu in WordPress
    22214. Check if the displayed time matches your local (city) time, if not update your timezone in 'Settings -> General' menu in WordPress
    23 5. Download [salah.csv](https://github.com/Delilovic/salah-widget/blob/master/salah.csv) and adapt it to your needs.
    24 6. Upload your edited salah.csv file via the Media Library or the Salah Widget settings (note: it must be called salah.csv and no other file should contain this name in your WordPress Media Library).
     225. Download the example salah.csv file -> [(Download Link)](https://plugins.svn.wordpress.org/salah-widget/trunk/example/salah.csv)
     236. Edit the downloaded salah.csv file and adapt it to your needs. Remember that your website will load faster if you have lesser days in the csv file (365 or less rows would be optimal).
     247. Save the edited salah.csv file as comma delimited csv file -> [(Example)](https://plugins.svn.wordpress.org/salah-widget/trunk/example/comma_delimited_csv_file.png)
     256. Upload the edited salah.csv file via the Salah Widget Settings -> [(Example)](https://plugins.svn.wordpress.org/salah-widget/trunk/example/upload_csv.png). Remember that the file must be called salah.csv and no other file should contain this name in your WordPress Media Library
    25267. Enter the name of your city in the Salah Widget settings
    26278. Choose a Theme
    27 9. Save your Salah Widget settings.
     289. Save your Salah Widget settings
    2829
    2930== Screenshots ==
  • salah-widget/trunk/salah-widget.php

    r1865388 r1865441  
    116116
    117117        if ($file && $attachment_title == 'salah') {
    118             $current_date = date('d') . "." . date('m') . "." . date('Y');
     118            $current_date = date('d') . '/' . date('m') . '/' . date('Y');
    119119            $csv_data = file_get_contents($file);
    120120            $csv_data = iconv("windows-1250", "utf-8", $csv_data);
     
    122122            $lines = explode("\n", $csv_data); // split data by new lines
    123123            foreach ($lines as $i => $line) {
    124                 $values = explode(';', $line); // split lines by commas
     124                $values = explode(',', $line); // split lines by commas
    125125                if ($values[0] == $current_date) {
    126126                    $date = $values[1];
     
    182182function adding_salah_styles()
    183183{
    184     wp_register_style('salah_stylesheet', plugins_url('/public/salah-stylesheet.css', __FILE__));
     184    wp_register_style('salah_stylesheet', plugins_url('/public/css/salah-stylesheet.css', __FILE__));
    185185    wp_enqueue_style('salah_stylesheet');
    186186}
Note: See TracChangeset for help on using the changeset viewer.