add ad_banner inner page,pic title.
This commit is contained in:
1 parent
614b6fde71
commit
5ab4bbd367
7 files changed
+43
-2
No files matched your search
@@ -28,6 +28,10 @@ class FrontController < ApplicationController
|
||||
@page_id = params[:page_id]
|
||||
end
|
||||
|
||||
def show_inner_ad_image
|
||||
@ad_image = AdImage.find(params[:id]) rescue nil
|
||||
@ad_images = AdImage.all
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@ class PagesController < ApplicationController
|
||||
|
||||
def get_item
|
||||
module_app = ModuleApp.first(:conditions => {:key => params[:app_name]})
|
||||
|
||||
if !params[:category_id].blank? && !params[:tag_id].blank?
|
||||
@item = Item.first(:conditions => {:module_app_id => module_app.id, :app_frontend_url => params[:app_action], :category => params[:category_id], :tag => params[:tag_id]})
|
||||
@item = Item.first(:conditions => {:module_app_id => module_app.id, :app_frontend_url => params[:app_action], :category => params[:category_id], :tag => ''}) unless @item
|
||||
|
||||
Reference in new issue
Block a user