From 78d6fef65128507c5423d44aa33d36c48d96d9d4 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 5 Apr 2017 09:32:17 -0400 Subject: [PATCH] changing files url to media url to fix the article link problem --- css/front.css | 7 +++---- models/front/obits/detail.php | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) 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, -- 2.17.1