From: Anthony Talarico Date: Wed, 5 Apr 2017 13:32:17 +0000 (-0400) Subject: changing files url to media url to fix the article link problem X-Git-Tag: v1.0.0^2~13 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=78d6fef65128507c5423d44aa33d36c48d96d9d4;p=WP-Plugins%2Fglm-member-db-obits.git changing files url to media url to fix the article link problem --- diff --git a/css/front.css b/css/front.css index e7794fe..5e05914 100644 --- a/css/front.css +++ b/css/front.css @@ -253,11 +253,10 @@ table tr.odd, table tr.alt, table tr:nth-of-type(n){ border-right: 1px solid lightgrey; } .footable > tbody > tr > td.footable-row-detail-cell, .footable > tbody > tr > td.footable-first-column{ - - -} -.footable > tbody > tr > td.footable-row-detail-cell, .footable > tbody > tr > td.footable-first-column{ +} +.footable > tbody > tr > td.footable-row-detail-cell, .footable > tbody > tr > td.footable-first-column a{ + } .footable > tbody > tr > td.footable-row-detail-cell, .footable > tbody > tr > td.footable-first-column a:hover{ color: #A62800; diff --git a/models/front/obits/detail.php b/models/front/obits/detail.php index f19b11a..ea4d033 100644 --- a/models/front/obits/detail.php +++ b/models/front/obits/detail.php @@ -87,7 +87,7 @@ class GlmMembersFront_obits_detail extends GlmDataObits public function modelAction($actionData = false) { - $article_url = GLM_MEMBERS_PLUGIN_FILES_PATH; + $article_url = GLM_MEMBERS_PLUGIN_MEDIA_URL; if ( isset( $_GET['obit'] ) ){ $obit_id = filter_var( $_GET['obit'], FILTER_SANITIZE_STRING ); @@ -99,7 +99,7 @@ class GlmMembersFront_obits_detail extends GlmDataObits $obit = array_values($obit)[0]; $article = $article_url . '/files/'.$obit['obit_article']; // echo '
',print_r($obit), '
'; - + echo $article_url; // Compile template data $templateData = array( 'obit' => $obit,