$grp_flag = 1; } if($sel_grpd==0) $grp_flag = 1; if($grp_flag==1) { /*----------------- Comment Filtering end-------------------*/ $commentarray = _comment_load($cid); $userid=$commentarray->uid; $uptime=$commentarray->timestamp; $fullname = $name; $val_show_hide=find_show_hide($cid); $dis=1; if($comment=="This comment has been deleted."||$val_show_hide!="hide"){ $dis=0; } else{ $dis=1; } /* $viewName1 = 'arabic_text'; print views_embed_view($viewName1 , $display_id = 'default', arg(4), arg(5), 'ARB');*/ /* $viewName = 'ayah_translation_comment'; $view_12 = views_get_view($viewName);
* - $view: The view object * - $field: The field handler object that can process the input * - $row: The raw SQL result that can be used * - $output: The processed output that will normally be used. * * When fetching output from the $row, this construct should be used: * $data = $row->{$field->field_alias} * * The above will guarantee that you'll always get the correct data, * regardless of any changes in the aliasing that might happen if * the view is modified. */ ?> <?php $output; //print find_show_hide($output); $val=find_show_hide($output); if($val=="hide"){?> <a href="<?php print $base_url ?>/comment/hide/<?php print $output; ?>" class="popups" on-popups-options="{reloadWhenDone: true}" style="text-decoration:none;font-size:11px;"><?php print $val; ?></a> <? } else{ ?> <a href="<?php print $base_url ?>/comment/unhide/<?php print $output; ?>" class="popups" on-popups-options="{reloadWhenDone: true}" style="text-decoration:none;font-size:11px;"><?php print "show"; ?></a> <? } ?>