WordPress.org

Plugin Directory

Changeset 1181276


Ignore:
Timestamp:
06/15/15 18:01:50 (3 years ago)
Author:
blazingtorch
Message:

PrayBox 1.4 - WP 4.2

Location:
praybox
Files:
36 added
6 edited

Legend:

Unmodified
Added
Removed
  • praybox/trunk/css/bt-praybox-sc.css

    r1015672 r1181276  
     1 
     2/* v1.4 
     3// PRAYBOX FOOTER FORMFIELD (USED FOR FLAGGING REQUESTS: ABUSE OR PRAYED FOR) 
     4*/ 
     5.pbx-formfield-footer { margin-top: 10px; width: 100%; float: left; } 
     6.pbx-formfield-footer button { border-radius: 4px; } 
     7.pbx-formfield-footer button:first-child { float: left; } 
     8.pbx-formfield-footer button:last-child { float: right; } 
     9 
     10.pbx-modal-bg { 
     11    position: fixed; 
     12    top: 0; 
     13    right: 0; 
     14    bottom: 0; 
     15    left: 0; 
     16    background: rgba(0,0,0,0.8); 
     17    z-index: 99999; 
     18    display: none; 
     19} 
     20 
     21.pbx-modal { 
     22    width: 50%; 
     23    position: relative; 
     24    margin: 10% auto; 
     25    padding: 10px 20px 70px 20px; 
     26    border-radius: 10px; 
     27    background: #fff; 
     28    display: none; 
     29} 
     30 
     31.pbx-modal h3.pbx-title { 
     32    margin-top: 0px; 
     33} 
     34 
     35 
     36 
     37/* v1.3 
    138#praybox_wrapper, form.pbx-form, .pbx-formfield {width: 100%; margin: 0px; padding-bottom: 5px; box-sizing: border-box;} 
    239 
     
    1451table.pbx-req {width: 100%; margin-top: 5px; border-top: 1px dotted #ccc;} 
    1552table.pbx-req th {font-weight: bold;} 
     53*/ 
    1654 
    17 /* 
     55/* PRE v1.3 
    1856#praybox table.praybox {border: 0px !important; width: 100%;} 
    1957#praybox table.praybox td {padding: 2px 8px !important;} 
  • praybox/trunk/inc/functions.php

    r1015672 r1181276  
    170170         
    171171        if($flag_ratio<1){ 
    172         $req_list_output.="<tr><td>$title</td><td>$num_prayers</td><td>$submitted</td><td>"; 
    173         $req_list_output.="<a href='$link"."req=$req_id'>".PB_REQ_DETAILS."</a>"; 
     172        $req_list_output.="<tr id='row_$req_id'><td>$title</td><td class='num-prayers'>$num_prayers</td><td>$submitted</td><td>"; 
     173        $req_list_output.="<a href='#' req='$req_id'>".PB_REQ_DETAILS."</a>"; 
    174174        $req_list_output.="</td></tr>"; 
     175 
     176        $req_modals[]="<div id='req_$req_id' class='pbx-modal' rel='$req_id'><h3 class='pbx-title'>$title</h3>" 
     177            ."<div class='pbx-meta'><label>".PB_REQ_SUBMITTED_BY.":</label> $display_name</div>" 
     178            ."<div class='pbx-body'><label>".PB_REQ_REQUEST.":</label> $body</div>" 
     179            ."<div class='pbx-formfield pbx-formfield-footer'>" 
     180                ."<button type='button' class='flag-btn flag-abuse'>".PB_FLAG_ABUSE."</button>" 
     181                ."<button type='button' class='flag-btn flag-prayed'>".PB_FLAG_PRAYED."</button>" 
     182            ."</div>" 
     183            ."</div>"; 
     184         
    175185        } 
    176186    } 
     
    192202 
    193203    $req_list_output.="</div>"; 
    194  
    195     return $req_list_output; 
     204     
     205    $req_list_modals="<div class='pbx-modal-bg'>" 
     206        .implode("\n",$req_modals) 
     207        ."<div id='flag-response' class='pbx-modal'></div>" 
     208        ."<div id='prayed-for' class='pbx-modal'>".PB_THANK_YOU_PRAYER."</div>" 
     209        ."</div>"; 
     210 
     211    return $req_list_output.$req_list_modals; 
    196212} 
    197213 
     
    212228 
    213229} 
     230 
  • praybox/trunk/inc/inc_display_pb_forms.php

    r1015672 r1181276  
    132132        $sub_form_output.=($stat==0)? "<div class='pbx-formfield'><label>".PB_FORM_FIRST_NAME.":</label><input type='text' name='first_name' /></div>" : ""; 
    133133        $sub_form_output.=($stat==0)? "<div class='pbx-formfield'><label>".PB_FORM_LAST_NAME.":</label><input type='text' name='last_name' /></div>" : ""; 
    134         $sub_form_output.="<div class='pbx-formfield'><input type='checkbox' name='anon' $anon /><span>".PB_FORM_ANONYMOUS."</span></div>"; 
     134        $sub_form_output.="<div class='pbx-formfield'><label><input type='checkbox' name='anon' $anon /> ".PB_FORM_ANONYMOUS."</label></div>"; 
    135135        $sub_form_output.=($stat==0)? "<div class='pbx-formfield'><label>".PB_FORM_EMAIL.":</label><input type='text' name='email' /></div>" : ""; 
    136136        $sub_form_output.=($stat==0)? "<div class='pbx-formfield'><label>".PB_FORM_REQTITLE.":</label><input type='text' name='title' /></div>" : ""; 
    137137        $sub_form_output.=($stat==0)? "<div class='pbx-formfield'><label>".PB_FORM_REQ.":</label><textarea name='body'></textarea></div>" : ""; 
    138         $sub_form_output.="<div class='pbx-formfield'><input type='checkbox' name='notify' $notify /><span>".PB_FORM_NOTIFY."</span></div>"; 
    139         $sub_form_output.=($stat==1)? "<div class='pbx-formfield'><input type='checkbox' name='closed' /><span>".PB_FORM_EDIT_CLOSE."</span></div>" : ""; 
     138        $sub_form_output.="<div class='pbx-formfield'><label><input type='checkbox' name='notify' $notify /> ".PB_FORM_NOTIFY."</label></div>"; 
     139        $sub_form_output.=($stat==1)? "<div class='pbx-formfield'><label><input type='checkbox' name='closed' /> ".PB_FORM_EDIT_CLOSE."</label></div>" : ""; 
    140140        $sub_form_output.="<div class='pbx-formfield'><input type='submit' value='$sub_form_submit' /></div>"; 
    141141        $sub_form_output.="</form>"; 
  • praybox/trunk/inc/inc_display_pb_requests.php

    r1015672 r1181276  
    1919    if($anon!=1){$display_name=$first_name." ".$last_name;}else{$display_name="<em>".PB_REQ_ANONYMOUS."</em>";} 
    2020     
    21     $view_details_output="<div id='praybox_wrapper'>"; 
    22     $view_details_output.="<div class='pbx-link'><a href='$permalink'><< ".PB_LINK_BACK."</a></div>"; 
    23     $view_details_output.="<h2 class='pbx-title'>$title</h2>"; 
     21    $view_details_output="<div class='praybox_wrapper' rel='$req_id'>" 
     22        ."<div class='pbx-link'><a href='$permalink'><< ".PB_LINK_BACK."</a></div>" 
     23        ."<h2 class='pbx-title'>$title</h2>" 
     24        ."<div class='pbx-formfield'><label>".PB_REQ_SUBMITTED_BY.":</label> $display_name</div>" 
     25        ."<div class='pbx-formfield'><label>".PB_REQ_REQUEST.":</label> $body</div>" 
     26        ."<div class='pbx-formfield pbx-formfield-footer'>" 
     27            ."<button type='button' class='flag-btn flag-abuse'>".PB_FLAG_ABUSE."</button>" 
     28            ."<button type='button' class='flag-btn flag-prayed'>".PB_FLAG_PRAYED."</button>" 
     29        ."</div>"; 
    2430 
    25     $view_details_output.="<div class='pbx-formfield'><label>".PB_REQ_SUBMITTED_BY.":</label>$display_name</div>"; 
    26     $view_details_output.="<div class='pbx-formfield'><label>".PB_REQ_REQUEST.":</label>$body</div>"; 
     31/* 
    2732    $view_details_output.="<div class='pbx-formfield'><form class='pbx-flag' method='post' action='$permalink'><input type='hidden' name='action' value='flag_this_request' /><input type='hidden' name='pb_request_id' value='$req_id' /><input type='submit' value='".PB_FLAG_ABUSE."' /></form>"; 
    2833    $view_details_output.="<form class='pbx-prayed' method='post' action='$permalink'><input type='hidden' name='action' value='prayed_for' /><input type='hidden' name='pb_request_id' value='$req_id' /><input type='submit' value='".PB_FLAG_PRAYED."' /></form></div>"; 
     34*/ 
    2935    $view_details_output.="</div>"; 
    3036 
     
    3238 
    3339}elseif(isset($_POST['action']) && $_POST['action']=="flag_this_request"){ 
    34  
     40/* NOW IN AJAX 
    3541//PRAYED FOR INSERT SCRIPT AND CONTENT 
    3642    $req_id=$_POST['pb_request_id']; 
     
    4753     
    4854return $flag_action_output; 
    49  
     55*/ 
    5056}elseif(isset($_POST['action']) && $_POST['action']=="prayed_for"){ 
    51  
     57/* NOW IN AJAX 
    5258//PRAYED FOR INSERT SCRIPT AND CONTENT 
    5359    $req_id=$_POST['pb_request_id']; 
     
    6268 
    6369return $view_details_output; 
    64  
     70*/ 
    6571}else{ 
    6672 
  • praybox/trunk/praybox.php

    r1015672 r1181276  
    44Plugin URI: http://www.praybox.com/ 
    55Description: PrayBox is being used to manage prayer requests on WordPress websites all over the world. 
    6 Version: 1.3 
     6Version: 1.4 
    77Author: Bryan Haddock 
    88Author URI: http://www.blazingtorch.com 
     
    2626include("inc/pb_constants.php"); 
    2727include("inc/functions.php"); 
    28  
    29 function pb_includeAdminCSS() { 
    30     echo '<link type="text/css" rel="stylesheet" href="'.plugins_url().'/praybox/css/bt-praybox-admin.css" />' . "\n"; 
    31 } 
    32 function pb_includePublicCSS() { 
    33     echo '<link type="text/css" rel="stylesheet" href="'.plugins_url().'/praybox/css/bt-praybox-sc.css" />' . "\n"; 
    34 } 
    35 add_action('admin_head','pb_includeAdminCSS'); 
    36 add_action('wp_head','pb_includePublicCSS'); 
     28include("inc/enqueue_functions.php"); 
     29include("inc/public_pb_ajax.php"); 
    3730 
    3831include("inc/inc_install_func.php"); 
  • praybox/trunk/readme.txt

    r1015672 r1181276  
    44Tags: church, pray, prayer, religion, ministry, prayer request, ministry tools 
    55Requires at least: 3.0 
    6 Tested up to: 4.0 
    7 Stable tag: 1.3 
     6Tested up to: 4.2 
     7Stable tag: 1.4 
    88 
    99PrayBox is being used to manage prayer requests on WordPress websites all over the world. 
     
    106106* Fixed issue with "Active Request List" page not displaying all requests. 
    107107* Updated shortcode output for better compatibility with more WP themes. 
     108 
     109= June 15, 2015 - 1.4 = 
     110* Updated for current version of WP 
     111* Made some modifications to Prayer Request form HTML 
     112* Added AJAX to Prayer requests list to keep from having to reload the request list 
     113 
Note: See TracChangeset for help on using the changeset viewer.