Lines Matching refs:data
37 $data = array();
44 $data['id'] = substr(md5($img),0,8);
45 $data['mime'] = strtolower(explode('.',$img));
46 $data['img_path'] = $conf['basedir']."_media/".$img;
50 $data['playmode'] = $this->getConf('playmode');
51 $data['fov'] = $this->getConf('fov');
52 $data['yaw'] = $this->getConf('yaw');
53 $data['pitch'] = $this->getConf('pitch');
54 $data['view_mode'] = intval($this->getConf('view_mode'));
55 $data['hv_ratio'] = $this->getConf('hv_ratio');
56 …$data['lock_nadirs'] = 'no'; if ($this->getConf('lock_nadirs')) $data['lock_nadirs'] = 'yes';
57 …$data['lock_vertical'] = 'no'; if ($this->getConf('lock_vertical')) $data['lock_vertical'] = '…
58 … $data['lock_fov'] = 'no'; if ($this->getConf('lock_fov')) $data['lock_fov'] = 'yes';
59 …$data['limit_vertical'] = 'no'; if ($this->getConf('limit_vertical')) $data['limit_vertical'] =…
60 $data['top_limit'] = $this->getConf('top_limit');
61 $data['bottom_limit'] = $this->getConf('bottom_limit');
62 …$data['limit_horizontal'] = 'no'; if ($this->getConf('limit_horizontal')) $data['limit_horizontal…
63 $data['right_limit'] = $this->getConf('right_limit');
64 $data['left_limit'] = $this->getConf('left_limit');
65 …$data['proj_implicit'] = 'no'; if ($this->getConf('proj_implicit')) $data['proj_implicit'] = '…
66 $data['elevation'] = $this->getConf('elevation');
67 $data['depression'] = $this->getConf('depression');
68 $data['proj_type'] = intval($this->getConf('proj_type'));
69 … $data['adminMode'] = 'no'; if ($this->getConf('adminMode')) $data['adminMode'] = 'yes';
70 $data['width'] = $this->getConf('width');
71 $data['height'] = $this->getConf('height');
72 $data['bgcolor'] = $this->getConf('bgcolor');
73 $data['xml_path'] = $conf['basedir']."lib/plugins/ryubin/".$primary_xml;
74 $data['smooth'] = 'no'; if ($this->getConf('smooth')) $data['smooth'] = 'yes';
75 …$data['disable_wheel'] = 'no'; if ($this->getConf('disable_wheel')) $data['disable_wheel'] = '…
76 …$data['allowFullScreen'] = 'false'; if ($this->getConf('allowFullScreen')) $data['allowFullScree…
77 $data['allowScriptAccess'] = $this->getConf('allowScriptAccess');
88 if ($value == $mode) $data['playmode'] = $value;
91 … $value = intval($value); if ($value > 19 && $value < 131) $data['fov'] = $value; br…
92 … $value = intval($value); if ($value > -181 && $value < 181) $data['yaw'] = $value; br…
93 … $value = intval($value); if ($value > -181 && $value < 181) $data['pitch'] = $value; …
94 …ew_mode': $value = intval($value); if ($value > 0 && $value < 4) $data['view_mode'] = $val…
95 …io': if (is_numeric($value) && $value >= 0.1 && $value <= 10.0) $data['hv_ratio'] = $valu…
96 case 'lock_nadirs': if ($value == 'yes') $data['lock_nadirs'] = $value; break;
97 … case 'lock_vertical': if ($value == 'yes') $data['lock_vertical'] = $value; break;
98 case 'lock_fov': if ($value == 'yes') $data['lock_fov'] = $value; break;
99 … case 'limit_vertical': if ($value == 'yes') $data['limit_vertical'] = $value; break;
100 …_limit': $value = intval($value); if ($value > 9 && $value < 91) $data['top_limit'] = $val…
101 …tom_limit': $value = intval($value); if ($value > 9 && $value < 91) $data['bottom_limit'] = $…
102 … case 'limit_horizontal': if ($value == 'yes') $data['limit_horizontal'] = $value; break;
103 …ht_limit': $value = intval($value); if ($value > 9 && $value < 91) $data['right_limit'] = $v…
104 …t_limit': $value = intval($value); if ($value > 9 && $value < 91) $data['left_limit'] = $va…
105 … case 'proj_implicit': if ($value == 'no') $data['proj_implicit'] = $value; break;
106 …vation': $value = intval($value); if ($value > 0 && $value < 91) $data['elevation'] = $val…
107 …ression': $value = intval($value); if ($value > 0 && $value < 91) $data['depression'] = $va…
108 …case 'proj_type': $value = intval($value); if ($value == 2) $data['proj_type'] = $value; b…
110 if ($data['adminMode']) {
111 if ($data['mime'] == 'xml') $data['xml_path'] = $conf['basedir']."_media/".$img;
113 … $value = intval($value); if ($value > 319 && $value < 1921) $data['width'] = $value; …
114 …: $value = intval($value); if ($value > 239 && $value < 1081) $data['height'] = $value;…
115 … if (preg_match("^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",$value)) $data['bgcolor'] = $value…
116 case 'smooth': if ($value == 'yes') $data['smooth'] = $value; break;
117 … case 'disable_wheel': if ($value == 'yes') $data['disable_wheel'] = $value; break;
118 … case 'allowFullScreen': if ($value == 'true') $data['allowFullScreen'] = $value; break;
119 … case 'allowScriptAccess': if ($value == 'sameDomain') $data['allowFullScreen'] = $value;
120 … if ($value == 'always') $data['allowFullScreen'] = $value; break;
128 return $data;
131 public function render($mode, &$renderer, $data) { argument
135 … $doc = "\n<div class=\"ryubin\" id=\"".$data['id']."\">\n <script type=\"text/javascript\">\n";
137 $doc .= " 'width', '".$data['width']."',\n";
138 $doc .= " 'height', '".$data['height']."',\n";
139 $doc .= " 'bgcolor', '".$data['bgcolor']."',\n";
140 $doc .= " 'id','".$data['id']."',\n";
145 $doc .= "playmode=".$renderer->_xmlEntities($data['playmode']);
147 $doc .= "&xml_path=".$renderer->_xmlEntities($data['xml_path']);
148 … if ($data['mime'] != 'xml') $doc .= "&img_path=".$renderer->_xmlEntities($data['img_path']);
149 if ($data['fov'] != 60) $doc .= "&fov=".$data['fov'];
150 if ($data['yaw'] != 0) $doc .= "&yaw=".$data['yaw'];
151 if ($data['pitch'] != 0) $doc .= "&pitch=".$data['pitch'];
152 if ($data['view_mode'] != 1) $doc .= "&view_mode=".$data['view_mode'];
153 if ($data['hv_ratio'] != 2.0) $doc .= "&hv_ratio=".$data['hv_ratio'];
154 if ($data['smooth'] == 'yes') $doc .= "&smooth=".$data['smooth'];
155 if ($data['lock_nadirs'] == 'yes') $doc .= "&lock_nadirs=".$data['lock_nadirs'];
156 if ($data['lock_vertical'] == 'yes') $doc .= "&lock_vertical=".$data['lock_vertical'];
157 if ($data['lock_fov'] == 'yes') $doc .= "&lock_fov=".$data['lock_fov'];
158 …if ($data['limit_vertical'] == 'yes') $doc .= "&limit_vertical=".$data['limit_vertical']."&top_lim…
159 … ($data['limit_horizontal'] == 'yes') $doc .= "&limit_horizontal=".$data['limit_horizontal']."&rig…
160 …if ($data['proj_implicit'] == 'no') $doc .= "&proj_implicit=".$data['proj_implicit']."&elevation="…
161 if ($data['proj_type'] == 2) $doc .= "&proj_type=".$data['proj_type'];
162 if ($data['disable_wheel'] == 'yes') $doc .= "&disable_wheel=".$data['disable_wheel'];
165 if ($data['allowFullScreen'] == 'true') $doc .= " 'allowFullScreen','true',\n";
166 $doc .= " 'allowScriptAccess','".$data['allowScriptAccess']."'\n );\n";