This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php foreach ($faqs as $i => $faq) { ?> | |
<div class="panel panel-default"> | |
<div class="panel-heading" role="tab" id="heading<?php echo $i; ?>"> | |
<h4 class="panel-title"> | |
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $i; ?>" aria-expanded="false" aria-controls="collapse<?php echo $i; ?>"> | |
<?php echo $faq['question']; ?> | |
</a> | |
</h4> | |
</div> | |
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading<?php echo $i; ?>"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/smtp' | |
class OrdersController < ApplicationController | |
def finish | |
@order = Order.find(params[:id]) | |
order_finish_url = url_for :controller => 'orders', :action => 'finish', :id => @order.id, :email => false | |
if params[:email].nil? || params[:email].empty? | |
message = <<EOF | |
From: Coder Restaurant <[email protected]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
if (typeof(data) === 'undefined') { | |
return false; | |
} | |
if ( 'chart_most_popular' == data.data_type ) { | |
var post_titles = [], | |
post_comment_count = []; |