XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
member_extra_info.addon.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
3 
4 if(!defined('__XE__'))
5 {
6  exit();
7 }
8 
20 if($called_position != "before_display_content" || Context::get('act') == 'dispPageAdminContentModify' || Context::getResponseMethod() != 'HTML' || isCrawler())
21 {
22  return;
23 }
24 // Include a file having functions to replace member image name/mark
25 require_once('./addons/member_extra_info/member_extra_info.lib.php');
26 // 1. Find a part <div class="member_MemberSerialNumber"> content </div> in the output document, change it to image name/mark by using MemberController::transImageName()
27 $temp_output = preg_replace_callback('!<(div|span|a)([^>]*)member_([0-9]+)([^>]*)>(.*?)<\/(div|span|a)>!is', 'memberTransImageName', $output);
28 if($temp_output)
29 {
31 }
32 unset($temp_output);
33 
34 /* End of file member_extra_info.addon.php */
35 /* Location: ./addons/member_extra_info/member_extra_info.addon.php */
$output
Definition: ko.install.php:193
isCrawler($agent=NULL)
Definition: func.inc.php:1538