WordPress.org

Plugin Directory

Changeset 1572696


Ignore:
Timestamp:
01/11/17 18:21:48 (11 months ago)
Author:
imran2w
Message:

update st 301

Location:
salat-times/trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • salat-times/trunk/PrayTime.php

    r1417911 r1572696  
    11<?php 
    22 
    3 //--------------------- Help and Manual ---------------------- 
     3    defined( 'ABSPATH' ) or die( 'Stop! You can not do this!' ); 
     4 
    45/* 
    5  
    6 User's Manual: 
    7 http://praytimes.org/manual 
    8  
    9 Calculating Formulas: 
    10 http://praytimes.org/calculation 
    11  
    12  
    136//------------------------ User Interface ------------------------- 
    147 
  • salat-times/trunk/readme.txt

    r1502425 r1572696  
    55Tags: Salat, Namaz, Prayer, Muslim, Islam, Time, Bengali, Bangla, Bangladesh 
    66Requires at least: 3.0 
    7 Tested up to: 4.6 
     7Tested up to: 4.7 
    88Stable tag: trunk 
    99License: GNU General Public License 
     
    1212 
    1313== Description ==  
    14 Displays Salat (Namaz) timetable on your site for any location around the world, based on a variety of calculation methods currently used in muslim communities. 
     14Displays Salat (Namaz) timetable on your site for any location around the world, based on a variety of calculation methods currently used in muslim communities. You 
    1515 
    1616= Usage = 
     
    2222- Beautiful widgets. 
    2323- Easy admin panel. 
    24 - Automatic calculation. 
     24- Automatic/Manual Time. 
    2525- Timetable for any location. 
    2626- Language: English, Bengali and others. 
     
    75751. Widget preview (English). 
    76762. Widget preview (Bengali). 
    77 3. Salat Times Settings 1.3. 
     773. Manual Time Widget preview (English). 
    78784. Appearance > Widget. 
     794. Salat Times Settings 3.0.1. 
    7980 
    8081== Changelog == 
     82 
     83= 3.0 = 
     84* New feature! Manual timetabe option added. 
     85* Screenshots updated. 
     86* Tested compatibility with WP 4.7. 
    8187 
    8288= 2.2 = 
  • salat-times/trunk/salat-times.php

    r1425585 r1572696  
    55Description: Salat (Namaz) timetable for any location around the world, based on a variety of calculation methods currently used in muslim communities. 
    66Author: M.A. IMRAN 
    7 Version: 2.2 
     7Version: 3.0.1 
    88Author URI: http://facebook.com/imran2w 
    99*/ 
     
    1919 
    2020// Bismillah... 
     21 
     22    defined( 'ABSPATH' ) or die( 'Stop! You can not do this!' ); 
    2123 
    2224include_once('PrayTime.php'); 
     
    4446            'walign' => 'left', 
    4547            'scheme' => '#4189dd #ffffff #4472C4 #ffffff #B4C6E7 #D9E2F3 #000000', 
    46             'custom' => 'Salat-Time-Fajr-Sunrise-Zuhr-Asr-Magrib-Isha', 
    47             'lang' => 'en' ); 
     48            'custom' => 'Salat-Time-Fajr-Sunrise-Zuhr-Asr-Magrib-Isha-Begins-Jamah', 
     49            'lang' => 'en', 
     50            'timetable' => '0' ); 
    4851       } 
    4952        
     
    6568    } 
    6669        
     70        $offset = $time_zone *60*60; 
     71        if ($st_options['show_date'] == '1' && $st_options['lang'] == 'bn') { 
     72            $stdate = '<br/>'. en_to_bn(gmdate("l, jS F, Y", time()+$offset)); } else {  
     73            $stdate = '<br/>'. gmdate("l, jS F, Y", time()+$offset); } 
     74     
     75    if (!$st_options['timetable'] == '1') { // Automatic Timetable 
     76     
     77        $prayTime = new PrayTime(); 
     78        $prayTime->setCalcMethod($st_options['calc_method']); 
     79        $prayTime->setAsrMethod($st_options['asr_method']); 
     80        $prayTime->setTimeFormat($st_options['time_format']); 
     81     
    6782    $location = explode(" ", $st_options['lat_long_tz']); 
    6883     
     
    7792        } 
    7893     
    79     $offset = $time_zone *60*60; 
    80     if ($st_options['show_date'] == '1' && $st_options['lang'] == 'bn') { $date = '<br/>'. en_to_bn(gmdate("l, jS F, Y", time()+$offset)); } 
    81     else { $date = '<br/>'. gmdate("l, jS F, Y", time()+$offset); } 
    82      
    83     $prayTime = new PrayTime(); 
    84     $prayTime->setCalcMethod($st_options['calc_method']); 
    85     $prayTime->setAsrMethod($st_options['asr_method']); 
    86     $prayTime->setTimeFormat($st_options['time_format']); 
    87      
    8894    $color = explode(" ", $st_options['scheme']); 
    8995     
    9096    if ($st_options['lang'] == "en") { 
    91         $cl = explode("-", "Salat-Time-Fajr-Sunrise-Zuhr-Asr-Magrib-Isha"); 
     97        $cl = explode("-", "Salat-Time-Fajr-Sunrise-Zuhr-Asr-Magrib-Isha-Begins-Jamah"); 
    9298    } else { $cl = explode("-", $st_options['custom']); } 
    9399     
     
    95101    $times = en_to_bn($prayTime->getPrayerTimes(time(), $latitude, $longitude, $time_zone)); 
    96102    print('<table style="direction: ' .$st_options['dir']. '; width: ' .$st_options['width']. '; border-collapse: collapse;"> 
    97     <tr><td colspan="2" style="text-align: '. $st_options['halign'] . '; background-color: '.$color[0].'; color: '.$color[1].'; border: 1px solid white;">'. $st_options['location'] . $date . '</td></tr> 
     103    <tr><td colspan="2" style="text-align: '. $st_options['halign'] . '; background-color: '.$color[0].'; color: '.$color[1].'; border: 1px solid white;">'. $st_options['location'] . $stdate . '</td></tr> 
    98104    <tr style="background-color: '.$color[2].'; color: '.$color[3].';"><td style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">ওয়াক্ত</td><td style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">সময়</td></tr> 
    99105    <tr style="background-color: '.$color[4].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">সুবহে সাদিক</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">ভোর '. $times[0] . '</td></tr>' . ' 
     
    107113     
    108114else { 
    109     $times = $prayTime->getPrayerTimes(time(), $latitude, $longitude, $time_zone); 
     115    $times = $prayTime->getPrayerTimes(time(), $latitude, $longitude, $time_zone); 
    110116    print('<table style="direction: ' .$st_options['dir']. '; width: ' .$st_options['width']. '; border-collapse: collapse;"> 
    111     <tr><td colspan="2" style="text-align: '. $st_options['halign'] . '; background-color: '.$color[0].'; color: '.$color[1].'; border: 1px solid white;">'. $st_options['location'] . $date . '</td></tr> 
     117    <tr><td colspan="2" style="text-align: '. $st_options['halign'] . '; background-color: '.$color[0].'; color: '.$color[1].'; border: 1px solid white;">'. $st_options['location'] . $stdate . '</td></tr> 
    112118    <tr style="background-color: '.$color[2].'; color: '.$color[3].';"><td style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">'. $cl[0] . '</td><td style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">'. $cl[1] . '</td></tr> 
    113119    <tr style="background-color: '.$color[4].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $cl[2] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[0] . '</td></tr>' . ' 
     
    118124    <tr style="background-color: '.$color[5].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $cl[7] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[6] . '</td></tr> 
    119125    </table>'); 
     126    } 
     127    } else { // Manual Timetable 
     128     
     129        $dir = WP_CONTENT_DIR .'/plugin_data/salat-times/'; 
     130        $file = $dir . 'manual_time.data'; 
     131        $lines = file($file);//file in to an array 
     132         
     133        $lineN = gmdate("z", time()+$offset); 
     134         
     135        $color = explode(" ", $st_options['scheme']); 
     136         
     137        if ($st_options['lang'] == "en") { 
     138            $cl = explode("-", "Salat-Time-Fajr-Sunrise-Zuhr-Asr-Magrib-Isha-Begins-Jamah"); 
     139        } else { $cl = explode("-", $st_options['custom']); } 
     140         
     141        if ($st_options['lang'] == "bn") {           
     142        $times = en_to_bn(explode("--", $lines[$lineN])); 
     143        print('<table style="direction: ' .$st_options['dir']. '; width: ' .$st_options['width']. '; border-collapse: collapse;"> 
     144        <tr><td colspan="3" style="text-align: '. $st_options['halign'] . '; background-color: '.$color[0].'; color: '.$color[1].'; border: 1px solid white;">'. $st_options['location'] . $stdate . '</td></tr> 
     145        <tr style="background-color: '.$color[2].'; color: '.$color[3].';"><td rowspan="2" style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">ওয়াক্ত</td><td colspan="2" style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">সময়</td></tr> 
     146        <tr style="background-color: '.$color[2].'; color: '.$color[3].';"><td style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">ওয়াক্ত শুরু</td><td style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">জাম’আত</td></tr> 
     147        <tr style="background-color: '.$color[4].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">ফযর</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">ভোর '. $times[1] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">ভোর '. $times[6] . '</td></tr>' . ' 
     148        <tr style="background-color: '.$color[5].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">সূর্যোদয়</td><td colspan="2" style="text-align: center; border: 1px solid white; padding-left: 3px;">ভোর '. $times[11] . '</td></tr> 
     149        <tr style="background-color: '.$color[4].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">যোহর</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">দুপুর '. $times[2]. '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;"> দুপুর '. $times[7]. '</td></tr> 
     150        <tr style="background-color: '.$color[5].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">আছর</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">বিকাল '. $times[3] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">বিকাল '. $times[8] . '</td></tr> 
     151        <tr style="background-color: '.$color[4].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">মাগরিব</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">সন্ধ্যা '. $times[4]. '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">সন্ধ্যা '. $times[9]. '</td></tr> 
     152        <tr style="background-color: '.$color[5].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">এশা</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">রাত '. $times[5] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 3px;">রাত '. $times[10] . '</td></tr> 
     153        </table>'); 
     154        } 
     155         
     156    else { 
     157        $times = explode("--", $lines[$lineN]); 
     158        print('<table style="direction: ' .$st_options['dir']. '; width: ' .$st_options['width']. '; border-collapse: collapse;"> 
     159        <tr><td colspan="3" style="text-align: '. $st_options['halign'] . '; background-color: '.$color[0].'; color: '.$color[1].'; border: 1px solid white;">'. $st_options['location'] . $stdate . '</td></tr> 
     160        <tr style="background-color: '.$color[2].'; color: '.$color[3].';"><td rowspan="2" style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">'. $cl[0] . '</td><td colspan="2" style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">'. $cl[1] . '</td></tr> 
     161        <tr style="background-color: '.$color[2].'; color: '.$color[3].';"><td style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">Begins</td><td style="text-align: '. $st_options['talign'] . '; border: 1px solid white;">Jamah</td></tr> 
     162        <tr style="background-color: '.$color[4].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $cl[2] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[1] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[6] . '</td></tr>' . ' 
     163        <tr style="background-color: '.$color[5].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $cl[3] . '</td><td colspan="2" style="text-align: center; border: 1px solid white; padding-left: 10px;">'. $times[11] . '</td></tr> 
     164        <tr style="background-color: '.$color[4].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $cl[4] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[2]. '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[7]. '</td></tr> 
     165        <tr style="background-color: '.$color[5].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $cl[5] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[3] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[8] . '</td></tr> 
     166        <tr style="background-color: '.$color[4].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $cl[6] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[4]. '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[9]. '</td></tr> 
     167        <tr style="background-color: '.$color[5].'; color: '.$color[6].';"><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $cl[7] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[5] . '</td><td style="text-align: '. $st_options['walign'] . '; border: 1px solid white; padding-left: 10px;">'. $times[10] . '</td></tr> 
     168        </table>'); 
     169    } 
    120170    } 
    121171} 
  • salat-times/trunk/salat_times_admin.php

    r1425585 r1572696  
    11<?php 
     2 
     3    defined( 'ABSPATH' ) or die( 'Stop! You can not do this!' ); 
    24 
    35function salat_times_options_page() { 
    46    ?> 
    57    <div class="wrap"> 
    6     <h1 style="margin-bottom:5px;">Salat Times Settings <a href="#how" class="button button-secondary">How to use?</a> <a href="#help" class="button button-secondary">Help</a></h1> 
     8    <h1 style="margin-bottom:5px;">Salat Times Settings <a href="#how" class="button button-secondary">How to use?</a> <a href="#help" class="button button-secondary">Help</a> <a target="_blank" href="https://paypal.me/imran2x" class="button button-primary">Donate with PayPal</a></h1> 
    79    <br/> 
    8      
    9     <?php if(isset($_POST["restore_defaults"]) == "1") { delete_option('st_options'); } ?> 
    10      
    11     <form method="post" action="options.php"> 
     10 
     11<?php if(isset($_POST["restore_defaults"]) == "1") { delete_option('st_options'); } ?> 
     12     
     13    <?php if( isset($_GET['time_data_updated']) ) { ?> 
     14    <div id="message" class="updated"> 
     15    <p><strong><?php _e('Time Data Updated Successfully.') ?></strong></p> 
     16    </div> 
     17    <?php } ?> 
     18     
     19    <form id="auto_options" method="post" action="options.php"> 
    1220     
    1321    <?php 
     
    3543        'walign' => 'left', 
    3644        'scheme' => '#4189dd #ffffff #4472C4 #ffffff #B4C6E7 #D9E2F3 #000000', 
    37         'custom' => 'Salat-Time-Fajr-Sunrise-Zuhr-Asr-Magrib-Isha', 
    38         'lang' => 'en' ); 
     45        'custom' => 'Salat-Time-Fajr-Sunrise-Zuhr-Asr-Magrib-Isha-Begins-Jamah', 
     46        'lang' => 'en', 
     47        'timetable' => '0' ); 
    3948   } 
    4049   ?> 
    4150     
    4251    <div class="postbox"> 
     52    <h3 class="hndle" style="padding: 10px; margin: 0;"><span>Timetable Type</span></h3> 
     53    <div class="inside"> 
     54    <table class="form-table"> 
     55        <tr valign="top"> 
     56        <td>Choose Timetable Type:</td><td><input type="radio" id="auto" name="st_options[timetable]" value="0"<?php if($st_options['timetable'] == "0") { echo " checked"; } ?>><label for="auto">Automatic Calculation</label></td><td><input type="radio" id="manual" name="st_options[timetable]" value="1"<?php if($st_options['timetable'] == "1") { echo " checked"; } ?>><label for="manual">Display Time From Manual Data</label></td> 
     57        </tr> 
     58        </table> 
     59        <p>Note: <strong>Automatic Calculation</strong> option will display Wakto start time only. <strong>Display Time From Manual Data</strong> option will display Wakto start time + Jama'h time.</p> 
     60</div></div> 
     61 
     62<div class="postbox"> 
    4363    <h3 class="hndle" style="padding: 10px; margin: 0;"><span>Location Settings</span></h3> 
    4464<div class="inside"> 
     
    219239        <tr valign="top"> 
    220240        <td><label for="sd">Show Date:</label></td> 
    221         <td><input id="sd" type="checkbox" id="show_date" name="st_options[show_date]" value="1" <?php if($st_options['show_date']==1) echo('checked="checked"'); ?>/><label for="show_date">Gregorian Date</label></td> 
     241        <td><input id="sd" type="checkbox" id="show_date" name="st_options[show_date]" value="1" <?php if($st_options['show_date']==1) echo('checked="checked"'); ?>/><label for="sd">Gregorian Date</label></td> 
    222242        </tr> 
    223243        <tr valign="top"> 
     
    234254        <td><label for="cl">Custom Language:</label></td> 
    235255        <td> 
    236         <p>Change the text: <span style="color: red;">Salat-Time-Fajr-Sunrise-Zuhr-Asr-Magrib-Isha</span></p> 
    237         <p><input id="cl" type="text" name="st_options[custom]" value="<?php echo $st_options['custom']; ?>" /></p> 
     256        <p>Change the text: <span style="color: red;">Salat-Time-Fajr-Sunrise-Zuhr-Asr-Magrib-Isha-Begins-Jamah</span></p> 
     257        <p><input size="60" id="cl" type="text" name="st_options[custom]" value="<?php echo $st_options['custom']; ?>" /></p> 
    238258        </td> 
    239259        </tr> 
     
    289309    <input type="submit" value="Restore Default Settings" class="button button-secondary"> 
    290310    </form> 
     311     
    291312    <br /> 
     313     
     314<div class="postbox"> 
     315<h3 class="hndle" style="padding: 10px; margin: 0;"><span>Manual Time Data Input Panel</span></h3> 
     316<div class="inside"> 
     317    <?php 
     318 
     319    $url = admin_url( 'options-general.php?page=salat_times', 'http' ); 
     320    $dir = WP_CONTENT_DIR .'/plugin_data/salat-times/'; 
     321    $file = $dir . 'manual_time.data'; 
     322 
     323    if (!file_exists($file)) { 
     324        mkdir($dir, 0777, true); 
     325        fopen($file, 'w') or die("ERROR! Can't create data file!"); 
     326    } 
     327 
     328    // check if form has been submitted 
     329    if (isset($_POST['text'])) 
     330    { 
     331    // save the text contents 
     332    file_put_contents($file, $_POST['text']); 
     333 
     334    // redirect to form again 
     335    header(sprintf('Location: %s', $url)); 
     336    printf('<a href="%s">Moved</a>.', htmlspecialchars($url)); 
     337    exit(); 
     338    } 
     339 
     340    // read the textfile 
     341    $text = file_get_contents($file); 
     342     
     343    ?> 
     344    <!-- HTML form --> 
     345    <form action="" method="post"> 
     346    <textarea placeholder="input text" rows="10" cols="100" name="text"><?php echo htmlspecialchars($text) ?></textarea> 
     347    <br /> 
     348    <input type="hidden" value="1" name="time_data_updated" /> 
     349    <input class="button button-primary" type="submit" value="Update Data" /> 
     350    <input class="button button-secondary" type="reset" value="Reset" /> 
     351    </form><br /> 
     352    <p><strong>Instrustions:</strong></p> 
     353    <p>Input like this (use double hyphen "--" as separetor and one line for one day): Day--Fajr Begining--Zuhr--Asr-Magrib-Isha--Fajr Jama'h--Zuhr--Asr-Magrib-Isha--Sunrise</p> 
     354    <p>Example:</p> 
     355    <p>Jan 01--05:13 AM--01:15 PM--03:30 PM--06:10 PM--08:15 PM--05:30 AM--01:30 PM--03:45 PM--06:15 PM--08:30 PM--05:50 AM<br/>Jan 02--05:14 AM--01:15 PM--03:30 PM--06:10 PM--08:15 PM--05:30 AM--01:30 PM--03:45 PM--06:15 PM--08:30 PM--05:50 AM</p> 
     356 
     357</div></div> 
     358 
     359<div class="postbox"> 
     360    <h3 class="hndle" style="padding: 10px; margin: 0;"><span>Backup/Restore</span></h3> 
     361    <div class="inside"> 
     362    <p>Here you can download backups of your settings/data and restore them when you need.</p> 
     363    <table class="form-table"> 
     364        <tr valign="top"> 
     365        <td><strong><u>Backups</u></strong></td><td><strong><u>Download</u></strong></td><td><strong><u>Restore Backups</u></strong></td> 
     366        </tr> 
     367        <tr valign="top"> 
     368        <td>1. Manual Time Data</td><td><a class="button button-secondary" href="<?php echo WP_CONTENT_URL.'/plugin_data/salat-times/manual_time.data'; ?>" download>Download Backup</a></td><td>Upload the <strong>manual_time.data</strong> backup file to <strong>wp-contents/plugin_data/salat-times</strong> folder.</td> 
     369        </tr> 
     370        <tr valign="top"> 
     371        <td>2. Plugin Settings</td><td><span class="button button-secondary">Not Available</span></td><td>Plugin settings restore option not available yet.</td> 
     372        </tr> 
     373        </table> 
     374     </div> 
     375</div> 
    292376     
    293377    <a name="how"></a> 
     
    332416        <tr valign="top"> 
    333417        <td> 
     418    <p>If you like this plugin, please donate...<br /><a target="_blank" href="https://paypal.me/imran2x"><?php echo '<img src="' . plugins_url( 'paypal_donate.gif', __FILE__ ) . '" > '; ?></a></p> 
     419    <p><a href="http://facebook.com/imran2w" target="_blank"><img src="http://www.gravatar.com/avatar/<?php echo md5( "imran2w@gmail.com" ); ?>" /></a></p> 
    334420    <p>Developer: <a href="http://facebook.com/imran2w">M.A. IMRAN</a><br /> 
    335421    E-Mail: imran2w@gmail.com<br /> 
    336     Web: <a href="http://i-onlinemedia.net">www.i-onlinemedia.net</a></p><br/> 
     422    Web: <a target="_blank" href="http://i-onlinemedia.net">www.i-onlinemedia.net</a> - <a target="_blank" href="http://xhostbd.com">www.xhostbd.com</a></p><br/> 
    337423    <p align="justify">This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or ( at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of ERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the <a href="http://www.gnu.org/licenses/gpl.txt">GNU General Public License</a> for more details.</p><br/> 
    338424    <p align="justify">A project of <a href="http://i-onlinemedia.net">Islamic Online Media</a> - An extra-ordinary Islamic website of Bangladesh based on pure tawheed and sahih sunnah.</p> 
     
    348434}(document, 'script', 'facebook-jssdk'));</script> 
    349435 
     436    <div class="fb-like-box" data-href="https://www.facebook.com/xhostbd" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div> 
     437    </td> 
     438    <td> 
     439    <div id="fb-root"></div> 
     440<script>(function(d, s, id) { 
     441  var js, fjs = d.getElementsByTagName(s)[0]; 
     442  if (d.getElementById(id)) return; 
     443  js = d.createElement(s); js.id = id; 
     444  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=330291150372591&version=v2.0"; 
     445  fjs.parentNode.insertBefore(js, fjs); 
     446}(document, 'script', 'facebook-jssdk'));</script> 
     447 
    350448    <div class="fb-like-box" data-href="https://www.facebook.com/islamiconlinemedia" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div> 
    351449    </td> 
     
    372470     
    373471    global $salat_times_hook; 
    374     $salat_times_hook = add_options_page('Salat Times Settings', 'Salat Times', 'edit_pages', 'salat_times', 'salat_times_options_page'); 
     472    $salat_times_hook = add_options_page('Salat Times Settings', 'Salat Times', 'activate_plugins', 'salat_times', 'salat_times_options_page'); 
    375473} 
    376474     
    377475function register_salat_times_settings() { 
    378476    register_setting( 'salat-times-settings-group', 'st_options' ); 
     477    register_setting( 'salat-times-settings-group2', 'tt_options' ); 
    379478} 
    380479 
     
    382481add_action('admin_init', 'register_salat_times_settings'); 
    383482add_filter('contextual_help', 'salat_times_help', 10, 3); 
     483 
    384484?> 
Note: See TracChangeset for help on using the changeset viewer.