这是我的第一个模式,它具有数据URL,并且运行良好。
<div class="panel panel-primary panelgames" data-url="<php echo site_url(); ?>/games/play/memorymatch">
<div class="panel-heading">
<h3 class="panel-title">Memory Match</h3>
</div>
<div class="panel-body">
<img src="<?php echo site_url(); ?>/images/games/3.png" />
</div>
</div>
<div class="panel panel-primary <?php if(!$this->session->userdata('user_id') || $this->session->userdata()['is_paid'] != 1){ echo "panelgames-notActive";} else{ echo "panelgames"; } ?>" data-url="<?php echo site_url(); ?>/games/play/planes">
<div class="panel-heading" <?php if(!$this->session->userdata('user_id') || $this->session->userdata()['is_paid'] != 1){ ?> style="background: #b3b3b3;!important" <?php } ?>>
<h3 class="panel-title" style="color: #FFFFFF; font-size: 16px">Planes</h3>
</div>
<div class="panel-body">
<img class="img img-responsive" src="<?php echo site_url(); ?>/images/games/2.png" />
</div>
</div>
我要在一个游戏完成后一一打开所有具有data-url属性的文件,请检查并告诉我。预先感谢。